Developers
API DOCUMENTATION
URL STRUCTURE
http://www.yoursite.com/api/type:[paramType]/username:[paramUsername]/get:[paramGet]
paramType
Description: This parameter tell us what type of query you are requesting for users, pages, or groups.
Values: user, page, group
paramUsername
Description: This parameter represents the username of users, pages, or groups.
Values: For example: usermain
paramGet
Description: This parameter represents the type of information you need from the user, page or group.
Values: info, posts
RESPONSE
For paramType:user and paramGet:info the response includes the following fields:
code, firstname, lastname, username, avatar1, avatar2, avatar3, avatar4, avatar5, cover1, cover2, cover3, cover4, numfriends, numfollowers, numfollowing, numposts, aboutme
For paramType:page and paramGet:info the response includes the following fields:
code, category, subcategory, username, title, description, avatar1, avatar2, avatar3, avatar4, avatar5, cover1, cover2, cover3, cover4, numlikes, numfollowers, numposts
For paramType:group and paramGet:info the response includes the following fields:
code, username, namegroup, aboutgroup, cover1, cover2, cover3, cover4, nummembers, numfollowers, numposts
For paramType:user or paramType:page or paramType:group and paramGet:posts the response includes 20 items with the following fields:
code, typepost, post, valueattach, numlikes, numcomments
EXAMPLES OF URL
http://www.yoursite.com/api/type:user/username:usermain/get:info
http://www.yoursite.com/api/type:user/username:usermain/get:posts
http://www.yoursite.com/api/type:page/username:pagedemo/get:info
http://www.yoursite.com/api/type:page/username:pagedemo/get:posts
http://www.yoursite.com/api/type:group/username:groupdemo/get:info
http://www.yoursite.com/api/type:page/username:group/get:posts