CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • What is the proper country parameter for United Kingdom ?
Pages: [1]

Author Topic: What is the proper country parameter for United Kingdom ?  (Read 1794 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
What is the proper country parameter for United Kingdom ?
March 30, 2009, 11:05:00 am
Hi,

Using the rest api, I'm fetching contacts related to a country.

Works fine for everyone, but the United kingdom doesn't work. I tried United%20Kingdom, 1226, UK...

What's the proper encoding (or name of the country ?)

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: What is the proper country parameter for United Kingdom ?
March 30, 2009, 05:59:44 pm
Xavier - which specific API function? I checked Contact_BAO_Query and it looks like we expect country_id - which would be 1226 for the UK.
Protect your investment in CiviCRM by  becoming a Member!

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: What is the proper country parameter for United Kingdom ?
March 31, 2009, 01:00:13 am
Hi,

Sorry, the problem came from a custom code above the api.

Thanks

-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • What is the proper country parameter for United Kingdom ?

This forum was archived on 2017-11-26.