Developers
TheProfile.co.uk loves developers!
We provide an API that will allow you to access and use our profile data on your site.
To access a user's data, please use the address http://www.theprofile.co.uk/api/ followed by the username you want to access with the extension of either xml or json.
For example...- to get an XML file for an account called test you would use: http://theprofile.co.uk/api/test.xml
- to get a JSON file ofor an account called test you would use: http://theprofile.co.uk/api/test.json
Example of expected XML output
<user> <nickName>TestO</nickName> <title>Mr</title> <firstname>Joe</firstname> <lastname>Bloggs</lastname> <dateOfBirth>1960-01-01</dateOfBirth> <gender>Male</gender> <email>test@theprofile.co.uk</email> <imageURL>http://theprofile.co.uk/img/blank.gif</imageURL> </user>
Example of expected JSON output
{"user": {
"nickName": "Testo",
"title": "Mr",
"firstname": "Joe",
"lastname": "Bloggs",
"dateOfBirth": "1960-01-01",
"gender": "Male",
"email": "test@theprofile.co.uk",
"imageURL": "http://theprofile.co.uk/img/blank.gif",
"datasource": "theprofile.co.uk"
}
}
