$data = gcapi("GetUsersWhoFavoritedCache?CacheCode=" + $d_code) if $_GcApiError # Error running api, so show the error message msgok msg=$data else $data = sqlite("sql","select data from GcApi where g_Contains('a:UserName',key)","Headings=Y") $status = sqltohtml($data,"Users that favorited cache - $d_code","Y") endif |
$data = gcapi("GetGeocacheStatus",$status) if $_GcApiError # error running api so show error message msgok msg=$data else # api OK now do what you want with the return data endif <Data> Varname=$status <GetGeocacheStatusRequest xmlns="http://www.geocaching.com/Geocaching.Live/data"> <AccessToken>{ACCESSTOKEN}</AccessToken> <CacheCodes> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">GCGTQ5</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">GCGQCA</string> </CacheCodes> </GetGeocacheStatusRequest> <enddata> |