Back to top

SocialEngine REST API

What is REST API? Simply, REST API is the set of functions to which the developers can perform requests and receive responses. The interaction is performed via the HTTP/HTTPS protocol. An advantage of such an approach is the wide usage of HTTP/HTTPS that’s why REST API can be used practically for any programming language.

Below are the characteristics of the SocialEngineAddOns REST API:

  • When a request is sent to the REST API server, the server will return a response that contains either the data you requested, or the status code, or both.

  • oauth_consumer_key / oauth_consumer_secret? The Consumer Key and Consumer Secret Key are used to make a connection between API client and server. These keys are also used for creating OAuth Tokens for site members to access server resources without sharing their credentials.

Accept: application/json
oauth_consumer_key: e6a5845684bf49df63d9eef489acfee1
oauth_consumer_secret: 42b9eef48e96c65f9ca29d07712d39fb
  • oauth_token / oauth_secret? The OAuth Token and OAuth Secret are used for identifying site members.
Accept: application/json
oauth_consumer_key: e6a5845684bf49df63d9eef489acfee1
oauth_consumer_secret: 42b9eef48e96c65f9ca29d07712d39fb
oauth_token: 276ed9327d0478c2606adea438f4fd15
oauth_secret: ffaff6754b5d4ca5f2fc4cc2a3a75478

Base URL

