Examples of TwilioRestResponse


Examples of com.twilio.sdk.TwilioRestResponse

  /* (non-Javadoc)
   * @see com.twilio.sdk.resource.factory.IpAccessControlListFactory#create(java.util.List)
   */
  public IpAccessControlList create(List<NameValuePair> params) throws TwilioRestException {
    TwilioRestResponse response = this.getClient().safeRequest(
        this.getResourceLocation(), "POST", params);
    return makeNew(this.getClient(), response.toMap());
  }
View Full Code Here

Examples of com.twilio.sdk.TwilioRestResponse

  /* (non-Javadoc)
   * @see com.twilio.sdk.resource.factory.OutgoingCallerIdFactory#create(java.util.Map)
   */
  public CallerIdValidation create(Map<String, String> params) throws TwilioRestException {
    TwilioRestResponse response = this.getClient().safeRequest(
        this.getResourceLocation(), "POST", params);
    return new CallerIdValidation(response);
  }
View Full Code Here

Examples of com.twilio.sdk.TwilioRestResponse

  /* (non-Javadoc)
   * @see com.twilio.sdk.resource.factory.OutgoingCallerIdFactory#create(java.util.List)
   */
  public CallerIdValidation create(List<NameValuePair> params) throws TwilioRestException {
    TwilioRestResponse response = this.getClient().safeRequest(
        this.getResourceLocation(), "POST", params);
    return new CallerIdValidation(response);
  }
View Full Code Here

Examples of com.twilio.sdk.TwilioRestResponse

     */
    public Member dequeue(final String url, final String method) throws TwilioRestException {
        final Map<String, String> vars = new HashMap<String, String>();
        vars.put(URL, url);
        vars.put(METHOD, method);
        TwilioRestResponse response = this.getClient().safeRequest(
                this.getResourceLocation(), "POST", vars);

        final Member member = new Member(this.getClient(), response.toMap(), getQueueSid());
        member.setRequestAccountSid(this.getRequestAccountSid());
        return member;
    }
View Full Code Here

Examples of com.twilio.sdk.TwilioRestResponse

     *             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

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

Examples of com.twilio.sdk.TwilioRestResponse

   *             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

Examples of com.twilio.sdk.TwilioRestResponse

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

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

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

Examples of com.twilio.sdk.TwilioRestResponse

   *             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
TOP
Copyright © 2018 www.massapi.com. 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.