Skip to content

fromsmash/smash-sdk-core-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@smash-sdk/core




@smash-sdk/core is a JavaScript library that provides core functionality for Smash SDK.


Table of Contents

Installation

This package is already installed when a Smash SDK package is installed in your project, so you should not have to install it manually. If you are using the Smash Uploader and/or Smash Downloader, this package is not yet usable (for now).

Anyway, @smash-sdk/core is available on npm:

npm install @smash-sdk/core

Usage

The main feature of @smash-sdk/core is to set a default configuration for any SDKs futur instanciation. Most of Smash SDKs needs a token and/or a region to be used.

To use @smash-sdk/core in your project, you need to first import it into your JavaScript file:

import { config } from "@smash-sdk/core";

You can set the config object with your Smash API credentials (How to get Smash API crendentials).

config.setToken("Your Smash API key here");

Smash is available accross 9 regions. You may pick up a region of your choice and set it as default:

config.setRegion("eu-west-3");

Documentation

For more information on how to use Smash SDKs, you can refer to the Smash Docs documentation.

Contributing

We welcome contributions! If you'd like to help improve @smash-sdk/core, please fork the repository, make your changes, and submit a pull request.

License

@smash-sdk/core is released under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published