Package com.twilio.sdk

Examples of com.twilio.sdk.TwilioRestResponse


   *
   * @return true, if successful
   * @throws TwilioRestException the twilio rest exception
   */
  public boolean delete() throws TwilioRestException {
    TwilioRestResponse response = this.getClient().safeRequest(
        this.getResourceLocation(), "DELETE", (Map) null);

    return !response.isError();
  }
View Full Code Here


   *             if there is an error in the request
   * @return true, if successful
   *
   */
  public boolean delete() throws TwilioRestException {
    TwilioRestResponse response = this.getClient().safeRequest(
        this.getResourceLocation(), "DELETE", (Map) null);

    return !response.isError();
  }
View Full Code Here

   *             if there is an error in the request
   * @return true, if successful
   *
   */
  public boolean delete() throws TwilioRestException {
    TwilioRestResponse response = this.getClient().safeRequest(
        this.getResourceLocation(), "DELETE", (Map) null);

    return !response.isError();
  }
View Full Code Here

   *             if there is an error in the request
   * @return true, if successful
   *
   */
  public boolean delete() throws TwilioRestException {
    TwilioRestResponse response = this.getClient().safeRequest(
        this.getResourceLocation(), "DELETE", (Map) null);

    return !response.isError();
  }
View Full Code Here

   *
   * @return true, if successful
   * @throws TwilioRestException the twilio rest exception
   */
  public boolean delete() throws TwilioRestException {
    TwilioRestResponse response = getClient().safeRequest(getResourceLocation(), "DELETE", (Map) null);

    return !response.isError();
  }
View Full Code Here

   */
  public Participant mute() throws TwilioRestException {
    Map<String, String> vars = new HashMap<String, String>();
    vars.put("Muted", "true");

    TwilioRestResponse response = this.getClient().safeRequest(
        this.getResourceLocation(), "POST", vars);

    return new Participant(this.getClient(), response.toMap());
  }
View Full Code Here

   *             if there is an error in the request
   * @return true, if successful
   *
   */
  public boolean delete() throws TwilioRestException {
    TwilioRestResponse response = this.getClient().safeRequest(
        this.getResourceLocation(), "DELETE", (Map) null);

    return !response.isError();
  }
View Full Code Here

   */
  public Participant unmute() throws TwilioRestException {
    Map<String, String> vars = new HashMap<String, String>();
    vars.put("Muted", "false");

    TwilioRestResponse response = this.getClient().safeRequest(
        this.getResourceLocation(), "POST", vars);

    return new Participant(this.getClient(), response.toMap());
  }
View Full Code Here

   *
   * @return true, if successful
   * @throws TwilioRestException the twilio rest exception
   */
  public boolean kick() throws TwilioRestException {
    TwilioRestResponse response = this.getClient().safeRequest(
        this.getResourceLocation(), "DELETE", (Map) null);

    return !response.isError();
  }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    public Feedback create(List<NameValuePair> params) throws TwilioRestException {
        TwilioRestResponse response = this.client.safeRequest(this.parentLocation + "/Feedback.json", "POST", params);
        return new Feedback(this.client, response.toMap(), this.parentLocation);
    }
View Full Code Here

TOP

Related Classes of com.twilio.sdk.TwilioRestResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.