This is a Go module to function as a REST API wrapper for Cinode service.
It is trying to fullfil all the features listed in the Cinode API reference documentation.
To initialise the client, one needs to have the following information from Cinode available:
- AccessID
- AccessSecret
- Company ID
The initialisation of the client is done by:
client, err := cinode.NewClient([AccessID], [AccessSecret], [CompanyID]
After fething the Access Token it is valid for 120 seconds, after which a new token can be fetched, or then use client.RefreshToken() function. When acquiring Access Token one also receives a
RefreshToken`, which can be used to refresh the Access Token.
err := client.RefreshToken()