Getting Error in retrieving data from Google Spreadsheet API using Structure Query (sq) in Android

前端 未结 2 1764
你的背包
你的背包 2021-01-06 11:44

I am working with Google Spreadsheet API in Android. I am successfully done with the integration and able to retrieve the rows. But facing a little problem in search functio

相关标签:
2条回答
  • 2021-01-06 12:12

    Or you could search the issues list for issue 2308 and notice comment 3:

    if you just wrap the name in quotes, it works fine. You can even use spaces in your column names here.

    https://spreadsheets.google.com/feeds/${KEY}/records/0?sq="5B"+%3D+3 https://spreadsheets.google.com/feeds/${KEY}/records/0?sq="the+cat"+%3D+3

    ... and hope that what was not documented in respect of the records feed was actually implemented in respect of the list feed, despite the transition to a 'WontFix' status later.

    0 讨论(0)
  • 2021-01-06 12:12

    Well, the now-defunct GData 2.0 Protocol Guide (also on the wayback machine) says in respect of the "q" parameter:

    list search terms separated by spaces, in the form q=term1 term2 term3. (As with all of the query parameter values, the spaces must be URL encoded)

    However, the defunct-so-much-as-to-be-unpublished-anymore-by-Google Spreadsheets Data API 3.0 Reference Guide is a bit light-on with information about parameters to the list-feed-specific "sq" parameter.

    I'd probably try wrapping the search term in quotes "like so" (and URLencoding them). That's the technique which the "q" parameter uses for delimiting entire phrases.

    If that didn't work, I'd file an issue report complaining about inadequate documentation. Feel free to cite my prior complaint.

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