Examples of TwilioRestResponse


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

Examples of com.twilio.sdk.TwilioRestResponse

  /* (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

Examples of com.twilio.sdk.TwilioRestResponse

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

Examples of com.twilio.sdk.TwilioRestResponse

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

Examples of com.twilio.sdk.TwilioRestResponse

    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

Examples of com.twilio.sdk.TwilioRestResponse

    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

Examples of com.twilio.sdk.TwilioRestResponse

  /* (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

Examples of com.twilio.sdk.TwilioRestResponse

  /* (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

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

  /* (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
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.