API Docs for: 1.0.1
Show:

File: lib/config.js

  1. /**
  2. * Upwork auth library for using with public API by OAuth
  3. *
  4. * @package UpworkAPI
  5. * @since 09/22/2014
  6. * @copyright Copyright 2014(c) Upwork.com
  7. * @author Maksym Novozhylov <mnovozhilov@upwork.com>
  8. * @license Upwork's API Terms of Use {@link https://developers.upwork.com/api-tos.html}
  9. */
  10.  
  11. /**
  12. * @module config
  13. */
  14.  
  15. /**
  16. * @class Config
  17. * @constructor
  18. */
  19. function Config(options) {
  20. this.consumerKey = options.consumerKey;
  21. this.consumerSecret = options.consumerSecret;
  22. this.accessToken = options.accessToken;
  23. this.accessSecret = options.accessSecret;
  24. this.signatureMethod = options.signatureMethod || 'HMAC-SHA1';
  25. this.debug = options.debug || false;
  26. }
  27.  
  28. module.exports = Config;
  29.