All requests to this REST API should have the base URL: [https://example.com/api/rest/]

HTTP Verbs

In REST API, there are four verbs that are used to manage resources: GET, POST, PUT, and DELETE. You can get the contents of a data using GET, delete the data using DELETE, and create or update the data using POST/PUT.

Supported Features

Official SocialEngine Plugins

  • Blogs Plugin

  • Photo Albums Plugin

  • Classifieds Plugin

  • Groups Plugin

  • Events Plugin

  • Forums Plugin

  • Polls Plugin

  • Video Sharing Plugin

  • Music Sharing Plugin

Core SocialEngine Features

  • Search

  • Member Links

  • Member Log-in

  • Member Sign-up With Profile Fields

  • Edit Member Profile Fields

  • Activity Feeds

  • Notifications

  • Friend Requests

  • Messages

  • Member Settings

  • Likes and Comments

  • Easy Implementation of Photo Lightbox.

  • Footer Menus

SocialEngineAddOns Plugins:

  • Advanced Activity Feeds / Wall Plugin

  • Geo-Location, Geo-Tagging, Check-Ins & Proximity Search Plugin [only for Advanced Activity Feed’s location features]

Reactions and Stickers Plugin / Reaction

List of all the API’s of Reactions and Stickers Plugin These are the APIs for SocialEngine’s official Reactions and Stickers Plugin.

Get Reactions in Advancedactivity Feed

Get Reactions
GET/advancedactivity/feeds/

Get the list of reactions that a user can react on an activity feed. Also this API will be helpful in getting the reactions made for each feed.You can also get the reactions made on photos in activity feed attachments.

Example URI

GET /advancedactivity/feeds/
Request  valid
HideShow
Headers
Accept: application/json
oauth_consumer_key: e6a5845684bf49df63d9eef489acfee1
oauth_consumer_secret: 42b9eef48e96c65f9ca29d07712d39fb
oauth_token: 276ed9327d0478c2606adea438f4fd15
oauth_secret: ffaff6754b5d4ca5f2fc4cc2a3a75478
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "data": [
    {
      "feed": {
        "action_id": 47873,
        "type": "status",
        "subject_type": "user",
        "subject_id": 19468,
        "object_type": "user",
        "object_id": 19468,
        "body": "The fact is I have a problem I don't like to see it on twitter and I'm just saying that it doesn't even have to do so on twitter or something like that but it was so funny to see you in a good mood lol but you know it was good for me but you know I don't like your twitter name and you know what you want me but you know what",
        "params": "[]",
        "date": "2017-01-12 13:05:56",
        "attachment_count": 0,
        "comment_count": 0,
        "like_count": 0,
        "privacy": "everyone",
        "commentable": 1,
        "shareable": 0,
        "user_agent": "seiosnativeapp/1.6.8 CFNetwork/808.1.4 Darwin/16.1.0",
        "modified_date": "2017-01-12 13:05:56",
        "time_value": 1484226356,
        "feed_icon": "http://example.com/public/album_photo/11/4d/01/14ac5_c2af.jpg?c=7383",
        "feed_title": "Rochelle T\r\nThe fact is I have a problem I don't like to see it on twitter and I'm just saying that it doesn't even have to do so on twitter or something like that but it was so funny to see you in a good mood lol but you know it was good for me but yo...  moreThe fact is I have a problem I don't like to see it on twitter and I'm just saying that it doesn't even have to do so on twitter or something like that but it was so funny to see you in a good mood lol but you know it was good for me but you know I don't like your twitter name and you know what you want me but you know what  ",
        "action_type_body": "{item:$subject}\r\n{body:$body}",
        "action_type_body_params": [
          {
            "search": "{item:$subject}",
            "label": "Rochelle T",
            "type": "user",
            "id": 19468
          },
          {
            "search": "{body:$body}",
            "label": "The fact is I have a problem I don't like to see it on twitter and I'm just saying that it doesn't even have to do so on twitter or something like that but it was so funny to see you in a good mood lol but you know it was good for me but you know I don't like your twitter name and you know what you want me but you know what"
          }
        ]
      },
      "can_comment": 1,
      "is_like": 0,
      "feed_reactions": [],
      "can_share": 0,
      "isSaveFeedOption": 1,
      "feed_menus": [
        {
          "name": "update_save_feed",
          "label": "Save Feed",
          "url": "advancedactivity/update-save-feed",
          "urlParams": {
            "action_id": 47873
          }
        },
        {
          "name": "hide",
          "label": "Hide",
          "url": "advancedactivity/feeds/hide-item",
          "urlParams": {
            "type": "activity_action",
            "id": 47873
          }
        },
        {
          "name": "report_feed",
          "label": "Report Feed",
          "url": "advancedactivity/feeds/hide-item",
          "urlParams": {
            "type": "activity_action",
            "id": 47873,
            "hide_report": 1
          }
        }
      ],
      "feed_footer_menus": {
        "like": {
          "name": "like",
          "label": "Like",
          "url": "like",
          "urlParams": {
            "action_id": 47873
          }
        }
      }
    },
    {
      "feed": {
        "action_id": 47855,
        "type": "post_self_photo",
        "subject_type": "user",
        "subject_id": 19277,
        "object_type": "user",
        "object_id": 19277,
        "body": "ohhlala",
        "params": "[]",
        "date": "2017-01-11 17:53:10",
        "attachment_count": 1,
        "comment_count": 0,
        "like_count": 2,
        "privacy": "everyone",
        "commentable": 1,
        "shareable": 1,
        "user_agent": "seiosnativeapp/1.7.4 CFNetwork/808.2.16 Darwin/16.3.0",
        "modified_date": "2017-01-11 17:53:10",
        "time_value": 1484157190,
        "feed_icon": "http://example.com/public/album_photo/0e/45/01/142ca_5765.jpg?c=40b8",
        "attachment_content_type": "album_photo",
        "attachment": [
          {
            "title": "",
            "body": "",
            "attachment_type": "album_photo",
            "attachment_id": 1906,
            "album_id": 1906,
            "photo_id": 16098,
            "likes_count": 2,
            "comment_count": 0,
            "is_like": 0,
            "reactions": {
              "feed_reactions": {
                "1": {
                  "reaction_image_icon": "http://example.com/public/system/90/47/01/1454a_aebc.png?c=72df",
                  "caption": "Like",
                  "reactionicon_id": 1,
                  "reaction_count": 1
                },
                "2": {
                  "reaction_image_icon": "http://example.com/public/system/92/47/01/1454c_0d1e.png?c=4a00",
                  "caption": "Love",
                  "reactionicon_id": 2,
                  "reaction_count": 1
                }
              }
            },
            "menu": [
              {
                "label": "Share",
                "name": "share",
                "url": "activity/share",
                "urlParams": {
                  "type": "album_photo",
                  "id": 16098
                }
              },
              {
                "label": "Report",
                "name": "report",
                "url": "report/create/subject/album_photo_16098",
                "urlParams": {
                  "type": "album_photo",
                  "id": 16098
                }
              },
              {
                "label": "Make Profile Photo",
                "name": "make_profile_photo",
                "url": "members/edit/external-photo",
                "urlParams": {
                  "photo": "album_photo_16098"
                }
              }
            ],
            "image_main": {
              "src": "http://example.com/public/album_photo/65/c0/01/1bda6_2d62.png?c=0f29",
              "size": {
                "width": 640,
                "height": 640
              }
            },
            "image_icon": {
              "src": "http://example.com/public/album_photo/65/c0/01/1bda6_2d62.png?c=0f29",
              "size": {
                "width": 640,
                "height": 640
              }
            },
            "image_profile": {
              "src": "http://example.com/public/album_photo/65/c0/01/1bda6_2d62.png?c=0f29",
              "size": {
                "width": 640,
                "height": 640
              }
            },
            "image_normal": {
              "src": "http://example.com/public/album_photo/66/c0/01/1bda7_dd47.png?c=3281",
              "size": {
                "width": 140,
                "height": 140
              }
            },
            "image_medium": {
              "src": "http://example.com/public/album_photo/65/c0/01/1bda6_2d62.png?c=0f29",
              "size": {
                "width": 640,
                "height": 640
              }
            },
            "mode": 1
          }
        ],
        "photo_attachment_count": 1,
        "feed_title": "Uuhmm Bop\r\nohhlala",
        "action_type_body": "{item:$subject}\r\n{body:$body}",
        "action_type_body_params": [
          {
            "search": "{item:$subject}",
            "label": "Uuhmm Bop",
            "type": "user",
            "id": 19277
          },
          {
            "search": "{body:$body}",
            "label": "ohhlala"
          }
        ]
      },
      "can_comment": 1,
      "is_like": 0,
      "feed_reactions": {
        "1": {
          "reaction_image_icon": "http://example.com/public/system/90/47/01/1454a_aebc.png?c=72df",
          "caption": "Like",
          "reactionicon_id": 1,
          "reaction_count": 1
        },
        "2": {
          "reaction_image_icon": "http://example.com/public/system/92/47/01/1454c_0d1e.png?c=4a00",
          "caption": "Love",
          "reactionicon_id": 2,
          "reaction_count": 1
        }
      },
      "can_share": 1,
      "isSaveFeedOption": 1,
      "feed_menus": [
        {
          "name": "update_save_feed",
          "label": "Save Feed",
          "url": "advancedactivity/update-save-feed",
          "urlParams": {
            "action_id": 47855
          }
        },
        {
          "name": "hide",
          "label": "Hide",
          "url": "advancedactivity/feeds/hide-item",
          "urlParams": {
            "type": "activity_action",
            "id": 47855
          }
        },
        {
          "name": "report_feed",
          "label": "Report Feed",
          "url": "advanced/advancedactivity/like/activity/feeds/hide-item",
          "urlParams": {
            "type": "activity_action",
            "id": 47855,
            "hide_report": 1
          }
        }
      ],
      "feed_footer_menus": {
        "like": {
          "name": "like",
          "label": "Like",
          "url": "like",
          "urlParams": {
            "action_id": 47855
          }
        },
        "share": {
          "name": "share",
          "label": "Share",
          "url": "activity/share",
          "urlParams": {
            "type": "album_photo",
            "id": 16098
          }
        }
      }
    }
  ],
  "defaultFeedCount": 20,
  "activityCount": 2,
  "enable_composer": true,
  "enable_composer_photo": true,
  "maxid": 47854,
  "minid": 47874,
  "feed_post_menu": {
    "status": 1,
    "emotions": 1,
    "withtags": 1,
    "photo": 1,
    "checkin": 1,
    "video": 1,
    "music": 1,
    "link": 1,
    "userprivacy": {
      "everyone": "Everyone",
      "networks": "Friends & Networks",
      "friends": "Friends Only",
      "onlyme": "Only Me"
    }
  },
  "reactionsEnabled": 1,
  "stickersEnabled": 1,
  "emojiEnabled": 1,
  "reactions": {
    "like": {
      "caption": "Like",
      "reactionicon_id": 1,
      "reaction": "like",
      "icon": {
        "reaction_image_icon": "http://example.com/public/system/90/47/01/1454a_aebc.png?c=72df"
      }
    },
    "love": {
      "caption": "Love",
      "reactionicon_id": 2,
      "reaction": "love",
      "icon": {
        "reaction_image_icon": "http://example.com/public/system/92/47/01/1454c_0d1e.png?c=4a00"
      }
    },
    "wow": {
      "caption": "WOW",
      "reactionicon_id": 3,
      "reaction": "wow",
      "icon": {
        "reaction_image_icon": "http://example.com/public/system/94/47/01/1454e_35c0.png?c=59a3"
      }
    },
    "haha": {
      "caption": "HaHa",
      "reactionicon_id": 4,
      "reaction": "haha",
      "icon": {
        "reaction_image_icon": "http://example.com/public/system/96/47/01/14550_2019.png?c=f190"
      }
    },
    "sad": {
      "caption": "Sad",
      "reactionicon_id": 5,
      "reaction": "sad",
      "icon": {
        "reaction_image_icon": "http://example.com/public/system/98/47/01/14552_0416.png?c=80f5"
      }
    },
    "angry": {
      "caption": "Angry",
      "reactionicon_id": 6,
      "reaction": "angry",
      "icon": {
        "reaction_image_icon": "http://example.com/public/system/9a/47/01/14554_c697.png?c=1596"
      }
    }
  }
}
Response  401
HideShow
Body
{
  "status_code": 401,
  "error": true,
  "error_code": "unauthorized",
  "message": "User does not have access to this resource."
}

