GET tp/resource/info

Returns the information associated to an indoona resource. 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/info

Parameters

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

Example

The resource is a conversation with an indoona user:


GET https://api.indoona.com/tp/resource/info?resource_id=rt58729fjsdljf

Response
{
	"type": "user",
	"resource": {
		"id": "1i7qr9t0dxc0kiw8u4fmzx69f",
		"owner": true
	}
}

The resource is a group conversation:


GET https://api.indoona.com/tp/resource/info?resource_id=dcsurakhg9x4a1rlqxjuawazq

Response
{
	"type": "room",
	"resource": {
		"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" 
		}
	}
}