User.countries: Difference between revisions
Jump to navigation
Jump to search
w>Jguillo No edit summary |
w>Jguillo No edit summary |
||
Line 26: | Line 26: | ||
RESPONSE: | RESPONSE: | ||
<pre> | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<countries> | |||
<country> | |||
<code>AF</code> | |||
<name>Afghanistan</name> | |||
</country> | |||
[...] | [...] | ||
<country> | |||
<code>ZW</code> | |||
<name>Zimbabwe</name> | |||
</country> | |||
</countries> | |||
</pre> | |||
[[Category:API component]] | [[Category:API component]] |
Revision as of 08:39, 5 May 2010
Returns the list of countries.
Info
- Component name: user.countries
- Signature: No signature required
- Timestamp: Ztime is not required
Parameters
- locale: Locale for country names
* Required parameter
Returns
- countries
- country
- code: Country ISO code
- name: Country name
- country
Sample
REQUEST:
https://api.safecreative.org/v2/ ?component=user.countries &locale=en
RESPONSE:
<?xml version="1.0" encoding="UTF-8"?> <countries> <country> <code>AF</code> <name>Afghanistan</name> </country> [...] <country> <code>ZW</code> <name>Zimbabwe</name> </country> </countries>