xi_sdk_resellers
Version:
Ingram Micro - Xvantage Integration (XI) Node.Js Server-side SDK.
59 lines (37 loc) • 1.48 kB
Markdown
All URIs are relative to *https://api.ingrammicro.com:443*
Method | HTTP request | Description
------------- | ------------- | -------------
[**getAccesstoken**](AccesstokenApi.md
> AccesstokenResponse getAccesstoken(grantType, clientId, clientSecret)
Accesstoken
The Authentication endpoint will provide an access token to access the API.
### Example
```javascript
import XiSdkResellers from 'xi_sdk_resellers';
let apiInstance = new XiSdkResellers.AccesstokenApi();
let grantType = "client_credentials"; // String | Keep grant_type as client_credentials only.
let clientId = "clientId_example"; // String |
let clientSecret = "clientSecret_example"; // String |
apiInstance.getAccesstoken(grantType, clientId, clientSecret, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**grantType** | **String**| Keep grant_type as client_credentials only. |
**clientId** | **String**| |
**clientSecret** | **String**| |
[**AccesstokenResponse**](AccesstokenResponse.md)
No authorization required
- **Content-Type**: Not defined
- **Accept**: application/json