Přejít na obsah


Fotka

Fetching API Balance


  • Pokud chcete vložit odpověď, přihlašte se
3 odpovědí na toto téma

#1 sloth96

sloth96

    Member

  • Members
  • PipPip
  • 19 příspěvků(y)

Publikováno 31 březen 2021 - 20:09

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


  • 0

#2 gord

gord

    Advanced Member

  • Members
  • PipPipPip
  • 10 110 příspěvků(y)

Publikováno 31 březen 2021 - 20:16

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

  • 0

MHD/PID vybranych mest CR jako POI (diskuse)
GeoGet:
- Combine - automatizace opakovanych cinnosti (diskuse, dávky)

Stator - statistiky y GeoGetu (diskuse)

- Spoiler - uložení spoilerů do GPS jako POI (diskuse)

- Náhrada GJ legálními postupy

 


#3 HaLuMa

HaLuMa

    Autor Geogetu

  • Members
  • PipPipPip
  • 14 515 příspěvků(y)

Publikováno 31 březen 2021 - 20:42

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

#4 sloth96

sloth96

    Member

  • Members
  • PipPip
  • 19 příspěvků(y)

Publikováno 01 duben 2021 - 15:11

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.


  • 0




0 uživatel(ů) prochází toto téma

0 uživatelů, 0 návštěvníků 0 anonymních uživatelů

Reklama