One API To
Rule Them All

sociotoco.sets.setProfiles

With the sociotoco.sets.setProfiles method you can set a list of profiles to a Sociotoco Set. You retrieve a list of profiles which where succesfully added to the set. And a version number of the set.

Authentication
This method requires authentication.

Arguments

Required

  • An API Key (key)
  • A Signature (sig)
  • A Unix Timestamp (time)
  • A SociotocoID (sid)
  • A list of profileIDs comma seperated (profiles)

Example Request

GET /services/1.1/rest?method=sociotoco.sets.setprofiles&key=[your_key]&sid=[sociotocoid]&profiles=[profileIDs]&time=[unix_timestamp]&sig=[signature] HTTP/1.1

Example Response

<?xml version="1.0" encoding="utf-8"?>
<response>
 <sociotocoSet sociotocoId="89c13185-8756-4577-935d-c3e83e6e77ce" version="1">
  <name />
  <urlName>GMRW32AP</urlName>
  <addedProfiles>
   <profile id="5B2C22279AA3A4E7D4176F3ED1ED29D7">
    <network id="6">Twitter</network>
   </profile>
   <profile id="3C40B61624DB5575553797257782A64C5DC4FD3B93425ECE">
    <network id="6">Twitter</network>
   </profile>
  </addedProfiles>
 </sociotocoSet>
</response>
{
   "response":{
      "sociotocoSet":{
         "sociotocoId":"89c13185-8756-4577-935d-c3e83e6e77ce",
         "version":1,
         "name":null,
         "urlName":"GMRW32AP",
         "addedProfiles":[
            {
               "id":"3C40B61624DB5575553797257782A64C5DC4FD3B93425ECE",
               "network":{
                  "id":6,
                  "name":"Twitter"
               }
            },
            {
               "id":"5B2C22279AA3A4E7D4176F3ED1ED29D7",
               "network":{
                  "id":6,
                  "name":"Twitter"
               }
            }
         ]
      }
   }
}

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.
304 SociotocoIdMissing
There is no sid argument in the query string.
305 ProfilesMissing
There is no profiles argument in the query string.
402 SociotocoIdInvalid
The given SociotocoId is invalid.
403 SociotocoSetNotFound
The Sociotoco Set is not found with the given SociotocoId.
406 ProfilesInvalid
The supplied profiles argument is invalid.
Sociotoco is an ISM eCompany business unit. © 2009-2010. All rights reserved.