All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ebay.sdk.call.GetTokenStatusCall Maven / Gradle / Ivy

/*
Copyright (c) 2013 eBay, Inc.
This program is licensed under the terms of the eBay Common Development and
Distribution License (CDDL) Version 1.0 (the "License") and any subsequent  version 
thereof released by eBay.  The then-current version of the License can be found 
at http://www.opensource.org/licenses/cddl1.php and in the eBaySDKLicense file that 
is under the eBay SDK ../docs directory.
*/

package com.ebay.sdk.call;


import com.ebay.sdk.*;
import com.ebay.soap.eBLBaseComponents.*;
/**
 * Wrapper class of the GetTokenStatus call of eBay SOAP API.
 * 
*

Title: SOAP API wrapper library.

*

Description: Contains wrapper classes for eBay SOAP APIs.

*

Copyright: Copyright (c) 2009

*

Company: eBay Inc.

*
Output property: ReturnedTokenStatus - This container value indicates the status and expiration date of a user token. If a user token was revoked, the date/time of the revocation is also returned under this container. * * @author Ron Murphy * @version 1.0 */ public class GetTokenStatusCall extends com.ebay.sdk.ApiCall { private TokenStatusType returnedTokenStatus=null; /** * Constructor. */ public GetTokenStatusCall() { } /** * Constructor. * @param apiContext The ApiContext object to be used to make the call. */ public GetTokenStatusCall(ApiContext apiContext) { super(apiContext); } /** * This call is used to get the current status of a user token. There are no call-specific fields in the request payload. * *
* @throws ApiException * @throws SdkException * @throws Exception * @return The TokenStatusType object. */ public TokenStatusType getTokenStatus() throws com.ebay.sdk.ApiException, com.ebay.sdk.SdkException, java.lang.Exception { GetTokenStatusRequestType req; req = new GetTokenStatusRequestType(); GetTokenStatusResponseType resp = (GetTokenStatusResponseType) execute(req); this.returnedTokenStatus = resp.getTokenStatus(); return this.getReturnedTokenStatus(); } /** * Valid after executing the API. * Gets the returned GetTokenStatusResponseType.returnedTokenStatus. * * @return TokenStatusType */ public TokenStatusType getReturnedTokenStatus() { return this.returnedTokenStatus; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy