Use Gumlet SDK to upload videos to Gumlet, manage channel & playlist, create image source, and get analytics
npm install gumlet-js-sdkRun the following command from your project directory to install the package from npm:
``bash`
npm install gumlet-js-sdk@1.0.0
For additional package details, see the Npm page for the gumlet-js-sdk@1.0.0 npm.
To validate the functionality of this SDK, you can execute all tests located in the test directory. This SDK utilizes Jest as both the testing framework and test runner.
To run the tests, navigate to the root directory of the SDK and execute the following command:
`bash`
npm run test
Or you can also run tests with coverage report:
`bash`
npm run test:coverage
_Note:_ Documentation for the client can be found here.
The following parameters are configurable for the API Client:
| Parameter | Type | Description |
| --- | --- | --- |
| timeout | number | Timeout for API calls.0
Default: |Partial
| httpClientOptions | | Stable configurable http client options. |any
| unstableHttpClientOptions | | Unstable configurable http client options. |CustomHeaderAuthenticationCredentials
| customHeaderAuthenticationCredentials | | The credential object for customHeaderAuthentication |
The API client can be initialized as follows:
`ts`
const client = new Client({
customHeaderAuthenticationCredentials: {
'Authorization': 'Authorization'
},
timeout: 0,
});
This API uses the following authentication schemes.
* sec0 (Custom Header Signature)`
* HttpClientOptions
* RetryConfiguration