Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.


BiSoga URl shortener API example

node v10.21.0
version: master
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

no comments

    sign in to comment