Post Reaction on Feed

Post Reaction on Feed
POST/advancedactivity/like/

Post reaction on a particular feed

Parameter Required Type Example Description
action_id yes integer 1342 action id
reaction no string love reaction string

Example URI

POST /advancedactivity/like/
Request
HideShow
Headers
Accept: application/json
oauth_consumer_key: e6a5845684bf49df63d9eef489acfee1
oauth_consumer_secret: 42b9eef48e96c65f9ca29d07712d39fb
oauth_token: 276ed9327d0478c2606adea438f4fd15
oauth_secret: ffaff6754b5d4ca5f2fc4cc2a3a75478
Response  204
Response  401
HideShow
Headers
Content-Type: application/json
Body
{
  "status_code": 401,
  "error": true,
  "error_code": "unauthorized",
  "message": "User does not have access to this resource."
}

Get Reactions on Content

Get Reactions
GET/reactions/content-reaction/{?subject_id}{&subject_type}{&getReaction}

Get the list of reactions made on any content in the community.Api can be used to get all the reaction user can do on a content(reactions parameter in response), User own reaction on the content(my_feed_reaction in the response) & popular reaction with the count(feed_reactions parameter in response).

Example URI

GET /reactions/content-reaction/?subject_id=&subject_type=&getReaction=getReaction=58
URI Parameters
HideShow
subject_id
integer (required) 

