Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Peter Pearson Newsgroups: comp.lang.python Subject: Re: Auto-authorization for Google Drive using Python in Mac OS X Date: 6 Nov 2013 16:19:52 GMT Lines: 32 Message-ID: References: <4324b1fe-7a92-4e06-bedd-1eb4bd2ee738@googlegroups.com> X-Trace: individual.net 2Sh0Denc9sP9KTk0sbg3VARy3ZU1pHDa0Q+IG2qvwHZFirvP0I Cancel-Lock: sha1:urMcdfO+X3h1LLEbnqMKNg7YNh0= User-Agent: slrn/pre1.0.0-18 (Linux) Xref: csiph.com comp.lang.python:58572 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.