BiSoga URl shortener API example

node v10.16.3
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