Package com.createsend.models

Examples of com.createsend.models.OAuthTokenDetails


      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


   *
   * @return New OAuthTokenDetails instance containing the new access token,
   *         'expires in' value, and refresh token.
   */
  public OAuthTokenDetails refreshToken() throws CreateSendException {
    OAuthTokenDetails result = null;
    AuthenticationDetails auth = this.jerseyClient
        .getAuthenticationDetails();
    if (auth != null && auth instanceof OAuthAuthenticationDetails) {
      OAuthAuthenticationDetails oauthDetails = (OAuthAuthenticationDetails) auth;
      String body = "grant_type=refresh_token";
View Full Code Here

      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

TOP

Related Classes of com.createsend.models.OAuthTokenDetails

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.