Method to add a comment to a post
string
addComment
(string $post_id, string $comment)
-
string
$post_id: The unique identifier for a group.
-
string
$comment: The post comment's text.
Method to change a groups settings.
array
changeSettings
(string $group_id, [boolean $show_logo = null], [string $digest_frequency = null], [boolean $announcements = null], [boolean $allow_messages = null], [boolean $new_post = null])
-
string
$group_id: The unique identifier for a group.
-
boolean
$show_logo: Show group logo in profile.
-
string
$digest_frequency: E-mail digest frequency.
-
boolean
$announcements: E-mail announcements from managers.
-
boolean
$allow_messages: Allow messages from members.
-
boolean
$new_post: E-mail for every new post.
Method to retrieve all comments of a post.
string
createPost
(string $group_id, string $title, string $summary)
-
string
$group_id: The unique identifier for a group.
-
string
$title: Post title.
-
string
$summary: Post summary.
Method to delete a comment if the current user is the creator or flag it as inappropriate otherwise.
array
deleteComment
(string $comment_id)
-
string
$comment_id: The unique identifier for a group.
Method to delete a post if the current user is the creator or flag it as inappropriate otherwise.
array
deletePost
(string $post_id)
-
string
$post_id: The unique identifier for a group.
Method to delete a group suggestion for a user.
array
deleteSuggestion
(string $suggestion_id, [string $person_id = null])
-
string
$suggestion_id: The unique identifier for a suggestion.
-
string
$person_id: The unique identifier for a user.
Method to flag a post as a Promotion or Job.
array
flagPost
(string $post_id, string $flag)
-
string
$post_id: The unique identifier for a group.
-
string
$flag: Flag as a 'promotion' or 'job'.
Method used to follow a post.
array
followPost
(string $post_id)
-
string
$post_id: The unique identifier for a group.
Method to access the comments resource.
array
getComment
(string $comment_id, [string $fields = null])
-
string
$comment_id: The unique identifier for a comment.
-
string
$fields: Request fields beyond the default ones.
Method to get dicussions for a group.
array
getDiscussions
(string $id, [string $fields = null], [integer $start = 0], [integer $count = 0], [string $order = null], [string $category = 'discussion'], [string $modified_since = null])
-
string
$id: The unique identifier for a group.
-
string
$fields: Request fields beyond the default ones.
-
integer
$start: Starting location within the result set for paginated returns.
-
integer
$count: The number of results returned.
-
string
$order: Sort order for posts. Valid for: recency, popularity.
-
string
$category: Category of posts. Valid for: discussion
-
string
$modified_since: Timestamp filter for posts created after the specified value.
Method to get a group.
array
getGroup
(string $id, [string $fields = null], [integer $start = 0], [integer $count = 5])
-
string
$id: The unique identifier for a group.
-
string
$fields: Request fields beyond the default ones.
-
integer
$start: Starting location within the result set for paginated returns.
-
integer
$count: The number of results returned.
Method to find the groups a member belongs to.
array
getMemberships
([string $id = null], [string $fields = null], [integer $start = 0], [integer $count = 5], [string $membership_state = null])
-
string
$id: The unique identifier for a user.
-
string
$fields: Request fields beyond the default ones.
-
integer
$start: Starting location within the result set for paginated returns.
-
integer
$count: The number of results returned.
-
string
$membership_state: The state of the caller’s membership to the specified group. Values are: non-member, awaiting-confirmation, awaiting-parent-group-confirmation, member, moderator, manager, owner.
Method to retrieve details about a post.
array
getPost
(string $post_id, [string $fields = null])
-
string
$post_id: The unique identifier for a post.
-
string
$fields: Request fields beyond the default ones.
Method to retrieve all comments of a post.
array
getPostComments
(string $post_id, [string $fields = null], [integer $start = 0], [integer $count = 0])
-
string
$post_id: The unique identifier for a post.
-
string
$fields: Request fields beyond the default ones.
-
integer
$start: Starting location within the result set for paginated returns.
-
integer
$count: The number of results returned.
Method to find the groups a member belongs to.
array
getSettings
([string $person_id = null], [string $group_id = null], [string $fields = null], [integer $start = 0], [integer $count = 5])
-
string
$person_id: The unique identifier for a user.
-
string
$group_id: The unique identifier for a group.
-
string
$fields: Request fields beyond the default ones.
-
integer
$start: Starting location within the result set for paginated returns.
-
integer
$count: The number of results returned.
Method to get suggested groups for a user.
array
getSuggested
([string $person_id = null], [string $fields = null])
-
string
$person_id: The unique identifier for a user.
-
string
$fields: Request fields beyond the default ones.
Method to get posts a user started / participated in / follows for a group.
array
getUserPosts
(string $group_id, string $role, [string $person_id = null], [string $fields = null], [integer $start = 0], [integer $count = 0], [string $order = null], [string $category = 'discussion'], [string $modified_since = null])
-
string
$group_id: The unique identifier for a group.
-
string
$role: Filter for posts related to the caller. Valid for: creator, commenter, follower.
-
string
$person_id: The unique identifier for a user.
-
string
$fields: Request fields beyond the default ones.
-
integer
$start: Starting location within the result set for paginated returns.
-
integer
$count: The number of results returned.
-
string
$order: Sort order for posts. Valid for: recency, popularity.
-
string
$category: Category of posts. Valid for: discussion
-
string
$modified_since: Timestamp filter for posts created after the specified value.
Method to join a group.
array
joinGroup
(string $group_id, [boolean $show_logo = null], [string $digest_frequency = null], [boolean $announcements = null], [boolean $allow_messages = null], [boolean $new_post = null])
-
string
$group_id: The unique identifier for a group.
-
boolean
$show_logo: Show group logo in profile.
-
string
$digest_frequency: E-mail digest frequency.
-
boolean
$announcements: E-mail announcements from managers.
-
boolean
$allow_messages: Allow messages from members.
-
boolean
$new_post: E-mail for every new post.
Method to leave a group.
array
leaveGroup
(string $group_id)
-
string
$group_id: The unique identifier for a group.
Method used to like a post.
array
likePost
(string $post_id)
-
string
$post_id: The unique identifier for a group.
Method used to unfollow a post.
array
unfollowPost
(string $post_id)
-
string
$post_id: The unique identifier for a group.
Method used to unlike a post.
array
unlikePost
(string $post_id)
-
string
$post_id: The unique identifier for a group.
Inherited Methods
Inherited From JLinkedinObject
JLinkedinObject::__construct()
JLinkedinObject::booleanToString()
JLinkedinObject::getOption()
JLinkedinObject::setOption()