Authentication And Authorization

Authentication and Authorization

Contents

Introduction

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.

Authentication and Authorization API Calls

Authenticatind Your App

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.

Code Sample

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.