Package com.twilio.sdk

Examples of com.twilio.sdk.TwilioRestResponse


  /* (non-Javadoc)
   * @see com.twilio.sdk.resource.factory.DomainFactory#create(java.util.List)
   */
  public Domain 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


  /* (non-Javadoc)
   * @see com.twilio.sdk.resource.factory.ApplicationFactory#create(java.util.Map)
   */
  public Application 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

  /* (non-Javadoc)
   * @see com.twilio.sdk.resource.factory.ApplicationFactory#create(java.util.Map)
   */
  public Application 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

  /* (non-Javadoc)
   * @see com.twilio.sdk.resource.factory.CredentialListMappingFactory#create(java.util.Map)
   */
  public CredentialListMapping 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

  /* (non-Javadoc)
   * @see com.twilio.sdk.resource.factory.CredentialListMappingFactory#create(java.util.List)
   */
  public CredentialListMapping 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

  /* (non-Javadoc)
   * @see com.twilio.sdk.resource.factory.CredentialFactory#create(java.util.Map)
   */
  public Credential 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

  /* (non-Javadoc)
   * @see com.twilio.sdk.resource.factory.CredentialFactory#create(java.util.List)
   */
  public Credential 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

   *
   * @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

  /* (non-Javadoc)
   * @see com.twilio.sdk.resource.factory.IpAccessControlListMappingFactory#create(java.util.Map)
   */
  public IpAccessControlListMapping 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

  /* (non-Javadoc)
   * @see com.twilio.sdk.resource.factory.IpAccessControlListMappingFactory#create(java.util.Map)
   */
  public IpAccessControlListMapping 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

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.