How to use the asana.VERSION function in asana

To help you get started, we’ve selected a few asana examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / types / asana / asana-tests.ts View on Github external
import * as asana from 'asana';
declare var console: { log(x: any): void };
declare var process: { env: { ASANA_API_KEY: string } };

let version: string = asana.VERSION;

// https://github.com/Asana/node-asana#usage
// Usage

var client = asana.Client.create().useAccessToken('my_access_token');
client.users.me().then(function(me) {
  console.log(me);
});

client = asana.Client.create({
  clientId: 123,
  clientSecret: 'my_client_secret',
  redirectUri: 'my_redirect_uri'
});

client.useOauth({
github DefinitelyTyped / DefinitelyTyped / asana / asana-tests.ts View on Github external
/// <reference path="asana.d.ts" />
/// <reference path="../request/request.d.ts" />

import * as asana from 'asana';
import * as util from 'util';

let version: string = asana.VERSION;

// https://github.com/Asana/node-asana#usage
// Usage

var client = asana.Client.create().useAccessToken('my_access_token');
client.users.me().then(function(me) {
  console.log(me);
});

client = asana.Client.create({
  clientId: 123,
  clientSecret: 'my_client_secret',
  redirectUri: 'my_redirect_uri'
});

client.useOauth({

asana

Official NodeJS and BrowserJS client for the Asana API

MIT
Latest version published 3 days ago

Package Health Score

87 / 100
Full package analysis

Popular asana functions