Package com.twilio.sdk

Examples of com.twilio.sdk.TwilioRestResponse


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

    /**
     * {@inheritDoc}
     */
    @Override
    public Queue 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

    /**
     * {@inheritDoc}
     */
    @Override
    public Queue 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 "UsageTriggers";
  }

  @Override
  public UsageTrigger create(Map<String, String> params) throws TwilioRestException {
    TwilioRestResponse response = this.getClient().safeRequest(
        this.getResourceLocation(), "POST", params);
    return makeNew(this.getClient(), (Map<String, Object>) response.toMap().get("UsageTrigger"));
  }
View Full Code Here

    return makeNew(this.getClient(), (Map<String, Object>) response.toMap().get("UsageTrigger"));
  }

  @Override
  public UsageTrigger create(List<NameValuePair> params) throws TwilioRestException {
    TwilioRestResponse response = this.getClient().safeRequest(
        this.getResourceLocation(), "POST", params);
    return makeNew(this.getClient(), (Map<String, Object>) response.toMap().get("UsageTrigger"));
  }
View Full Code Here

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

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.