Show the Users and Friends of locr on your own Website and program


With the Locr API, you can show the users and friends of Locr on your Website or in your own programs.


functionality:

It's a very simple REST-API, you only have to do a GET-Request

1. Functions:

1.1. get_account: Demo

1.1.1. Parameter
1.1.2. Examples
http://www.locr.com/api/get_account_xml.php?auth_user_name=testuser&api_signature=8b55eac3b2291b201fc59cd8b76410ab&auth_token=c8b066236c8cbcc280921b93f24e281a
http://www.locr.com/api/get_account_json.php?auth_user_name=testuser&api_signature=8b55eac3b2291b201fc59cd8b76410ab&auth_token=c8b066236c8cbcc280921b93f24e281a

1.2. update_account: Demo

1.2.1. Parameter
User Authorization*
first_name
last_name
gender:
  • 0 -> Male
  • 1 -> Female
phone_number
street
house_number
postcode
city
country
1.2.2. Examples
http://www.locr.com/api/update_account_xml.php?auth_user_name=testuser&api_signature=8b55eac3b2291b201fc59cd8b76410ab&auth_token=c8b066236c8cbcc280921b93f24e281a
http://www.locr.com/api/update_account_json.php?auth_user_name=testuser&api_signature=8b55eac3b2291b201fc59cd8b76410ab&auth_token=c8b066236c8cbcc280921b93f24e281a

2. Example answers:

XML JSON
<?xml version="1.0"?>
<user_account
  <user>
    <name>testuser</name>
    <user_url>http://www.locr.com/profile/testuser</user_url>
    <id>1234567</id>
    <created>2007-12-10 21:13:45</created>
    <first_name>test</first_name>
    <last_name>user</last_name>
    <gender value="0">Male</gender>
    <email>test@mail.com</email>
    <phone_number>1234567</phone_number>
    <street>teststreet</street>
    <house_number>123</house_number>
    <postcode>12345</postcode>
    <city>testcity</city>
    <country id="54">Germany</country>
    <latitude>52</latitude>
    <longitude>10</longitude>
    <authorization>0</authorization>
    <pro_account_expiration_date>0000-00-00 00:00:00</pro_account_expiration_date>
    <upload_limit>104857600</upload_limit>
    <upload_remaining>12345678</upload_remaining>
    <status_flags>1</status_flags>
  </user>
</user_account>
* = Obligatory

Conditions
Every photo displayed on your Website have to include our name or our logo. A link to the photo page (e.g. http://www.locr.com/photo_detail.php?id=123456) at Locr.com is also a requirement. Under the photo have to be displayed the name of the author linked to his area at Locr (e.g. http://www.locr.com/profile/testuser). Also somewhere in your site you need to include the text "Photos provided by Locr are under the copyright of their owners."

Terms of use
If you have non-commercial interests, you can use the API without asking for permission. If you want to make a profit with the API, it is commercial and you need our explicit authorization. Please contact us under info@locr.com. Further Information under GTB.

Questions
If you have suggestions or questions, just contact us under info@locr.com