Syphox (atys)Please don't do that. That results you requesting xml twice.here is a small script to check the validation of the guild key. change the old one to this
Check errors after you download the xml. API key can expire, can be regenerated or there might be server side cache hiccup that gives temporal error.
it should be use to add a key with a form script to a database or file. it shouldn't be used with every call request. :)
i use this function only, when guild members want add a new key in a form script, to check, if the key is valid and when it's valid, then it will be save into a database.
for this example: