Fetching API Balance

Hello,  

Apologies for the English post. 

As GSAK is being less well maintained, I am hoping to change some of tasks over to geoget.  Right now I use the Combine script.

Does anyone have an example of getting the remaining API quota? A frequent operation for me is to filter to a subset of caches and then refresh what I can using the available quota.  

The GCAPI call is "users/me/?fields=geocacheLimits"

Thanks.

sloth96

  sUrl:='v1/users?usernames='+encodeurlelement(AnsiToUtf(GEOGET_OWNER))+'&fields=username,geocacheLimits';
  iErr:=GcLiveRest('GET',sUrl,'','',sJson);

Geoget call this API as part of standard dialog with import results too.

Many thanks.  I am still figuring out the Geoget way of doing things.  

While geoget calls it as part of an import, I could not figure out how to get the value from that call.