public class IAPlatformClient extends Object
| Constructor and Description |
|---|
IAPlatformClient() |
| Modifier and Type | Method and Description |
|---|---|
PlatformResponse |
disconnect(String consumerKey,
String consumerSecret,
String accessToken,
String accessTokenSecret)
Disconnects the user from quickbooks
|
List<String> |
getAppMenu(String consumerKey,
String consumerSecret,
String accessToken,
String accessTokenSecret)
Get App Menu returns list of all the applications that are linked with
the selected company
|
User |
getcurrentUser(String consumerKey,
String consumerSecret,
String accessToken,
String accessTokenSecret)
getCurrentUser the user from quickbooks
|
Map<String,String> |
getOAuthAccessToken(String verifierCode,
String requestToken,
String requestTokenSecret,
String consumerKey,
String consumerSecret)
Gets the accesstoken and accesstokensecret
|
String |
getOauthAuthorizeUrl(String requestToken) |
String |
getOpenIdAuthorizeUrl()
Gets the authorization url for OpenId
|
Map<String,String> |
getRequestTokenAndSecret(String consumerKey,
String consumerSecret) |
PlatformResponse |
reConnect(String consumerKey,
String consumerSecret,
String accessToken,
String accessTokenSecret) |
org.openid4java.discovery.Identifier |
verifyOpenIdResponse(String receivingUrl,
Map<String,String[]> parameterMap) |
public PlatformResponse disconnect(String consumerKey, String consumerSecret, String accessToken, String accessTokenSecret) throws ConnectionException
ConnectionExceptionpublic User getcurrentUser(String consumerKey, String consumerSecret, String accessToken, String accessTokenSecret) throws ConnectionException
ConnectionExceptionpublic List<String> getAppMenu(String consumerKey, String consumerSecret, String accessToken, String accessTokenSecret) throws ConnectionException
ConnectionExceptionpublic Map<String,String> getRequestTokenAndSecret(String consumerKey, String consumerSecret) throws OAuthException
OAuthExceptionpublic String getOauthAuthorizeUrl(String requestToken) throws OAuthException
requestToken - OAuthException - This API will prepare the authorization URL and return it backpublic Map<String,String> getOAuthAccessToken(String verifierCode, String requestToken, String requestTokenSecret, String consumerKey, String consumerSecret) throws OAuthException
verofierCode - requestToken - (After the user authorization)requestTokensecret - OAuthExceptionpublic String getOpenIdAuthorizeUrl() throws OpenIdException
OpenIdExceptionpublic org.openid4java.discovery.Identifier verifyOpenIdResponse(String receivingUrl, Map<String,String[]> parameterMap) throws OpenIdException
receivingUrl - parameterMap - OpenIdExceptionpublic PlatformResponse reConnect(String consumerKey, String consumerSecret, String accessToken, String accessTokenSecret) throws ConnectionException
consumerKey - consumerSecret - accessToken - accessTokenSecret - ConnectionExceptionCopyright © 2017. All rights reserved.