subject id

subject_type
string (required) 

subject type

getReaction
boolean (optional) Example: getReaction=58

getReaction

Request  valid
HideShow
Headers
Accept: application/json
oauth_consumer_key: e6a5845684bf49df63d9eef489acfee1
oauth_consumer_secret: 42b9eef48e96c65f9ca29d07712d39fb
oauth_token: 276ed9327d0478c2606adea438f4fd15
oauth_secret: ffaff6754b5d4ca5f2fc4cc2a3a75478
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "reactions": {
    "reactionsEnabled": 1,
    "stickersEnabled": 1,
    "emojiEnabled": 1,
    "reactions": {
      "like": {
        "caption": "Like",
        "reactionicon_id": 1,
        "reaction": "like",
        "icon": {
          "reaction_image_icon": "http://example.com/system/90/47/01/1454a_aebc.png?c=72df"
        }
      },
      "love": {
        "caption": "Love",
        "reactionicon_id": 2,
        "reaction": "love",
        "icon": {
          "reaction_image_icon": "http://example.com/system/92/47/01/1454c_0d1e.png?c=4a00"
        }
      },
      "wow": {
        "caption": "WOW",
        "reactionicon_id": 3,
        "reaction": "wow",
        "icon": {
          "reaction_image_icon": "http://example.com/system/94/47/01/1454e_35c0.png?c=59a3"
        }
      },
      "haha": {
        "caption": "HaHa",
        "reactionicon_id": 4,
        "reaction": "haha",
        "icon": {
          "reaction_image_icon": "http://example.com/system/96/47/01/14550_2019.png?c=f190"
        }
      },
      "sad": {
        "caption": "Sad",
        "reactionicon_id": 5,
        "reaction": "sad",
        "icon": {
          "reaction_image_icon": "http://example.com/system/98/47/01/14552_0416.png?c=80f5"
        }
      },
      "angry": {
        "caption": "Angry",
        "reactionicon_id": 6,
        "reaction": "angry",
        "icon": {
          "reaction_image_icon": "http://example.com/system/9a/47/01/14554_c697.png?c=1596"
        }
      }
    }
  },
  "feed_reactions": {
    "1": {
      "reaction_image_icon": "http://example.com/system/90/47/01/1454a_aebc.png?c=72df",
      "caption": "Like",
      "reactionicon_id": 1,
      "reaction_count": 2
    }
  },
  "my_feed_reaction": {
    "reaction_image_icon": "http://example.com/system/90/47/01/1454a_aebc.png?c=72df",
    "caption": "Like",
    "reactionicon_id": 1
  }
}

