UNPKG

bitly-node-api

Version:
27 lines (20 loc) 472 B
'use strict'; var userToken = process.env.BITLY_USER_TOKEN; import * as BitlyAPI from 'bitly-node-api'; const bitly = new BitlyAPI(); bitly.setUserToken(userToken); var applicationRequest = async function () { /** * passing parameters * ------------------- * * client_id {string} */ var client_id = 'string'; try { var response = await bitly.application.getOAuthApp(client_id); } catch (error) { return; } }; applicationRequest();