Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.
/ sid-api Public archive

s.id url shortener Un-Official Api Wrapper | https://s.id

Notifications You must be signed in to change notification settings

Gimenz/sid-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🍚 sid-api

s.id url shortener Un-Official Api Wrapper

simple unofficial api wrapper for s.id

👨‍🍳 Install

npm i github:Gimenz/sid-api

📔 Example

Do Note! that the token are required for most all requests.

const { SID } = require('sid-api')

// optional, you can auto get token like this 
const s = new SID('yout email', 'your password');

(async () => {
    try {
        // to use most all features, you will needed token, get token easily with getToken() function
		// register account here https://home.s.id/id/auth/register
        const token = await s.getToken('yout email', 'your password');
        console.log(token);

        // short some long url
        const shortened = await s.short('https://open.spotify.com/show/7gsV94xCLfVuwxBpcc2rbc');
        console.log(shortened);

        // fecth url shortened list, if have many shortened, you can fetch it by page
        const shortlist = await s.fetchLinks();
        console.log(shortlist);
    } catch (error) {
        console.log(error);
    }
})();

🌳 Dependency

🥚 Credits

🧗‍♀️ Contribution(s) are welcome!

About

s.id url shortener Un-Official Api Wrapper | https://s.id

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published