YM REST Services

<back to all web services

Likes

Requires Authentication
Requires any of the roles:member, oauthmember, admin, oauthadmin
The following routes are available for this service:
GET/Ams/{ClientID}/Likes/Return a list of members who liked something.For Admins.
GET/Ams/{ClientID}/Member/{MemberID}/LikesReturn a list of posts liked by this member.
POST/Ams/{ClientID}/Member/{MemberID}/LikesLikes a Feed/Wall Post.
GET/Ams/{ClientID}/Member/{MemberID}/Likes/{PostId}Return a list of members who liked this post.
PUT/Ams/{ClientID}/Member/{MemberID}/Likes/{LikeId}NOT Implemented.
DELETE/Ams/{ClientID}/Member/{MemberID}/Likes/{LikeId}Remove a like (unlike) a post.
Likes Parameters:
NameParameterData TypeRequiredDescription
LikeIdpathintNo
PostIdpathintNo
CommentIdbodyintNo
PhotoIdbodyintNo
PhotoCommentIdbodyintNo
PageNumberbodyintNo
PageSizebodyintNo
OffsetbodyintNo
MemberBaseSharedDto Parameters:
NameParameterData TypeRequiredDescription
MemberIDformintNo
BaseSharedDto Parameters:
NameParameterData TypeRequiredDescription
ClientIDformintNo
ResponseStatusformResponseStatusNo
BypassCacheformboolNo
DateCachedformDateTimeNo
DeviceformDeviceNo
LikesResponse Parameters:
NameParameterData TypeRequiredDescription
MemberListformList<Like>No
PostListformList<Like>No
RowsDeletedformint?No
Like Parameters:
NameParameterData TypeRequiredDescription
LikeIdformintNo
PostIdformintNo
CommentIdformintNo
PhotoIdformintNo
PhotoCommentIdformintNo
DateLikedformDateTimeNo
Connection Parameters:
NameParameterData TypeRequiredDescription
ConnectionStatusformConnectionStatus?No
ConnectionIdformintNo
FirstNameformstringNo
LastNameformstringNo
ConnectionNameformstringNo
OrganizationformstringNo
HeadShotImageformstringNo
WorkTitleformstringNo
MemberTypeformstringNo
CityformstringNo
StateformstringNo
LocationformstringNo
CountryformstringNo
SharedformboolNo
EmailformstringNo
PhoneLabelformstringNo
PhoneAreaCodeformstringNo
PhoneNumberformstringNo
FaxLabelformstringNo
FaxAreaCodeformstringNo
FaxNumberformstringNo
CanShowformShowPreferencesNo
intCategoryIDformintNo
IsAmbassadorformboolNo
ShowPreferences Parameters:
NameParameterData TypeRequiredDescription
CityformboolNo
LocationformboolNo
CountryformboolNo
PhoneformboolNo
FaxformboolNo
EmailformboolNo
EmployerNameformboolNo
EmployerTitleformboolNo

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 /Ams/{ClientID}/Member/{MemberID}/Likes HTTP/1.1 
Host: ws.yourmembership.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	LikeId: 0,
	PostId: 0,
	CommentId: 0,
	PhotoId: 0,
	PhotoCommentId: 0,
	PageNumber: 0,
	PageSize: 0,
	Offset: 0,
	MemberID: 0,
	ClientID: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	BypassCache: False,
	DateCached: 2024-05-03T09:18:43.5413440-04:00,
	Device: Desktop
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	MemberList: 
	[
		{
			LikeId: 0,
			PostId: 0,
			CommentId: 0,
			PhotoId: 0,
			PhotoCommentId: 0,
			DateLiked: 0001-01-01,
			ConnectionStatus: None,
			ConnectionId: 0,
			FirstName: String,
			LastName: String,
			ConnectionName: String,
			Organization: String,
			HeadShotImage: String,
			WorkTitle: String,
			MemberType: String,
			City: String,
			State: String,
			Location: String,
			Country: String,
			Shared: False,
			Email: String,
			PhoneLabel: String,
			PhoneAreaCode: String,
			PhoneNumber: String,
			FaxLabel: String,
			FaxAreaCode: String,
			FaxNumber: String,
			CanShow: 
			{
				City: False,
				Location: False,
				Country: False,
				Phone: False,
				Fax: False,
				Email: False,
				EmployerName: False,
				EmployerTitle: False
			},
			intCategoryID: 0,
			IsAmbassador: False
		}
	],
	PostList: 
	[
		{
			LikeId: 0,
			PostId: 0,
			CommentId: 0,
			PhotoId: 0,
			PhotoCommentId: 0,
			DateLiked: 0001-01-01,
			ConnectionStatus: None,
			ConnectionId: 0,
			FirstName: String,
			LastName: String,
			ConnectionName: String,
			Organization: String,
			HeadShotImage: String,
			WorkTitle: String,
			MemberType: String,
			City: String,
			State: String,
			Location: String,
			Country: String,
			Shared: False,
			Email: String,
			PhoneLabel: String,
			PhoneAreaCode: String,
			PhoneNumber: String,
			FaxLabel: String,
			FaxAreaCode: String,
			FaxNumber: String,
			CanShow: 
			{
				City: False,
				Location: False,
				Country: False,
				Phone: False,
				Fax: False,
				Email: False,
				EmployerName: False,
				EmployerTitle: False
			},
			intCategoryID: 0,
			IsAmbassador: False
		}
	],
	RowsDeleted: 0,
	LikeId: 0,
	PostId: 0,
	CommentId: 0,
	PhotoId: 0,
	PhotoCommentId: 0,
	PageNumber: 0,
	PageSize: 0,
	Offset: 0,
	MemberID: 0,
	ClientID: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	BypassCache: False,
	DateCached: 2024-05-03T09:18:43.5569707-04:00,
	Device: Desktop
}