Get the Code

Now that you’ve uploaded your key, get the code from GitHub.

  1. Clone the JWT repo by using this command. git clone https://github.com/salesforceidentity/jwt

  2. 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.

  1. From your browser, navigate to https://github.com/salesforceidentity/jwt.

  2. Click Clone or download.

  3. Select Download ZIP to download the classes that handle the JWT token processing.

  4. If prompted by your browser, click OK to save the jwt-master.zip file locally.

  5. Navigate to https://github.com/MetaMind/apex-utils.

  6. Click Clone or download.

  7. Select Download ZIP to download the code for the Apex classes and the Visualforce page. These code elements call the Einstein Image Classification API.

  8. If prompted by your browser, click OK to save the apex-utils-master.zip file locally.

  9. 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.