This guide shows how to find a . As previously noted, all Virgil Cards are saved at after their publication. Thus, every user can find their own Virgil Card or another user's Virgil Card on Virgil Services. It should be noted that users' Virgil Cards will only be visible to application users. Global Virgil Cards will be visible to anybody.
For original information about the Virgil Card check out the Virgil Card Service endpoint here.
Set up your project environment before you begin to find a Virgil Card, with the getting started guide.
In order to search for an or you need to initialize the :
$virgilApi = VirgilApi::create('[YOUR_ACCESS_TOKEN_HERE]');
There are two ways to find an Application Virgil Card on Virgil Services:
The first one allows developers to get the Virgil Card by its unique
$aliceCard = $virgilApi->Cards->get('[ALICE_CARD_ID_HERE]');
The second one allows developers to find Virgil Cards by identity and identityType
// search for all Alice's Virgil Cards.
$aliceCards = $virgilApi->Cards->find(['alice']);
// search for all Bob's Virgil Cards with identity type 'member'
$bobCards = $virgilApi->Cards->find(['bob'], 'member');
// search for all Global Virgil Cards
$bobGlobalCards = $virgilApi->Cards->findGlobal(
// search for Application Virgil Card
$appGlobalCards = $virgilApi->Cards->findGlobal(