Post Reaction on Content

Post Reaction on Feed
POST/advancedcomments/like/

Post reaction on a particular content

Parameter Required Type Example Description
subject_id yes integer 1342 subject_id
subject_type yes integer event subject_type
reaction no string love reaction string

Example URI

POST /advancedcomments/like/
Request
HideShow
Headers
Accept: application/json
oauth_consumer_key: e6a5845684bf49df63d9eef489acfee1
oauth_consumer_secret: 42b9eef48e96c65f9ca29d07712d39fb
oauth_token: 276ed9327d0478c2606adea438f4fd15
oauth_secret: ffaff6754b5d4ca5f2fc4cc2a3a75478
Response  204
Response  401
HideShow
Headers
Content-Type: application/json
Body
{
  "status_code": 401,
  "error": true,
  "error_code": "unauthorized",
  "message": "User does not have access to this resource."
}

Reactions and Stickers Plugin / Stickers

Get Stickers posted on feed comments

Get Stickers
GET/reactions/stickers

Get the listing of all the stickers that a user can post in comments. Api can be used to get stickers of a particular collection or can also be used to search all the stickers containing a specific keyword.

Example URI

GET /reactions/stickers
URI Parameters
HideShow
sticker_search (optional, string) ... sticker_search
string (required) 
collection_id (optional, integer) ... collection_id
string (required) 
Request  valid
HideShow
Headers
Accept: application/json
oauth_consumer_key: e6a5845684bf49df63d9eef489acfee1
oauth_consumer_secret: 42b9eef48e96c65f9ca29d07712d39fb
oauth_token: 276ed9327d0478c2606adea438f4fd15
oauth_secret: ffaff6754b5d4ca5f2fc4cc2a3a75478
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
        "isStoreEnabled":1,
        "collectionList":[
            {
                "collection_id":2,
                "title":"Emoticons",
                "body":"Express yourself to your friends using these funny emoticons.",
                "sticker_id":27,
                "start_time":"2016-08-04 09:50:00",
                "end_time":"2050-12-31 23:59:59",
                "enabled":1,
                "include":1,
                "order":1,
                "image":"http://example.com/system/d0/47/01/1458a_8640.png?c=279d",
                "image_normal":"http://example.com/system/d0/47/01/1458a_8640.png?c=279d",
                "image_profile":"http://example.com/system/d0/47/01/1458a_8640.png?c=279d",
                "image_icon":"http://example.com/system/d0/47/01/1458a_8640.png?c=279d"
            },
            {
                "collection_id":5,
                "title":"Hearts",
                "body":"Express your love to your dear ones and make them understand your feelings.",
                "sticker_id":126,
                "start_time":"2016-08-04 09:50:30",
                "end_time":"2050-12-31 23:59:59",
                "enabled":1,
                "include":1,
                "order":4,
                "image":"http://example.com/system/97/48/01/14650_d5c5.png?c=3f1e",
                "image_normal":"http://example.com/system/97/48/01/14650_d5c5.png?c=3f1e",
                "image_profile":"http://example.com/system/97/48/01/14650_d5c5.png?c=3f1e",
                "image_icon":"http://example.com/system/97/48/01/14650_d5c5.png?c=3f1e"
            },
        ],
        "isEmojiEnabled":1,
        "searchList":[
            {
                "stickersearch_id":1,
                "title":"Happy",
                "keyword":"happy",
                "background_color":"#FFCC00",
                "file_id":83264,
                "order":1,
                "image":"http://example.com/system/86/47/01/14540_6631.png?c=752c",
                "image_normal":"http://example.com/system/86/47/01/14540_6631.png?c=752c",
                "image_profile":"http://example.com/system/86/47/01/14540_6631.png?c=752c",
                "image_icon":"http://example.com/system/86/47/01/14540_6631.png?c=752c"
            },
            {
                "stickersearch_id":2,
                "title":"In Love",
                "keyword":"love",
                "background_color":"#F64E88",
                "file_id":83265,
                "order":2,
                "image":"http://example.com/system/87/47/01/14541_df06.png?c=077b",
                "image_normal":"http://example.com/system/87/47/01/14541_df06.png?c=077b",
                "image_profile":"http://example.com/system/87/47/01/14541_df06.png?c=077b",
                "image_icon":"http://example.com/system/87/47/01/14541_df06.png?c=077b"
            },
            {
                "stickersearch_id":6,
                "title":"Active",
                "keyword":"active",
                "background_color":"#54C6FF",
                "file_id":83269,
                "order":6,
                "image":"http://example.com/system/8b/47/01/14545_c697.png?c=3dd0",
                "image_normal":"http://example.com/system/8b/47/01/14545_c697.png?c=3dd0",
                "image_profile":"http://example.com/system/8b/47/01/14545_c697.png?c=3dd0",
                "image_icon":"http://example.com/system/8b/47/01/14545_c697.png?c=3dd0"
            },
            {
                "stickersearch_id":7,
                "title":"Working",
                "keyword":"working",
                "background_color":"#19B596",
                "file_id":83270,
                "order":7,
                "image":"http://example.com/system/8c/47/01/14546_b659.png?c=ff1a",
                "image_normal":"http://example.com/system/8c/47/01/14546_b659.png?c=ff1a",
                "image_profile":"http://example.com/system/8c/47/01/14546_b659.png?c=ff1a",
                "image_icon":"http://example.com/system/8c/47/01/14546_b659.png?c=ff1a"
            },
        ]
    }

