bitly-node-api
Version:
bitly api wrapper
27 lines (20 loc) • 472 B
text/typescript
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();
;