An SDK for tokens interaction throught Tokens Studio
The follow namespaces are raw Graphql interactions (queries, mutations ,subscriptions)
Please note they contain the full shapes of all returned objects. Any additional complex operations are exported under sibling namespaces which define more complicated interactions with additional support for validations, etc
Your default interaction model would be to import the required interactions
The following is in typescript and shows how to use API key authentication to retrieve the groups in an organization
import {Configuration,Queries, Graphql ,GroupsQuery } from '@tokens-studio/sdk';const API_KEY = process.env.API_KEY;Configuration.setAPIKey(TEST_API_KEY);const input: GroupsQueryVariables = {organization:'urn:ts:....'};const groups = await Graphql.exec<GroupsQuery>({ query:Queries.groups, variables:input});console.log(groups.data);
See Configuration for more examples of authentication using other options
Generated using TypeDoc
An SDK for tokens interaction throught Tokens Studio
Remarks
The follow namespaces are raw Graphql interactions (queries, mutations ,subscriptions)
Please note they contain the full shapes of all returned objects. Any additional complex operations are exported under sibling namespaces which define more complicated interactions with additional support for validations, etc
Your default interaction model would be to import the required interactions
Example
The following is in typescript and shows how to use API key authentication to retrieve the groups in an organization
See Configuration for more examples of authentication using other options