Post Feed Comment

Post Feed Comment
POST/advancedactivity/comment

Post a comment on an activity feed.

Parameter Required Type Example Description
action_id yes integer 562 activity feed id
body yes string great job!! comment body
attachment_id no integer sitereaction_sticker_27 sticker guid
attachment_type no string sticker type of attachement

Example URI

POST /advancedactivity/comment
Request  valid
HideShow
Headers
Accept: application/json
oauth_consumer_key: e6a5845684bf49df63d9eef489acfee1
oauth_consumer_secret: 42b9eef48e96c65f9ca29d07712d39fb
oauth_token: 276ed9327d0478c2606adea438f4fd15
oauth_secret: ffaff6754b5d4ca5f2fc4cc2a3a75478
Body
{
    "action_id": 562,
    "body": "great job!!",
    "attachment_id": 21,
    "attachment_type": photo
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
    "action_id":47834,
    "comment_id":5096,
    "author_image":"http://example.com/user/47/0f/01/10d39_d1e8.jpg?c=7387",
    "author_image_normal":"http://example.com/user/49/0f/01/10d3b_08a6.jpg?c=0e23",
    "author_image_profile":"http://example.com/user/48/0f/01/10d3a_2da1.jpg?c=7841",
    "author_image_icon":"http://example.com/user/4a/0f/01/10d3c_b446.jpg?c=464f",
    "content_url":"http://mobiledemo.socialengineaddons.com/profile/alber",
    "author_title":"alber trin",
    "user_id":18953,
    "comment_body":"",
    "comment_date":"2017-01-12 15:22:55",
    "attachment":{
        "image":"http://example.com/system/d6/47/01/14590_e3bf.png?c=3778",
        "image_normal":"http://example.com/system/d6/47/01/14590_e3bf.png?c=3778",
        "image_profile":"http://example.com/system/d6/47/01/14590_e3bf.png?c=3778",
        "image_icon":"http://example.com/system/d6/47/01/14590_e3bf.png?c=3778"
    },
    "attachment_type":"sitereaction_sticker",
    "attachment_id":30,
    "delete":null,
    "like_count":0,
    "like":{
        "name":"like",
        "label":"Like",
        "url":"like",
        "urlParams":{
            "action_id":47834,
            "subject_type":"user",
            "subject_id":19898,
            "comment_id":5096
        },
        "isLike":0
    }
},
Response  401
HideShow
Body
{
  "status_code": 401,
  "error": true,
  "error_code": "unauthorized",
  "message": "User does not have access to this resource."
}

