Before you can use CloudClient, you must follow the OAuth 2.0 authorization code flow to gain access to the content stored in a user’s Verizon Personal Cloud Storage account. This is a two-step process: you must first obtain an authorization code, then exchange the authorization code for an access token and a refresh token.
NOTE: The Callback URL is case sensitive.
getAuthorize- returns the authorization URL.
getAuthorizeRedirection- redirects to the authorization URL.
getToken- retrievesa new Access and Refresh tokens.
loggedIn- returns true if the user is logged on.
updateAccesToken- updates expired access token with new access token.
To authenticate your app,you need to update Key, Secret and callback URL in the sample/config.php file to the values that you have obtained from Key Management when you registered your app.
define('clientKey', 'xxxxxxxxxxxxxxxx'); define('clientSecret', 'xxxxxxxxxxxxxxxx'); define('callbackUrl', 'xxxxxxxxxxxxxxxx');
NOTE: Refer to Getting Credentials to Use the Personal Cloud Storage APIs page in the API Developer Guide for information on how to register our app.
Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.