Tutorial
1
Initialize your Gateway ID
Make sure you have created an account using the dashboard.
2
Create an Organization
If you are on testnet, you can create an organization automatically via the dashboard.If you are on mainnet, you can request for an organization here.
3
Copy Your Widget Key
Find the Widget Key underneath the “Developer Access” section of the Dashboard. Reference images below.
4
Find/Create a Schema
Find a schema that is applicable for the data you want to contribute. You can discover existing schemas using the Gateway Explorer . If you are playing around, you can use 1c2c98e4-5cbd-40db-b441-5f6c00dedeb5 to understand how it works!To create your own schema, follow the instructions here.
This ID is for the sandbox/testnet environment.
5
Define API Call Body
Now you can insert the above information into the API call body found below:
Claim fields are in JSON format. For example, a string would be “teststring”:
“value”.
6
Call the API
Generate a session for the user based on the parameters you have passed.
Utilizing a button on the front end is optional, the URL for a user can be passed in other methods. However, having a button is recommended in most cases.
7
Get the link from the response and send to user
The response that you should receive is something like this:You can now pass this to the user to complete.