Package com.createsend.util

Examples of com.createsend.util.JerseyClientImpl


     * ApiKeyAuthenticationDetails instance.
     * @param listID The List ID to use when making API calls.
     */
    public Lists(AuthenticationDetails auth, String listID) {
      setListID(listID);
        this.jerseyClient = new JerseyClientImpl(auth);
    }
View Full Code Here


     * @param auth The authentication details to use when making API calls.
     * May be either an OAuthAuthenticationDetails or
     * ApiKeyAuthenticationDetails instance.
     */
    public General(AuthenticationDetails auth) {
      this.jerseyClient = new JerseyClientImpl(auth);
    }
View Full Code Here

      int    clientID,
      String clientSecret,
      String redirectUri,
      String code) throws CreateSendException {

      JerseyClient oauthClient = new JerseyClientImpl(null);
      String body = "grant_type=authorization_code";
      try {
          body += "&client_id=" + String.valueOf(clientID);
          body += "&client_secret=" + URLEncoder.encode(clientSecret, urlEncodingScheme);
          body += "&redirect_uri=" + URLEncoder.encode(redirectUri, urlEncodingScheme);
          body += "&code=" + URLEncoder.encode(code, urlEncodingScheme);
    } catch (UnsupportedEncodingException e) {
      body = null;
    }
     
      // TODO: Use a custom error deserialiser in the following post

      OAuthTokenDetails result = oauthClient.post(
          Configuration.Current.getOAuthBaseUri(), OAuthTokenDetails.class, body,
          MediaType.APPLICATION_FORM_URLENCODED_TYPE, "token");
      return result;
    }
View Full Code Here

     * ApiKeyAuthenticationDetails instance.
     * @param segmentID The Segment ID to use when making API calls.
     */
    public Segments(AuthenticationDetails auth, String segmentID) {
      setSegmentID(segmentID);
        this.jerseyClient = new JerseyClientImpl(auth);
    }
View Full Code Here

     * ApiKeyAuthenticationDetails instance.
     * @param clientID The Client ID to use when making API calls.
     */
  public People(AuthenticationDetails auth, String clientID) {
    this.setClientID(clientID);
    this.jerseyClient = new JerseyClientImpl(auth);
  }
View Full Code Here

     * ApiKeyAuthenticationDetails instance.
     * @param listID The List ID to use when making API calls.
     */
    public Subscribers(AuthenticationDetails auth, String listID) {
        setListID(listID);
        this.jerseyClient = new JerseyClientImpl(auth);
    }
View Full Code Here

     * ApiKeyAuthenticationDetails instance.
     * @param listID The List ID to use when making API calls.
     */
    public Lists(AuthenticationDetails auth, String listID) {
        setListID(listID);
        this.jerseyClient = new JerseyClientImpl(auth);
    }
View Full Code Here

     * ApiKeyAuthenticationDetails instance.
     * @param segmentID The Segment ID to use when making API calls.
     */
    public Segments(AuthenticationDetails auth, String segmentID) {
      setSegmentID(segmentID);
        this.jerseyClient = new JerseyClientImpl(auth);
    }
View Full Code Here

     * ApiKeyAuthenticationDetails instance.
     * @param clientID The Client ID to use when making API calls.
     */
    public Clients(AuthenticationDetails auth, String clientID) {
        setClientID(clientID);
        this.jerseyClient = new JerseyClientImpl(auth);
    }
View Full Code Here

     * ApiKeyAuthenticationDetails instance.
     * @param templateID The Template ID to use when making API calls.
     */
    public Templates(AuthenticationDetails auth, String templateID) {
        setTemplateID(templateID);
        this.jerseyClient = new JerseyClientImpl(auth);
    }
View Full Code Here

TOP

Related Classes of com.createsend.util.JerseyClientImpl

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.