Version 1.6 - Updated on 03/23/2017
OAuth 2.0 authorization helper for apps that can’t provide a redirect URI, such as the command line example apps.
#initialize(consumer_key, consumer_secret, locale = nil) ⇒ SdkOAuth2FlowNoRedirect
consumer_key: Your application Key
consumer_secret: Your application Secret
locale: The locale of the user currently using your app.
class="language-ruby">def initialize(consumer_key, consumer_secret, locale=nil) super(consumer_key, consumer_secret, locale) end
#finish(code) ⇒ Object
After the user approves your app, they are presented with an authorization code. The user should copy and paste the authorization code into your app and then call this method to obtain an access token.
Returns a two-entry list (access_token, user_id).
access_tokenis an access token string that can be passed to the
user_idis the user ID of the user that just approved your app.
class="language-ruby">def finish(code) _finish(code, nil) end
#start ⇒ Object
authorization_url, where the user can give your app access to his or her Personal Cloud Storag content.
class="language-ruby">def start() _get_authorize_url(nil, nil) end
Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.