Updated with the info for retrieving profile attributes

This commit is contained in:
Yuce Tekol 2017-02-14 21:23:39 +03:00
parent 601f1a2df4
commit 5ff28bc5c5

View file

@ -131,10 +131,12 @@ SetBitmapAttrs(id=10, frame="foo", category=123, color="blue", happy=true)
Returns `{"results":[null]}`
---
### SetProfileAttrs()
#### SetProfileAttrs()
---
```
SetProfileAttrs(id=10, category=123, color="blue", happy=true)
```
Returns `{"results":[null]}`
---
@ -145,6 +147,11 @@ Bitmap(id=10, frame="foo")
Returns `{"results":[{"attrs":{"category":123,"color":"blue","happy":true},"bits":[1,2]}]}` where `attrs` are the
attributes set using `SetBitmapAttrs()` and `bits` are the bits set using `SetBit()`.
In order to return profile attributes attached to the profiles of a bitmap, add `&profiles=true` to the query string. Sample response:
```
{"results":[{"attrs":{},"bits":[10]}],"profiles":[{"id":10,"attrs":{"category":123,"color":"blue","happy":true}}]}
```
---
#### Union()
```