Web Apps


New Ryzom API

So, I hate XML but I don't see the API ever giving us a JSON option so if you want to get the API data via JSON you can using Yahoo YQL.

Here is an example getting the time:

wget -qO- "http://query.yahooapis.com/v1/public/yql?q=select%20*%20fro m%20xml%20where%20url='http://api.ryzom.com/time.php?format= xml'&format=json&diagnostics=true&callback=" ;


{"query":{"count":1,"created":" ;2014-06-16T18:05:56Z","lang":"en-US",&q uot;diagnostics":{"publiclyCallable":"true&qu ot;,"url":{"execution-start-time":"0&quo t;,"execution-stop-time":"590","executio n-time":"590","content":"http://api .ryzom.com/time.php?format=xml"},"user-time":" ;591","service-time":"590","build-v ersion":"0.2.2525"},"results":{"sha rd_time":{"version":"1.0","server_t ick":"667794646","jena_year":"2578& quot;,"day_of_jy":"997","month_of_jy&quo t;:"33","cycle":"2","day_of_cy cle":"277","month_of_cycle":"9" ;,"day_of_month":"7","day_of_week": "1","season":"3","day_of_seaso n":"7","time_of_day":"5"," ;txt_en":"5h - Dua, Pluvia 8, 3rd AC 2578","txt_fr":"5h - Dua, Pluvia 8, 3e CA 2578","txt_de":"5h - Dua, Pluvia 8, 3. AZ 2578","cache":{"created":"140294190 2","expire":"1402941962"}}}}}


enjoy.

---

Tgwaste
Show topic
Last visit Friday, 19 April 10:46:54 UTC
P_:

powered by ryzom-api