Web Apps


uiWebPrevious12345678910uiWebNext

#115 [en] 

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

#116 [en] 

Tgwaste (atys)
P.S. it would be really cool if the API would do some translations for us. IE: Skill strings to full names, items sheets/id to full item names, etc.
Translations are static and there is 5 different name for each id. It would make response object too complicated (in structure and size) when client side is so much easier.
Tgwaste (atys)
I know there are other methods out there but they are not convenient especially if you have no idea what a sqlite3DB is. :)
What language? In php you can include ryzom_extra.php and use ryzom_translate(id, lang) on the fly. Problem might arise when php has limited memory and you loading many different data files into memory. Then you should consider moving it to sql.

---

Hello!

#117 [en] 

Karu (atys)
What language? In php you can include ryzom_extra.php and use ryzom_translate(id, lang) on the fly. Problem might arise when php has limited memory and you loading many different data files into memory. Then you should consider moving it to sql.



Objective C

Last edited by Tgwaste (1 decade ago)

---

Tgwaste

#118 [en] 

I updated my ryzom_extra repository and added json-resources branch for non-php projects to import into format they can use.

---

Hello!

#119 [en] 

Karu (atys)
I updated my ryzom_extra repository and added json-resources branch for non-php projects to import into format they can use.

Can you please elaborate on this? Is this just a repo for others contributions or is there something new here? It still looks like a bunch of PHP to me. :)

Ill continue to work through my problems on my own but for someone who's not worked with PHP or Sqlite3 (or whatever odd format the .serial files are in) development is painful.
:)

---

Tgwaste

#120 [en] 

Tgwaste (atys)
Karu (atys)
I updated my ryzom_extra repository and added json-resources branch for non-php projects to import into format they can use.

Can you please elaborate on this? Is this just a repo for others contributions or is there something new here? It still looks like a bunch of PHP to me. :)

Ill continue to work through my problems on my own but for someone who's not worked with PHP or Sqlite3 (or whatever odd format the .serial files are in) development is painful.
:)

Nevermind. I was in the wrong branch. I see what you did. Very cool, thanks!

---

Tgwaste

#121 [en] 

http://app.ryzom.com/app_forum/index.php?page=topic/view/20374/0# 0

:)

---

Tgwaste

#122 [en] 

If anyone previously used dressing room from ballisticmystix.net and/or static map from maps.bmsite.net, then there is new site api.bmsite.net that has them in one place with more or less useful documentation. sources available.

---

Hello!

#123 [en] 

Karu (atys)
If anyone previously used dressing room from ballisticmystix.net and/or static map from maps.bmsite.net, then there is new site api.bmsite.net that has them in one place with more or less useful documentation. sources available.

!! AWESOME !!

Cant wait to put some of this in Ryzom Portal, Many Thanks Karu!!

Last edited by Tgwaste (1 decade ago)

---

Tgwaste

#124 [en] 

When you use the api example, if you check the skill tree, with skill having a too long name (in french for example, 101+ in prime root harvest is "InitiƩ en prospection des primes racines"), it overlaps with your skill level and you can't see it :(

---

#125 [en] 

Any chance that inventories will refresh on request, not only on save?

I'm using zyRoom with inventory sorted by value, but if you somehow lose track what you moved and what you did not, refresh isn't helping (still shows stale data).

---

#126 [en] 

Mjollren (atys)
Any chance that inventories will refresh on request, not only on save?
nope.

---

Hello!

#127 [en] 

What is 'public' when generating an api key? Is there a public list of characters somewhere or something?

#128 [en] 

Kianasta (atys)
What is 'public' when generating an api key? Is there a public list of characters somewhere or something?

In there, 'public' means basic info about character. It does not mean that there is a public list of api keys that have 'public' module selected.

---

Hello!

#129 [en] 

ok thanks. might be good to note that in the app because its entirely unclear.
uiWebPrevious12345678910uiWebNext
 
Last visit Saturday, 23 November 11:03:37 UTC
P_:G_:PLAYER

powered by ryzom-api