Google drive API ruby native application, how to retrieve the authorization code in terminal automatically -


I am trying to exclude Ruby Tutorial from Google developers and

  clients I am using Authorization.client_id = CLIENT_ID client.authorization.client_secret = CLIENT_SECRET client.authorization.scope = OAUTH_SCOPE Client. Authorization.redirect_uri = REDIRECT_URI client.authorization.scope = 'https: //www.googleapis.com/auth/drive' uri = Customer .authorization.authorization_uri $ stdout.write Yuri $ stdout.write "" #Token $ stdout.write For Exchange Authorization Code "Enter Authorization Code:" client.authorization.code = gets.chomp client.authorization.fetch_access_token!  

How to obtain the authorization code by opening the URL in the browser and then show how to copy and paste the given athode code in the terminal. So, how do I copy and paste it automatically without any terminal?

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -