NAME

com::zoho::api::athenticator::OAuthToken - This class gets token and checks expiry time

DESCRIPTION

METHODS

new

Returns an OAuthToken class instance with the specified parameters

Param client_id : A String containing the OAuth client id

Param client_secret : A String containing the OAuth Client secret

Param redirect_url : A String containing the OAuth redirect Url

Param token : A String containing the REFRESH/GRANT token

Param token_type : A method containing the given token type.

get_client_id

Returns A String representing the OAuth client id

get_client_secret

Returns A String representing the OAuth client secret

get_redirect_url

Returns A String representing the OAuth redirect URL

get_grant_token

Returns A String representing the grant token

get_refresh_token

Returns A String representing the refresh token

get_access_token

Returns A String representing access token

get_expires_in

Returns A String representing token expire time

set_refresh_token

This is a setter method to set refresh token.

Param refresh_token : A String containing the refresh token

set_access_token

This is a setter method to set access token.

Param access_token : A String containing the access token

set_expires_in

This is a setter method to set Expires in.

Param expires_in : A String containing the token expire time

set_grant_token

This is a setter method to set grant token.

Param grant_token : A String containing the grant token