Version 1.2 - Updated on 9/23/2016
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 Keyconsumer_secret
: Your application Secretlocale
: The locale of the user currently using your app.
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_token
is an access token string that can be passed to the SdkClient
.user_id
is the user ID of the user that just approved your app.
def finish(code)
_finish(code, nil)
end
#start ⇒ Object
Returns an authorization_url
, where the user can give your app access to his or her Personal Cloud Storag content.
def start()
_get_authorize_url(nil, nil)
end
Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.