Get the Code
Now that you’ve uploaded your key, get the code from GitHub.
-
Clone the JWT repo by using this command.
git clone https://github.com/salesforceidentity/jwt
-
Clone the Apex code repo by using this command.
git clone https://github.com/MetaMind/apex-utils
If you don't have a GitHub account or you want use the GitHub web interface, use this alternate method for getting the code.
-
From your browser, navigate to https://github.com/salesforceidentity/jwt.
-
Click Clone or download.
-
Select Download ZIP to download the classes that handle the JWT token processing.
-
If prompted by your browser, click OK to save the jwt-master.zip file locally.
-
Navigate to https://github.com/MetaMind/apex-utils.
-
Click Clone or download.
-
Select Download ZIP to download the code for the Apex classes and the Visualforce page. These code elements call the Einstein Image Classification API.
-
If prompted by your browser, click OK to save the apex-utils-master.zip file locally.
-
From your file explorer, navigate to the folder where you saved the .zip files and extract each file. Make a note of where you extract the code because you use it later on to create the classes.