src/api/ChannelsAPI.js
/**
   * POST /channels/{channelId}/answer
   *
   * Answer the channel.
   *
   * @param {object} params
   * @param {string} params.channelId The id of the channel to answer.
   * @returns {Promise} Resolves when the channel is successfully answered.
   *  Rejects when the specified channel cannot be found (status 404) or
   *  the specified channel is not in a stasis application (status 409).
   */
POST /channels/{channelId}/answer
Answer the channel.

@param {object} params
@param {string} params.channelId The id of the channel to answer.
@returns {Promise} Resolves when the channel is successfully answered.
Rejects when the specified channel cannot be found (status 404) or
the specified channel is not in a stasis application (status 409).
POST / channels / { channelId } / answer Answer the channel . @param { object } params @param { string } params . channelId The id of the channel to answer . @returns { Promise } Resolves when the channel is successfully answered . Rejects when the specified channel cannot be found ( status 404 ) or the specified channel is not in a stasis application ( status 409 ) .
answer(params) {
    const { channelId } = params;
    const id = encodeURIComponent(channelId);
    return this._request({
      method: "POST",
      url: `${this._baseUrl}/channels/${id}/answer`,
    });
  }
answer ( params ) { const { channelId } = params ; const id = encodeURIComponent ( channelId ) ; return this . _request ( { method : "POST" , url : ` ${ this . _baseUrl } ${ id } ` , } ) ; }
POST /channels/{channelId}/answer
 Answer the channel.
POST / channels / { channelId } / answer Answer the channel .