Using Google Api fetch Documents list and download them?

前端 未结 1 1360
旧时难觅i
旧时难觅i 2021-01-25 01:56

Hi i am using the picasa example for android and modifying it but i am not getting any list of documents Plz help i am posting my modified class rest are same as in picasa examp

1条回答
  •  执笔经年
    2021-01-25 02:06

    You need to set the version. From the API documentation section called Specifying a Version ...

    If you make a request to the API that uses a feature only available in version 3, but forget to set the version, you will most likely receive a 400 Bad Request response. Since the URL structure is different between versions 2 and 3, this is a common mistake made by new users of the API.

    To specify a version number, use the GData-Version HTTP header. The value of this header must be 3.0. The decimal and the zero are required.

    GData-Version: 3.0
    

    Alternatively, you can specify v=3 as a query parameter in the URL. This is often needed when working behind a firewall that strips HTTP headers, or from some JavaScript requests. Use of the HTTP header is recommended when possible.

    https://docs.google.com/feeds/default/private/full?v=3
    

    0 讨论(0)
提交回复
热议问题