Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
BiSoga URl shortener API example
node v10.24.1
version:
master
endpoint
share
tweet
This is an example of the BiSoga (https://biso.ga) URL shortener API.
//This example uses snekfetch version 4.0.3 const snekfetch = require('snekfetch') let code let url = 'google.com' await snekfetch.get('https://bisoga.glitch.me/api?url='+url+'&domain=school-b.us').then((result) => code = String(result.raw)) // In snekfetch 3.x use result.text instead of String(result.raw) console.log(code) // Expected result: https://school-b.us/2tx
Created from: https://npm.runkit.com/snekfetch
Loading…
no comments
sign in
to comment