linkvertise-extend

1.0.0 • Public • Published

Linkvertise API Extender


Initializing the linkvertise class

const Linkvertise = require('linkvertise-extend')
const UserId = 0
/*
UserId being the ID that you can find
at the end of your referral link
*/
const User = new Linkvertise(UserId)

Monetizing links

/*
Returns {token: string, url: string}
token -> can be used to check if someone went to the monetized link
url -> where the user needs to go
*/
const Link = await User.Shorten("https://example.com/")

Checking if monetized link was visited

const WasVisited = await User.IsFinished(token)

Package Sidebar

Install

npm i linkvertise-extend

Weekly Downloads

3

Version

1.0.0

License

ISC

Unpacked Size

38.7 kB

Total Files

6

Last publish

Collaborators

  • xuehuiling