User.countries

From Safe Creative API
Revision as of 08:08, 5 May 2010 by w>Jguillo (Created page with 'Creates a new authkey. = Info = * '''Component name:''' user.countries * '''Signature:''' No signature required * '''Timestamp:''' Ztime is not required = Parameters = * '''lo…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Creates a new authkey.

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

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>