Search code examples
google-app-engineoauthoauth-2.0google-oauthbulkloader

How to use oauth2 to dowload_data in bulkloader


I'm using builkloader in Python, my command like below:

appcfg.py download_data --config_file=bulkloader.yaml --filename=all.csv --kind=all 
  --url=http://myapp.appspot.com/remote_api --namespace=mynamespace

it worked, and I can download it normally after input my email and password. I do not want to input email and password manually, and try --oauth2 option. But it's still prompt me to input email and password in console.

I tried to Google it but have no reason.

Thank in advanced !


Solution

  • I think you are looking for this

    appcfg.py --oauth2_refresh_token=token update myapp/
    

    Link to docs