-
Notifications
You must be signed in to change notification settings - Fork 1
Account
Borja Gorriz edited this page Sep 23, 2013
·
10 revisions
Base URL: api/dime/rest/{mainSaId}/account
| Method | Path | Description |
| GET | @me/@all | Returns a collection of all the active accounts the user has. |
| GET | @me/{accountid} | Returns a specific account. |
| POST | @me | Creates an account. |
| POST | @me/{accountid} | Updates a specific account configuration. |
| DELETE | @me/{accountid} | Deletes a specific account. |
Parameters:
- accountid: Id of an specific account.
Example Request:
- Call: api/dime/rest/5b223cde-07e5-4987-b531-231876fa7601/account/@me/@all
- Response:
{
"response":{
"meta":{
"v":"0.9",
"status":"OK",
"code":200,
"timeRef":"2011-08-30T15:01:59+02:00",
"msg": ""
},
"data":{
"startIndex":0,
"itemsPerPage":2,
"totalResults":2,
"entry":[{
"guid": "urn:account:juan",
"userId": "@me",
"type": "account",
"serviceadapterguid":"di.me",
"lastModified": "",
"name": "account+accountURI",
"imageUrl": "<imageUrl>",
"items": [],
"settings": {
{
"name": "<name>",
"fieldtype": "<string, password, profile, boolean, link>",
"mandatory": <true/false>,
"value": "<string>"
}, ...
}
"isActive": true/false //specific services can be deactivated temporarily
]
}
}