{"repo":"kontist/js-sdk","free":true,"listed":false,"github":"https://github.com/kontist/js-sdk","clone":"git clone https://github.com/kontist/js-sdk.git","description":"JavaScript SDK for connecting to Kontist","language":"TypeScript","stars":16,"topics":["banking","api","graphql","oauth2","typescript","javascript","sdk","kontist","javascript-sdk"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"Kontist SDK JavaScript SDK for connecting to Kontist using OAuth2 and GraphQL. Please see https://kontist.dev/sdk for a more complete documentation. Installation Add as dependency to your project: You will need a valid client id and setup your redirect uri for authentication. You may request your client id in the API Client Management on https://kontist.dev/client-management/. Usage (NodeJS / TypeScript) You should be able to issue new accessToken by simply calling: Optionally, this method accepts a number as an argument to specify after how many milliseconds the refresh request should timeout (default is 10000): Note: to create a client that can handle public request, you need to initialize Client without clientId . Usage (Browser) Kontist SDK allows renewing access tokens in browser environments using this simple method: Optionally, this method accepts a number as an argument to specify after how many milliseconds the refresh request should timeout (default is 10000): GraphQL queries Raw Transactions An example to show how to fetch all user transactions: To fetch up to 50 latest transactions: To subscribe to new transactions: Whenever a new transaction is created, the onNext function will be called. Whenever an error occurs with the subscription, the onError function will be called. The subscribe method returns a Subscription object with an unsubscribe method to be called when you want to unsubscribe to new transactions: Transfers To create and confirm a transfer / timed or","default_branch":null,"files":null,"tree":[],"storefront":"/r/kontist","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kontist/js-sdk/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}