UNPKG

@upwork/node-upwork-oauth2

Version:

Node.JS bindings for Upwork API (OAuth2)

61 lines (55 loc) 1.64 kB
/** * Upwork auth library for using with public API by OAuth * * @package UpworkAPI * @since 09/26/2014 * @copyright Copyright 2014(c) Upwork.com * @author Maksym Novozhylov <mnovozhilov@upwork.com> * @license Upwork's API Terms of Use {@link https://developers.upwork.com/api-tos.html} */ /** * @module routes.reports.finance.accounts */ /** * @property entryPoint * @type String * @default gds * @static * @final */ var entryPoint = 'gds'; /** * @class Accounts * @constructor */ exports.Accounts = function(api) { this.api = api; this.api.epoint = entryPoint; throw new Error('The legacy API was deprecated. Please, use GraphQL call - see example in this library.'); } /** * Generate Financial Reports for an owned Account * * @method getOwned * @param freelancerReference {Integer} Freelancer reference * @param params {Hash} Parameters * @param callback {String} Callback function * @async */ exports.Accounts.prototype.getOwned = function(freelancerReference, params, callback) { debug('running request'); throw new Error('The legacy API was deprecated. Please, use GraphQL call - see example in this library.'); } /** * Generate Financial Reports for a Specific Account * * @method getSpecific * @param entityReference {Integer} Entity reference * @param params {Hash} Parameters * @param callback {String} Callback function * @async */ exports.Accounts.prototype.getSpecific = function(entityReference, params, callback) { debug('running request'); throw new Error('The legacy API was deprecated. Please, use GraphQL call - see example in this library.'); }