getProfileList (REST) v1
Method: getProfileList
This method retrieves a list of profiles for an authenticated user (and for an optionally specified account).
REST URL:
http://server_name[:port]/services/vN/adminservice/profiles/?login=$login&password=$password&accountId=$accountId
Request arguments:
-
login - user name login
-
password - user password
-
accountId - ID of the account (optional)
Response:
-
Profile[] - List of available profiles for an authenticated user.
Request/Response samples Here is a sample REST request for the getProfileList method:
http://urchin.com:9999/services/v1/adminservice/profiles/?login=super_admin&password=password&accountId=1
Sample REST response:
<tns:getProfileListResponse xmlns:tns="https://urchin.com/api/urchin/v1/">
<profile>
<accountId>1</accountId>
<accountName>(NONE)</accountName>
<profileId>1</profileId>
<profileName>tets.profile</profileName>
</profile>
<profile>
<accountId>1</accountId>
<accountName>(NONE)</accountName>
<profileId>3</profileId>
<profileName>ttets.profile (utm)</profileName>
</profile>
</tns:getProfileListResponse>
Java and .Net C# samples
The following samples are available for this method: