GET tp/resource/list

Returns the resource list of a connected user.
A resource can be either a conversation with an indoona user or a group conversation. If a resource is marked as ‘owner’, it represents a conversation with the connected user.

Resource URL

https://api.indoona.com/tp/resource/list

Parameters

name description
user_id (optional) to be specified only when using an application-level token

Example


GET https://api.indoona.com/tp/resource/list

Response
{
	"users": [
			{
				"id": "1i7qr9t0dxc0kiw8u4fmzx69f",
				"owner": true
			},
			{
				"id": "ai7qr9t0dxc0kiw8u4fmzx69f" 
			}
	],
	"rooms": [
			{
				"room": "dcsurakhg9x4a1rlqxjuawazq",
				"data": {
						"subject": "My group",
						"avatar": "http://myavatar.com/my-group-avatar.jpg",
						"occupants": [
								{
									"id": "1i7qr9t0dxc0kiw8u4fmzx69f@indoona" 
								},
								{
									"id": "aewd558asta9c4sot4fkfj34l@indoona" 
								},
								{
									"id": "333@appdomain" 
								},
								{
									"id": "15@appdomain" 
								}
							],
						"policy": "open" 
					}
				},
			{
	"room": "dcsurakhg9x4a1rlqxjuawaaa",
	"data": {
			"subject": "My group 2",
			"avatar": "http://myavatar.com/my-group-avatar2.jpg",
			"occupants": [
				{
					"id": "1i7qr9t0dxc0kiw8u4fmzx69f@indoona" 
				},
				{
					"id": "333@appdomain" 
				},
				{
					"id": "15@appdomain" 
				}
			],
			"policy": "open" 
		}
	
	]
}