Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

FurryBotCo/Furry.Services

Repository files navigation

Furry.Services API

This is an api wrapper built for the furry.services redirection api.

The official documentation for this can be found here.

JavaScript Example:

const FurryServicesAPI = require("furry.services");
// User agent (first param) is not required.
const FSAPI = new FurryServicesAPI("SomeUserAgent/1.0.0");
FSAPI.shortenURL("https://furry.bot").then(short => console.log(short));

TypeScript Example:

import FurryServicesAPI from "furry.services";
// User agent (first param) is not required.
const FSAPI = new FurryServicesAPI("SomeUserAgent/1.0.0");
FSAPI.shortenURL("https://furry.bot").then(short => console.log(short));

The return of the functions is this structure (using the class as an example):

class ShortURL {
	id: string;
	url: string;
	linkNumber: number;
	createdTimestamp: number;
	created: string;
	length: number;
    link: string;
}

id is the code of the short link, url is where it goes, linkNumber is our internal database number for this link, createdTimestamp is the epoch at which it was created, created is the same as last, but an ISO string, length is the length of the url, and link is the full redirect link (includes https://r.furry.services).

About

An api wrapper for furry.services.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published