Flowr is a project mainly written in ..., it's free.
Flowr is a social collaboration service and platform for enterprise that would like to have their own Facebook-like network. This is a developer portal of the project, documenting API and code snippets that enable you to write and read from Flowr net
is a REST API for interacting with messages, flows, users and groups supports BASIC AUTH authentication. Time is in UTC format.
Errors are in format: { 'rs':2, 'data': [ { 's':SOURCE, 'm':MESSAGE } ] }
* /flowid/FLOW_ID
o ID of flow, you can get this from flows ( default is 1 - Live flow )
o this can also be group_id or user_id if you are fetching messages for groups or users
* /flowtype/FLOW_TYPE
o flow (default)
o group
o people
* /time/TIME - UTC timestamp
RESPONSE: [ { "id":964, "user_id":20, "file_id":457, "user_name":"Vlada The Second 22", "user_link_url":"20-vlada-the-second-22", "link_url":"964-text-tag1-tag2-tag3-tag4", "comments_count":1, "likes_count":5, "likers":[ { "id":"3", "fullname":"Vlada Petroviu0107", "link_url":"3-vlada-petrovi", "file_id":"2" }, { "id":"4", "fullname":"Davorin Gabrovec", "link_url":"4-davorin-gabrovec", "file_id":"445" }, { "id":"10", "fullname":"Matjau017e van der Lipuu0161", "link_url":"10-matja-van-der-lipu", "file_id":null } ], "you_likes":true, "you_bookmarked":true, "message":"text #tag1 #tag2 #tag3 #tag4 #tag5 #tag6 text", "tags":[
],
"can_edit":true,
"can_delete":true,
"date":"2009-12-16 20:28:05",
"comments":[
{
"id":974,
"user_id":20,
"file_id":457,
"user_name":"Vlada The Second 22",
"user_link_url":"20-vlada-the-second-22",
"link_url":"974-spuki-ha",
"comments_count":0,
"likes_count":0,
"you_likes":false,
"you_bookmarked":false,
"message":"spuki ha ? :)",
"tags":[
],
"type":"1",
"can_edit":true,
"date":"2009-12-16 22:12:10"
}
],
"type":"1",
"source_id":1
}
]
if you don't specify TIME you will get count of all messages from flow
* /flowid/FLOW_ID
o ID of flow, you can get this from flows ( default is 1 - Live flow )
o this can also be group_id or user_id if you are fetching messages for groups or users
* /flowtype/FLOW_TYPE
o flow (default)
o group
o people
* /time/TIME - UTC timestamp
RESPONSE: { "flow_id":"17", "flow_type":"group", "count":0 }
RESPONSE: { "id":964, "user_id":20, "file_id":457, "user_name":"Vlada The Second 22", "user_link_url":"20-vlada-the-second-22", "link_url":"964-text-tag1-tag2-tag3-tag4", "comments_count":0, "likes_count":5, "likers":[ { "id":"3", "fullname":"Vlada Petroviu0107", "link_url":"3-vlada-petrovi", "file_id":"2" }, { "id":"4", "fullname":"Davorin Gabrovec", "link_url":"4-davorin-gabrovec", "file_id":"445" }, { "id":"10", "fullname":"Matjau017e van der Lipuu0161", "link_url":"10-matja-van-der-lipu", "file_id":null } ], "you_likes":true, "you_bookmarked":true, "message":"text #tag1 #tag2 #tag3 #tag4 #tag5 #tag6 text", "tags":[
],
"can_edit":true,
"can_delete":true,
"date":"2009-12-16 20:28:05",
"comments":[
],
"documents":[
{
"id":450,
"title":"random-funny-hilarious-4-25-09-35.jpg",
"type":"image/jpeg",
"icon":"/getfile/450/s",
"size":"85.1 KB",
"width":"500",
"height":"632"
}
],
"type":"1",
"source_id":1
}
If there is no likers response is 404 Error
* /count/NUMBER
o Number of liker you want to get. This is top COUNT recommended likers
RESPONSE: [ { "id":"3", "fullname":"Vlada Petroviu0107", "link_url":"3-vlada-petrovi", "file_id":"2", "position":"KING", "followers_count":0 }, { "id":"4", "fullname":"Davorin Gabrovec", "link_url":"4-davorin-gabrovec", "file_id":"445", "position":"KING", "followers_count":0 } ]
If there is no comments response is 404 Error
RESPONSE: [ { "id":651, "user_id":4, "file_id":445, "user_name":"Davorin Gabrovec", "user_link_url":"4-davorin-gabrovec", "link_url":"651-fsdgsd", "comments_count":0, "likes_count":0, "you_likes":false, "you_bookmarked":false, "message":"fsdgsd", "tags":[
],
"type":1,
"can_edit":false,
"can_delete":true,
"date":"2009-12-02 15:58:18"
}
]
* text
* share_type [OPTIONAL]
o 1 - group
o 2 - user
* share_source_id [OPTIONAL]
id for user or group
* url [OPTIONAL]
If you use share_type parameter share_source_id is required!
RESPONSE IS MESSAGE ( like in GET )
* title
RESPONSE IS BOOL
RESPONSE IS MESSAGE ( like in GET )
* id - message id
RESPONSE IS BOOL
* id - message id
RESPONSE IS BOOL
* id - message id
RESPONSE IS BOOL
* id - message id
RESPONSE IS BOOL
Flows API
RESPONSE: [ { "id":"2", "link_url":"company", "title":"Company flow", "hidden":false, "expanded":false, "is_group":false } ]
RESPONSE: [{ "id":20, "file_id":0, "owner":20, "type":1, "status":0, "is_archived":false, "link_url":"20-one-more-test", "title":"One more Test", "description":"test", "members_count":2, "tags":[ "ontology", "tag", "web" ], "is_member":true, "is_pending":false, "rating":null }]
RESPONSE: { "id":20, "file_id":0, "owner":20, "type":1, "status":0, "is_archived":false, "link_url":"20-one-more-test", "title":"One more Test", "description":"test", "members_count":2, "tags":[ "ontology", "tag", "web" ], "is_member":true, "is_pending":false, "rating":null }
RESPONSE: [ { "id":20, "link_url":"20-vlada-the-second-22", "file_id":457, "title":"Vlada The Second 22", "position":"KING", "followers_count":0, "is_following":false, "last_login":"2010-03-01 19:36:07", "simple_info":"this is me", "location":"Ptuj", "email":"[email protected]", "mobile":"2002", "linked_in":"http://vladapetrovic", "twitter":"vladapetrovic", "skype":"vladap", "tags":[ "haha", "ontology", "tag1", "tag2", "test", "web" ], "expertise":[ "dribling", "expertlevel2", "joy" ], "interests":[ "books" ], "hobbies":[ "sleeping" ], "is_online":true } ]
RESPONSE IS BOOL
RESPONSE IS BOOL
Users API
RESPONSE: [ { "id":20, "link_url":"20-vlada-the-second-22", "file_id":457, "title":"Vlada The Second 22", "position":"KING", "followers_count":0, "is_following":false, "last_login":"2010-02-03 08:39:14", "simple_info":"this is me", "location":null, "email":"[email protected]", "mobile":null, "linkedin":null, "twitter":null, "skype":null, "tags":[ "atag", "ideja", "tag1", "tag2", "tags", "ztag", "u010dtag", "u0161tag" ], "expertise":[ "234", "4asd", "ajsgd", "asd" ], "interests":null, "hobbies":null } ]
If you don't specify user_id you get data for current user.
RESPONSE: { "id":20, "link_url":"20-vlada-the-second-22", "file_id":457, "title":"Vlada The Second 22", "position":"KING", "followers_count":0, "is_following":false, "last_login":"2010-02-03 08:39:14", "simple_info":"this is me", "location":null, "email":"[email protected]", "mobile":null, "linkedin":null, "twitter":null, "skype":null, "tags":[ "atag", "ideja", "tag1", "tag2", "tags", "ztag", "u010dtag", "u0161tag" ], "expertise":[ "234", "4asd", "ajsgd", "asd" ], "interests":null, "hobbies":null }
RESPONSE IS BOOL
RESPONSE IS BOOL
Profile images You access images through web site not API. Access point are methods
* /getfile/avatar/FILE_ID/SIZE
* /getfile/group/FILE_ID/SIZE
FILE_ID - This is file_id parameter from group info or user info SIZE - can be
* s - 25px x 25px
* m - 50px x 50px (default)
* l - 100px x 100px
get flows: curl -X GET -v --basic -u "[email protected]:pass" http://flowr/api/1/flows
post message to everyone: curl -X POST -d text="this is test API call" -v --basic -u "[email protected]:pass" http://flowr/api/1/message
post message to group: curl -X POST -d "text=this is test API call&share_type=1&share_source_id=16" -v --basic -u "[email protected]:pass" http://flowr/api/1/message
post message to user: curl -X POST -d "text=this is test API call&share_type=2&share_source_id=2" -v --basic -u "[email protected]:pass" http://flowr/api/1/message
delete message: curl -X DELETE -v --basic -u "[email protected]:pass" http://flowr/api/1/message/id/MESSAGE_ID