1.0.0 • Published 8 years ago
shortest-api v1.0.0
shortest-api
API Client for connect with shorte.st.
Install
$ npm install shortest-api --save
Usage
const shortestAPI = require('shortest-api')
const shortest = shortestAPI({
token: 'MY_TOKEN'
})
shortest('https://kikobeats.com', function (err, shortenURL) {
if (err) throw err
console.log(shortenURL) // => 'http://sh.st/3s2xg'
/* do something */
})
API
shortestAPI({options})
It creates an API client.
options
token
Required
Type: string
The service token.
License
MIT © Kiko Beats.
1.0.0
8 years ago