Package com.twilio.sdk

Examples of com.twilio.sdk.TwilioRestResponse.toMap()


   * @see com.twilio.sdk.resource.factory.SmsFactory#create(java.util.Map)
   */
  public Sms create(Map<String, String> params) throws TwilioRestException {
    TwilioRestResponse response = this.getClient().safeRequest(
        this.getResourceLocation(), "POST", params);
    return makeNew(this.getClient(), response.toMap());
  }

  /* (non-Javadoc)
   * @see com.twilio.sdk.resource.factory.SmsFactory#create(java.util.List)
   */
 
View Full Code Here


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

   * @see com.twilio.sdk.resource.factory.IncomingPhoneNumberFactory#create(java.util.Map)
   */
  public IncomingPhoneNumber create(Map<String, String> params) throws TwilioRestException {
    TwilioRestResponse response = this.getClient().safeRequest(
        this.getResourceLocation(), "POST", params);
    return makeNew(this.getClient(), response.toMap());
  }

  /* (non-Javadoc)
   * @see com.twilio.sdk.resource.factory.IncomingPhoneNumberFactory#create(java.util.List)
   */
 
View Full Code Here

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

   * @throws TwilioRestException the twilio rest exception
   */
  public FeedbackSummary createFeedbackSummary(final Map<String, String> filters) throws TwilioRestException {
    TwilioRestResponse response = getClient()
        .safeRequest(getResourceLocation("") + "/Calls/FeedbackSummary.json", "POST", filters);
    return new FeedbackSummary(getClient(), response.toMap());
  }

  /**
   * Deletes a call feedback summary for this account's calls.
   *
 
View Full Code Here

   * @throws TwilioRestException the twilio rest exception
   */
  public FeedbackSummary getFeedbackSummary(final String sid) throws TwilioRestException {
    TwilioRestResponse response = getClient()
        .safeRequest(getResourceLocation("") + "/Calls/FeedbackSummary/" + sid + ".json", "GET", (Map) null);
    return new FeedbackSummary(getClient(), response.toMap());
  }
}
View Full Code Here

   * @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());
  }

  /* (non-Javadoc)
   * @see com.twilio.sdk.resource.factory.CallFactory#create(java.util.List)
   */
 
View Full Code Here

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

     */
    @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());
    }

    /**
     * {@inheritDoc}
     */
 
View Full Code Here

     */
    @Override
    public Queue create(List<NameValuePair> params) throws TwilioRestException {
        TwilioRestResponse response = this.getClient().safeRequest(
                this.getResourceLocation(), "POST", params);
        return makeNew(this.getClient(), response.toMap());
    }

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