async readToken(id) {
    if (!id) {
      return this.request.get('/tokens/self');
    }
    const ret = await this.request.get('/tokens');
    const filtered = ret.data.filter((token) => token.id === id);
    if (filtered.length > 0) {
      [ret.data] = filtered;
      return ret;
    }
    throw Error('No such token.');
  }
/**
   * Get the token with the specified id. If the Id is missing, the self token is returned.
   *
   * @see https://docs.fastly.com/api/auth#tokens_bb00e7ed542cbcd7f32b5c908b8ce244
   * @param {string} [id] - The token id.
   * @returns {Promise} The response object representing the completion or failure.
   */
Get the token with the specified id. If the Id is missing, the self token is returned.
Get the token with the specified id . If the Id is missing the self token is returned .
async readToken(id) {
    if (!id) {
      return this.request.get('/tokens/self');
    }
    const ret = await this.request.get('/tokens');
    const filtered = ret.data.filter((token) => token.id === id);
    if (filtered.length > 0) {
      [ret.data] = filtered;
      return ret;
    }
    throw Error('No such token.');
  }
async readToken ( id ) { if ( ! id ) { return this . request . get ( '/tokens/self' ) ; } const ret = await this . request . get ( '/tokens' ) ; const filtered = ret . data . filter ( ( token ) => token . id === id ) ; if ( filtered . length > 0 ) { [ ret . data ] = filtered ; return ret ; } throw Error ( 'No such token.' ) ; }
Get the token with the specified id.
Get the token with the specified id .