This guide shows how to import a Virgil CardEach Card contains attributes associated with the holder of the Private key and are used to prove the ownership of a Public key more ... from the string representation.
For original information about the Virgil Card check out our Virgil Card Service endpoint here.
Set up your project environment before you begin to import a Virgil Card, with the getting started guide.
In order to import the Virgil Card, we need to:
- Initialize the Virgil SDKThe SDK helps take tedious complexity out of coding by providing APIs for all of Virgil Services.
$virgilApi = VirgilApi::create('[YOUR_ACCESS_TOKEN_HERE]');
- Use the code below to import the Virgil Card from its string representation
// import a Virgil Card from string
$aliceCard = $virgilApi->Cards->import($exportedAliceCard);