/like [POST]

Indicate you like another member (game swipe right) - protected.

Parameters

  • profileid (numeric) [REQUIRED] - the ID of the member you like
  • source (string, max 100 chars) [optional] - where the like originated from

Response Message

403 Forbidden - if profileid is missing or invalid

{ "fail" : "Invalid Argument", "failcode" : ... }

The failcode can be any of the 800xx series that relate to profile access or 50001 which indicates the maximum number of likes per day has been exceeded.

If the failcode is 50001, the result will also contain:

  "likes_remaining" : 0, // because the member is over limit
  "likes_threshold" : 200, // or whatever the applicable threshold is

Where:

  • likes_threshold - how many likes you can send in any given 24 hour period
  • likes_remaining - how many more likes you can send in the current 24 hour period

200 OK - success

This will return a structure with the following fields:

  • connections_since_reset - the number of connections made – mutual likes – since the member last visited their connections page (when POST /members/self/activity/reset/connections was called)
  • connections_total - the total number of mutual connections
  • likedme_since_reset - the number of new like requests received since the member last visited their “liked me” page (when POST /members/self/activity/reset/likedme was called)
  • likedme_total - the number of received “like” requests (that have not yet been accepted or declined)
  • views_since_reset - the number of new profile views received since the member last visited their “Who’s Viewed Me?” page (when POST /members/self/activity/reset/views was called)
  • views_total - the total number of views of the current member’s profile
  • likes_threshold - how many likes you can send in any given 24 hour period
  • likes_remaining - how many more likes you can send in the current 24 hour period
{
  "connections_since_reset" : 3,
  "connections_total" : 19,
  "likedme_since_reset" : 0,
  "likedme_total" : 23,
  "views_since_reset" : 1,
  "views_total" : 42,
  "likes_threshold" : 500,
  "likes_remaining" : 123
}