From 601f1a2df4cacc371c688e43ec05ad6d0890b229 Mon Sep 17 00:00:00 2001 From: Yuce Tekol Date: Tue, 14 Feb 2017 17:59:24 +0300 Subject: [PATCH 1/2] updated README with SetProfileAttrs call --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 6e45f8421..481130fee 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,13 @@ SetBitmapAttrs(id=10, frame="foo", category=123, color="blue", happy=true) ``` Returns `{"results":[null]}` +--- +### SetProfileAttrs() +--- +SetProfileAttrs(id=10, category=123, color="blue", happy=true) +``` +Returns `{"results":[null]}` + --- #### Bitmap() ``` From 5ff28bc5c5a29b064211b9e1e442f60a6283aab7 Mon Sep 17 00:00:00 2001 From: Yuce Tekol Date: Tue, 14 Feb 2017 21:23:39 +0300 Subject: [PATCH 2/2] Updated with the info for retrieving profile attributes --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 481130fee..1bef0ba0b 100644 --- a/README.md +++ b/README.md @@ -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() ```