sociotoco.profiles.getProfile
With the sociotoco.profiles.getProfile method you can
retrieve the profile details of the given UserID and NetworkID.
Authentication
This method requires authentication.
Arguments
Required
Example Request
GET
/services/1.1/rest?method=sociotoco.profiles.getProfile&key=[your_key]&userid=arnoham&nid=6&time=[unix_timestamp]&sig=[signature]
HTTP/1.1
Example Response
<?xml version="1.0" encoding="utf-8"?>
<response>
<profile id="F3ED1ED29D7">
<network id="6">Twitter</network>
<name>Arno Ham</name>
<location>Schiedam, Netherlands</location>
<imageUrl>http://www.sociotoco.com/services/image?pid=F3ED1ED29D7</imageUrl>
<userId>arnoham</userId>
<profileUrl>http://twitter.com/arnoham</profileUrl>
<fields>
<description>Manager Software Development at ISM eCompany (Arno 1.0)
returned from a World Trip!</description>
<followers>76</followers>
<friends>74</friends>
<updates>182</updates>
<timeZone>Amsterdam</timeZone>
</fields>
</profile>
</response>
{
"response":{
"profile":{
"id":"F3ED1ED29D7",
"network":{
"id":6,
"name":"Twitter"
},
"name":"Arno Ham",
"location":"Schiedam, Netherlands",
"imageUrl":"http://www.sociotoco.com/Service/Api/image?pid=F3ED1ED29D7",
"userId":"arnoham",
"profileUrl":"http://twitter.com/arnoham",
"fields":{
"description":"Manager Software Development at ISM eCompany (Arno 1.0)
returned from a World Trip!",
"followers":"76",
"friends":"74",
"updates":"183",
"timeZone":"Amsterdam"
}
}
}
}
Error codes
| 100 |
KeyMissing
There is no key argument in the query string. |
| 101 |
SignatureMissing
There is no sig argument in the query string. |
| 200 |
KeyInvalid
There is an invalid key argument in the query string. |
| 201 |
KeyNotFound
The key is not found as a registered api key. |
| 210 |
SignatureInvalid
The supplied signature in the query string is
invalid. |
| 220 |
MethodNotSupported
The supplied method in the query string is not
supported. |
| 301 |
UserIdMissing
There is no UserID argument in the query string. |
| 400 |
NetworkInvalid
The supplied network argument is invalid. |
| 401 |
NetworkNotSupport
The supplied networkId is not supported.
|
| 410 |
UserNotFound
The supplied UserId is not found or is not public on the
network. |