RHP_API

<back to all web services

CreateUserLike

Adds user like or favourite (adding a favourite will add a like)

Requires Authentication
The following routes are available for this service:
All Verbs/Profile/{id}/Like
CreateUserLike Parameters:
NameParameterData TypeRequiredDescription
IdpathlongNo
TypequeryUserLikeTypeNo
UserLikeResult Parameters:
NameParameterData TypeRequiredDescription
SuccessformboolNo
IsMutualMatchformboolNo
UserStatusformUserLikeStatusNo
IsMutualFavouriteformboolNo
UserLikeStatus Parameters:
NameParameterData TypeRequiredDescription
RemainingLikesformintNo
LikeLimitformintNo
RemainingFavouritesformintNo
FavouritesLimitformintNo
LikeCreditsformintNo
FavCreditsformintNo
TimeToResetformdoubleNo
ResultTypeformUserLikeResultTypeNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Id: 0,
	Type: Like
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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
}