mynameisJEFF
mynameisJEFF

Reputation: 4239

Google API: Understanding redirect URI

I want to use Google API to track the number of tweets a particular website (say Rbloggers) make each day. And I am trying to do it in Python.

I am completely new to this. So, I was looking at the hello-analytics-api, in which I need to deal with OAuth 2.0. And I have no idea what to put down for the redirect URI.

I have read What's a redirect URI? how does it apply to iOS app for OAuth2.0?

But I still don't quite understand the concepts and what I should put down for the 'redirect URI' ?

Upvotes: 1

Views: 1711

Answers (1)

Parth
Parth

Reputation: 759

From Choosing a redirect URI

When you create a client ID in the Google Developers Console, two redirect_uris are created for you: urn:ietf:wg:oauth:2.0:oob and http://localhost. The value your application uses determines how the authorization code is returned to your application.

In case of desktop apps or programs, you should set it to urn:ietf:wg:oauth:2.0:oob so that you will be redirected to the page where you can copy the authorization code from internet browser and paste it in your desktop app

Upvotes: 1

Related Questions