Web Apps


uiWebPrevious12345678910uiWebNext

#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.

#130 [en] 

I realize this probably won't happen but it would be really cool if we could tie into Global Chat via the API.

o Require a Char Key for security
o Spit out last X messages
o Send message

Any chance? :)

---

Tgwaste

#131 [en] 

Tgwaste
Any chance? :)
nope.

---

Hello!

#132 [en] 

Full guilds xml and individual guild api (G01) should have <outposts> group with one or more <outpost> nodes that list the owned outpost sheet name (without .outpost extension), ie 'fyros_outpost_04' is Malmont Farm

---

Hello!

#133 [en] 

would it be possible to add <faction> like there is <race> ?

and less probable, API for OP wars?

---



#134 [en] 

Siela
would it be possible to add <faction> like there is <race> ?
cult/civilization status is available from individual guild api. Its guild choice is they want to share that info (G01) or not.

Siela
and less probable, API for OP wars?

Yeah not going to happen. If guild dont want to find out that they came second on op war, then they should log in more often ;-)

---

Hello!

#135 [en] 

Anyone wrote Python or C code that uses GET for the XMLs?

#136 [en] 

Nudge
Anyone wrote Python or C code that uses GET for the XMLs?

There was py-ryzom-api for python, but its abandoned and no source in github anymore.

I have not heard of anyone doing it in C.

---

Hello!

#137 [en] 

Thanks Karu.

#138 [en] 

In Python, requesting the xml from the server would be trivial with the "requests" library, then there are xml/html parsing libraries like BeautifulSoup + lxml.

What exactly are you trying to accomplish? :)

---


My home is always sweet Yrkanis..

#139 [en] 

Right, I am not a py programmer so C or assembler would do better for me ;),... I would even take Fortran or Pascal.

I am trying to get all items and details in inventory for a toon, then massage it into something magical.

I have been able to get it using this:
import sys
import xml.etree.ElementTree as ET
import requests
RYZ_API_ENDPOINT = "http://api.ryzom.com/character.php"
ryz_api_key = "abracadabraverylongcodewithnumbersandlettersstuff"
RYZ_PARAMS = {'apikey': ryz_api_key}
r = requests.get(url = RYZ_API_ENDPOINT, params = RYZ_PARAMS)
print(r.status_code)
print(r.status_code == requests.codes.ok)
print(r.headers['content-type'])
print(r.encoding)
print(r.url)
ryz_toon = ET.parse(r.text)
for elem in ryz_toon.iter():
 print ("%s: '%s'\n\r", elem.tag, elem.text)
Just wondered if there is a better, or pre-made set of libs.

Ultimately, not much different in C either.  there are libraries to get a HTTP/S responses back, and also XML parsers.

Last edited by Nudge (6 years ago)

uiWebPrevious12345678910uiWebNext
 
Last visit Wednesday, 27 November 11:54:34 UTC
P_:G_:PLAYER

powered by ryzom-api