Wistia API Client
Wistia Data API written in TypeScript.
The API Client for theAPI Client provides access to the following Wistia Data API endpoints
Install
yarn add @teamexos/wistia-api
Usage
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 --coverage
Local Development
install nix
https://nixos.org/guides/install-nix.html
run 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.