text: var axios = require('axios');
  var uriTemplate = require('uri-template');
  
  module.exports = function (options, client) {
    var internals = {};
  
    /**
     * Returns the accessTokens for a user
     *
     * Parameters:
     *  {boolean} _actions - Return resource actions in response 
     *  {boolean} _links - Return resource link in response 
     *  {boolean} _embedded - Return embedded resources in response 
     *
     * Responses:
     *  200 - Collection of accessTokens (https://api.getstructure.io/#/definitions/accessTokens)
     *
     * Errors:
     */
    internals.get = function (params, opts, cb) {
      if ('function' === typeof params) {
        cb = params;
        params = {};
        opts = {};
      } else if ('function' === typeof opts) {
        cb = opts;
        opts = {};
      }
      params = params || {};
      var tpl = uriTemplate.parse('/access-tokens');
      var pathParams = {};
      var req = {
        method: 'GET',
        params: { _actions: false, _links: true, _embedded: true }
      };
      if ('undefined' !== typeof params['_actions']) { req.params['_actions'] = params['_actions']; }
      if ('undefined' !== typeof params['_links']) { req.params['_links'] = params['_links']; }
      if ('undefined' !== typeof params['_embedded']) { req.params['_embedded'] = params['_embedded']; }
      req.url = tpl.expand(pathParams);
      return client.request(req, opts, cb);
    }
  
    /**
     * Create a new accessKey for a user
     *
     * Parameters:
     *  {object} accessToken - AccessToken information (https://api.getstructure.io/#/definitions/accessToken)
     *  {boolean} _actions - Return resource actions in response 
     *  {boolean} _links - Return resource link in response 
     *  {boolean} _embedded - Return embedded resources in response 
     *
     * Responses:
     *  201 - Successfully created access token (https://api.getstructure.io/#/definitions/accessToken)
     *
     * Errors:
     *  400 - Error if malformed request (https://api.getstructure.io/#/definitions/error)
     */
    internals.post = function (params, opts, cb) {
      if ('function' === typeof params) {
        cb = params;
        params = {};
        opts = {};
      } else if ('function' === typeof opts) {
        cb = opts;
        opts = {};
      }
      params = params || {};
      var tpl = uriTemplate.parse('/access-tokens');
      var pathParams = {};
      var req = {
        method: 'POST',
        data: {},
        params: { _actions: false, _links: true, _embedded: true }
      };
      if ('undefined' !== typeof params['accessToken']) { req.data = params['accessToken']; }
      if ('undefined' !== typeof params['_actions']) { req.params['_actions'] = params['_actions']; }
      if ('undefined' !== typeof params['_links']) { req.params['_links'] = params['_links']; }
      if ('undefined' !== typeof params['_embedded']) { req.params['_embedded'] = params['_embedded']; }
      req.url = tpl.expand(pathParams);
      return client.request(req, opts, cb);
    }
  
    return internals;
  };
  