Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #58572

Re: Auto-authorization for Google Drive using Python in Mac OS X

From Peter Pearson <ppearson@nowhere.invalid>
Newsgroups comp.lang.python
Subject Re: Auto-authorization for Google Drive using Python in Mac OS X
Date 2013-11-06 16:19 +0000
Message-ID <bdv8h8Fu7d3U1@mid.individual.net> (permalink)
References <4324b1fe-7a92-4e06-bedd-1eb4bd2ee738@googlegroups.com>

Show all headers | View raw


On Mon, 4 Nov 2013 11:46:54 -0800 (PST), Pratik Mehta wrote:

> I have written Python code for Google Drive which uploads the image
> files to my drive app. I have three queries. Here is my code:
[snip]
>
> My Queries:
> 1. This program will upload all the images to my given client_id and
> client_secret.  How do I make users to use my app and upload their
> images to their own Google Drive?
> 2. I want to automate this task. Whenever I run this application in
> terminal, it always asks me for the authorization code, which I don't
> want. Can this be bypassed?
> 3. I read about refresh_tokens, but couldn't find how can I implement
> this in my app for automating the authorization.  So, is
> refresh_tokens used for that? If yes, then how do I implement it in my
> program?  If not, then how can I make sure that as soon as my
> application is loaded, that particular file gets uploaded on google
> drive directly, without any authorization, or with any
> auto-authorization way, so that user interaction is chucked
> completely.

I'm sorry to see that you haven't gotten a response. I can't help,
because I can't understand the questions, perhaps because they
require intimate knowledge of Google Drive or of a library that
you're using to access Google Drive.  This is ordinarily an
amazingly helpful group; perhaps you could find a more specific
question that could be illustrated with shorter code.


-- 
To email me, substitute nowhere->spamcop, invalid->net.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Auto-authorization for Google Drive using Python in Mac OS X Pratik Mehta <pratik.mehta13390@gmail.com> - 2013-11-04 11:46 -0800
  Re: Auto-authorization for Google Drive using Python in Mac OS X Peter Pearson <ppearson@nowhere.invalid> - 2013-11-06 16:19 +0000

csiph-web