Post a Comment on contents

Post content comment
POST/advancedcomments/comment

Post a comment on an on content with stickers.

Parameter Required Type Example Description
subject_id yes integer 1342 subject_id
subject_type yes integer event subject_type
body yes string great job!! comment body
attachment_id no integer sitereaction_sticker_27 sticker guid
attachment_type no string sticker type of attachement

Example URI

POST /advancedcomments/comment
Request  valid
HideShow
Headers
Accept: application/json
oauth_consumer_key: e6a5845684bf49df63d9eef489acfee1
oauth_consumer_secret: 42b9eef48e96c65f9ca29d07712d39fb
oauth_token: 276ed9327d0478c2606adea438f4fd15
oauth_secret: ffaff6754b5d4ca5f2fc4cc2a3a75478
Body
{
    "action_id": 562,
    "body": "great job!!",
    "attachment_id": 21,
    "attachment_type": photo
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
    "comment_id":5096,
    "author_image":"http://example.com/user/47/0f/01/10d39_d1e8.jpg?c=7387",
    "author_image_normal":"http://example.com/user/49/0f/01/10d3b_08a6.jpg?c=0e23",
    "author_image_profile":"http://example.com/user/48/0f/01/10d3a_2da1.jpg?c=7841",
    "author_image_icon":"http://example.com/user/4a/0f/01/10d3c_b446.jpg?c=464f",
    "content_url":"http://mobiledemo.socialengineaddons.com/profile/alber",
    "author_title":"alber trin",
    "user_id":18953,
    "comment_body":"",
    "comment_date":"2017-01-12 15:22:55",
    "attachment":{
        "image":"http://example.com/system/d6/47/01/14590_e3bf.png?c=3778",
        "image_normal":"http://example.com/system/d6/47/01/14590_e3bf.png?c=3778",
        "image_profile":"http://example.com/system/d6/47/01/14590_e3bf.png?c=3778",
        "image_icon":"http://example.com/system/d6/47/01/14590_e3bf.png?c=3778"
    },
    "attachment_type":"sitereaction_sticker",
    "attachment_id":30,
    "delete":null,
    "like_count":0,
    "like":{
        "name":"like",
        "label":"Like",
        "url":"like",
        "urlParams":{
            "action_id":47834,
            "subject_type":"user",
            "subject_id":19898,
            "comment_id":5096
        },
        "isLike":0
    }
},

Get Sticker Stores Listing

Get Sticker Stores Listing
GET/reactions/store/list/

Get the list of all the stickers available in store that user can add to it’s collection or can remove from collection

Example URI

GET /reactions/store/list/
Request  valid
HideShow
Headers
Accept: application/json
oauth_consumer_key: e6a5845684bf49df63d9eef489acfee1
oauth_consumer_secret: 42b9eef48e96c65f9ca29d07712d39fb
oauth_token: 276ed9327d0478c2606adea438f4fd15
oauth_secret: ffaff6754b5d4ca5f2fc4cc2a3a75478
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
        "response":[
            {
                "collection_id":4,
                "title":"Garfield",
                "body":"One of the famous comic character in all yours so make your comments funny with these stickers.",
                "sticker_id":90,
                "start_time":"2016-08-04 09:50:00",
                "end_time":"2050-12-31 23:59:59",
                "enabled":1,
                "include":0,
                "order":2,
                "sticker_count":36,
                "image":"http://example.com/system/4f/48/01/14608_c4c9.png?c=ff74",
                "image_normal":"http://example.com/system/4f/48/01/14608_c4c9.png?c=ff74",
                "image_profile":"http://example.com/system/4f/48/01/14608_c4c9.png?c=ff74",
                "image_icon":"http://example.com/system/4f/48/01/14608_c4c9.png?c=ff74",
                "isAdded":0,
                "menu":[
                    {
                        "label":"Preview",
                        "name":"preview",
                        "url":"reactions/store/index",
                        "urlParams":{
                            "collection_id":4
                        }
                    },
                    {
                        "label":"Add",
                        "name":"add",
                        "url":"reactions/store/add",
                        "urlParams":{
                            "collection_id":4
                        }
                    }
                ]
            },
        ]
    }

Generated by aglio on 13 Jan 2017