Would you like to clone this notebook?

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

Cancel

BiSoga URl shortener API example

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