0.0.2 • Published 5 years ago
@teamexos/wistia-api v0.0.2
Wistia API Client
The API Client for the Wistia Data API written in TypeScript.
API Client provides access to the following Wistia Data API endpoints
Install
yarn add @teamexos/wistia-apiUsage
Import library
import {Client, Project, ResponseError} from "@teamexos/wistia-api";Instantiate the API Client with your access token
let client = new Client("<token>")Use the client to get information from the Wistia API
client.projectsList()
.then(function(projects: Project[]) {
console.log(projects)
})
.catch(function (error: ResponseError) {
console.log(error.message)
})Testing
jest --coverageLocal Development
install nix
https://nixos.org/guides/install-nix.htmlrun nix-shell from the root directory of the project
How to publish a new package version
Create a github tag with a name corresponding to the new package version (e.g. 1.2.3) from package.json.
The package will be published to the npm registry using github actions.