Examples of TwilioRestResponse


Examples of com.twilio.sdk.TwilioRestResponse

  /* (non-Javadoc)
   * @see com.twilio.sdk.resource.factory.IpAccessControlListFactory#create(java.util.Map)
   */
  public IpAddress create(Map<String, String> 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.IpAccessControlListFactory#create(java.util.List)
   */
  public IpAddress 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.CredentialListFactory#create(java.util.Map)
   */
  public CredentialListInstance create(Map<String, String> 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.CredentialListFactory#create(java.util.List)
   */
  public CredentialListInstance 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.MessageFactory#create(java.util.Map)
   */
  public Message 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

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

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

Examples of com.twilio.sdk.TwilioRestResponse

   */
  public Call redirect(String url, String method) throws TwilioRestException {
    Map<String, String> vars = new HashMap<String, String>();
    vars.put("Method", method);
    vars.put("Url", url);
    TwilioRestResponse response = this.getClient().safeRequest(this.getResourceLocation(), "POST", vars);

    Call c = new Call(this.getClient(), response.toMap());
    c.setRequestAccountSid(this.getRequestAccountSid());
    return c;
  }
View Full Code Here

Examples of com.twilio.sdk.TwilioRestResponse

   */
  public Call hangup() throws TwilioRestException {
    Map<String, String> vars = new HashMap<String, String>();
    vars.put("Status", "completed");

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

    Call c = new Call(this.getClient(), response.toMap());
    c.setRequestAccountSid(this.getRequestAccountSid());
    return c;
  }
View Full Code Here

Examples of com.twilio.sdk.TwilioRestResponse

   */
  public Call cancel() throws TwilioRestException {
    Map<String, String> vars = new HashMap<String, String>();
    vars.put("Status", "canceled");

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

    Call c = new Call(this.getClient(), response.toMap());
    c.setRequestAccountSid(this.getRequestAccountSid());
    return c;
  }
View Full Code Here

Examples of com.twilio.sdk.TwilioRestResponse

  /* (non-Javadoc)
   * @see com.twilio.sdk.resource.factory.DomainFactory#create(java.util.Map)
   */
  public Domain create(Map<String, String> params) throws TwilioRestException {
    TwilioRestResponse response = this.getClient().safeRequest(
        this.getResourceLocation(), "POST", params);
    return makeNew(this.getClient(), response.toMap());
  }
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.