This project is in early development and is and missing a ton of the features available through the Subsplash REST API. Contributions are welcome!
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.
media/v1
- Get Media Series
- Create Media Series
- Get Media Item
- Create Media Item
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-sdkUse 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 itemsContributions are welcome from everyone.
We have contribution guidelines to help you get started.
Subsplash SDK is licensed under MIT.