Skip to content

wild-at-heart/subsplash-sdk

Repository files navigation

Subsplash SDK for JavaScript

Type-safe SDK for interacting with the Subsplash API


Heads up!

This project is in early development and is and missing a ton of the features available through the Subsplash REST API. Contributions are welcome!

Goals

subsplash-sdk wants to be:

  • Consistent, offering all of the functionality available through the Subsplash API.
  • Type-safe, providing TypeScript definitions for all of the API methods and Subsplash Objects.

Current Subplash API Support

media/v1

  • Get Media Series
  • Create Media Series
  • Get Media Item
  • Create Media Item

Getting started

You will need an API key and an App ID to use the Subsplash SDK. You can get these by signing up for a Subsplash account at https://www.subsplash.com/ and reaching out to their support.

You will also need to get the app key of your particular app. This can be found on the Mobile App Preview page of your app in the Subsplash Dashboard. https://dashboard.subsplash.com/-d/#/channels/mobile-app/preview?setup=false

Install the package:

npm install @wildatheart/subsplash-sdk

Use the SDK in your project:

import { MediaItems } from '@wildatheart/subsplash-sdk';

const mediaItems = new MediaItems();
await mediaItems.authenticate({
  clientId: 'your-api-key',
  clientSecret: 'your-app-id',
  appKey: 'your-subsplash-app-key',
});

const items = await mediaItems.all();

// Work with the media items

Contributing

Contributions are welcome from everyone.

We have contribution guidelines to help you get started.

License

Subsplash SDK is licensed under MIT.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published