Android - Google Drive HTTP Request

后端 未结 2 1822
野趣味
野趣味 2021-01-05 16:35

I am trying to write an application which can upload files to Google Drive. I have chosen to interact with this service via raw http requests as I haven\'t found any useful

2条回答
  •  礼貌的吻别
    2021-01-05 17:11

    If you use HTTPS, GET instead of POST and a Bearer token it works.

    using curl:

    curl -H "Authorization: Bearer {TOKEN}" \
    -H "Content-Type: application/json" \
    https://www.googleapis.com/drive/v2/files
    

    I have no idea why google is not documenting the REST API. Please comment if you found the documentation somewhere.

提交回复
热议问题