spark_api icon indicating copy to clipboard operation
spark_api copied to clipboard

SkipToken not included in results for Spark API calls

Open catheg88 opened this issue 6 years ago • 2 comments

It is for RESO Web API calls, though (via nextlink). Example:

SparkApi.client.get "/listings?_skiptoken="

returns results but not the SkipToken

catheg88 avatar Nov 06 '19 15:11 catheg88

Could you check if that exists in the pagination info, @catheg88? The current implementation of this will only yield the values of the results.

a = SparkApi.client.get "/listings?_skiptoken="
a.pagination

We should also be able to access the D record like this if pagination doesn't include this and you need this prior to any work being done:

a = SparkApi.client.get "/listings?_skiptoken="
a.d

codygustafson avatar Nov 06 '19 15:11 codygustafson

Got it. There's no result from a.pagination, but I do see the SkipToken from a.d["SkipToken"]. Good to know.

catheg88 avatar Nov 06 '19 15:11 catheg88