All Verbs | /Profile/{id}/Like |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | path | long | No | |
Type | query | UserLikeType | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Success | form | bool | No | |
IsMutualMatch | form | bool | No | |
UserStatus | form | UserLikeStatus | No | |
IsMutualFavourite | form | bool | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
RemainingLikes | form | int | No | |
LikeLimit | form | int | No | |
RemainingFavourites | form | int | No | |
FavouritesLimit | form | int | No | |
LikeCredits | form | int | No | |
FavCredits | form | int | No | |
TimeToReset | form | double | No | |
ResultType | form | UserLikeResultType | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Profile/{id}/Like HTTP/1.1
Host: tstsrvs.redhotpie.com.au
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Id":0,"Type":"Like"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"Success":false,"IsMutualMatch":false,"UserStatus":{"RemainingLikes":0,"LikeLimit":0,"RemainingFavourites":0,"FavouritesLimit":0,"LikeCredits":0,"FavCredits":0,"TimeToReset":0,"ResultType":"SendAllowed"},"IsMutualFavourite":false}