[Chicago] Looking for some OAUTH2/Google API help
Carl Karsten
carl at personnelware.com
Mon Feb 29 14:23:57 EST 2016
Here is what mine looks like:
$ jsonlint -f client_secrets.json
{ "installed" : {
"auth_provider_x509_cert_url" : "
https://www.googleapis.com/oauth2/v1/certs",
"auth_uri" : "https://accounts.google.com/o/oauth2/auth",
"client_email" : "",
"client_id" : "
999999999999-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.apps.googleusercontent.com",
"client_secret" : "aaaaaaaaaaaaaaaaaaaaaaaa",
"client_x509_cert_url" : "",
"redirect_uris" : [
"urn:ietf:wg:oauth:2.0:oob",
"oob"
],
"token_uri" : "https://accounts.google.com/o/oauth2/token"
} }
See, I did it. Once, on Apr 3 2014.
On Sun, Feb 28, 2016 at 10:14 PM, Skip Montanaro <skip.montanaro at gmail.com>
wrote:
>
> Carl> I think I can help.
>
> Carl> I use the api to upload 1000's of videos to youtube from the CLI.
> same thing, right?
>
> Yeah, pretty much.
>
> Carl> Here is the blocker I ran into trying to help someone else use my
> code:
>
> Carl> 2. Get a client ID (defines who is running this code)
> https://developers.google.com/identity/protocols/OAuth2ServiceAccount#creatinganaccount
> ...
> Thanks, that's a new entry into developers.google.com for me. I hadn't
> seen that before.
>
> Carl> The code is here:
>
> I'll check that out as well.
>
> Carl> I floundered around writing it, ...
>
> Seems to me that the whole OAUTH2 thing should be pretty much boiler
> plate. Ought to be able to whittle it down to a straightforward function
> call or class instantiation. Of course, at this point, I have no experience
> with actual working code, so what do I know? :-/
>
> Carl> What's next?
>
> Let me check out that URL and your code. I'll post back here in a day or
> three. Well you be at the March 10 meeting? Perhaps we can connect then.
>
> Carl> Oh yeah, getting the -right- key is what trips me up. Getting the
> wrong key is easy.
>
> I can assure anyone who questions the veracity of this statement that Carl
> speaks the truth. I have plenty of experience with the second option at
> this point.
>
> Skip
>
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> https://mail.python.org/mailman/listinfo/chicago
>
>
--
Carl K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20160229/e334fca2/attachment.html>
More information about the Chicago
mailing list