Using the SDK from the Server
First, make sure you've installed the Niftory SDK on your project with:
Now use the SDK in your codebase as follows:
Note: This will create a Niftory SDK with privileged authentication using a client secret that should never be public.
Parameters
Parameter | Description | Example Value |
---|---|---|
environmentName | Environment of the blockchain the app will run on. |
|
appId | App Id or Client id generated from the Niftory admin app |
|
apiKey | API key generated from the Niftory admin app |
|
clientSecret | Client Secret generated from the Niftory admin app |
|
All the available methods on the NiftoryClient are documented on the API Reference.
For examples of server-side usage you can check out our sample apps using the Niftory SDK:
Last updated