Joomla Platform  13.1
Documentation des API du framework Joomla Platform
 Tout Classes Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe JLinkedinGroups
+ Graphe d'héritage de JLinkedinGroups:
+ Graphe de collaboration de JLinkedinGroups:

Liste de tous les membres

Fonctions membres publiques

 getGroup ($id, $fields=null, $start=0, $count=5)
 getMemberships ($id=null, $fields=null, $start=0, $count=5, $membership_state=null)
 getSettings ($person_id=null, $group_id=null, $fields=null, $start=0, $count=5)
 changeSettings ($group_id, $show_logo=null, $digest_frequency=null, $announcements=null, $allow_messages=null, $new_post=null)
 joinGroup ($group_id, $show_logo=null, $digest_frequency=null, $announcements=null, $allow_messages=null, $new_post=null)
 leaveGroup ($group_id)
 getDiscussions ($id, $fields=null, $start=0, $count=0, $order=null, $category= 'discussion', $modified_since=null)
 getUserPosts ($group_id, $role, $person_id=null, $fields=null, $start=0, $count=0, $order=null, $category= 'discussion', $modified_since=null)
 getPost ($post_id, $fields=null)
 getPostComments ($post_id, $fields=null, $start=0, $count=0)
 createPost ($group_id, $title, $summary)
 likePost ($post_id)
 unlikePost ($post_id)
 followPost ($post_id)
 unfollowPost ($post_id)
 flagPost ($post_id, $flag)
 deletePost ($post_id)
 getComment ($comment_id, $fields=null)
 addComment ($post_id, $comment)
 deleteComment ($comment_id)
 getSuggested ($person_id=null, $fields=null)
 deleteSuggestion ($suggestion_id, $person_id=null)
- Fonctions membres publiques inherited from JLinkedinObject
 __construct (JRegistry $options=null, JHttp $client=null, JLinkedinOAuth $oauth=null)
 booleanToString ($bool)
 getOption ($key)
 setOption ($key, $value)

Fonctions membres privées

 _likeUnlike ($post_id, $like)
 _followUnfollow ($post_id, $follow)

Additional Inherited Members

- Attributs protégés inherited from JLinkedinObject
 $options
 $client
 $oauth

Description détaillée

Définition à la ligne 19 du fichier groups.php.


Documentation des fonctions membres

JLinkedinGroups::_followUnfollow (   $post_id,
  $follow 
)
private

Method to follow or unfollow a post.

Paramètres:
string$post_idThe unique identifier for a group.
boolean$followTrue to like post, false otherwise.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 763 du fichier groups.php.

{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the success response code.
$this->oauth->setOption('success_code', 204);
// Set the API base
$base = '/v1/posts/' . $post_id . '/relation-to-viewer/is-following';
// Build xml.
$xml = '<is-following>' . $this->booleanToString($follow) . '</is-following>';
// Build the request path.
$path = $this->getOption('api.url') . $base;
$header['Content-Type'] = 'text/xml';
// Send the request.
$response = $this->oauth->oauthRequest($path, 'PUT', $parameters, $xml, $header);
return $response;
}
JLinkedinGroups::_likeUnlike (   $post_id,
  $like 
)
private

Method to like or unlike a post.

Paramètres:
string$post_idThe unique identifier for a group.
boolean$likeTrue to like post, false otherwise.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 696 du fichier groups.php.

{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the success response code.
$this->oauth->setOption('success_code', 204);
// Set the API base
$base = '/v1/posts/' . $post_id . '/relation-to-viewer/is-liked';
// Build xml.
$xml = '<is-liked>' . $this->booleanToString($like) . '</is-liked>';
// Build the request path.
$path = $this->getOption('api.url') . $base;
$header['Content-Type'] = 'text/xml';
// Send the request.
$response = $this->oauth->oauthRequest($path, 'PUT', $parameters, $xml, $header);
return $response;
}
JLinkedinGroups::addComment (   $post_id,
  $comment 
)

Method to add a comment to a post

Paramètres:
string$post_idThe unique identifier for a group.
string$commentThe post comment's text.
Renvoie:
string The created comment's id.
Depuis:
13.1

Définition à la ligne 941 du fichier groups.php.

{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the success response code.
$this->oauth->setOption('success_code', 201);
// Set the API base
$base = '/v1/posts/' . $post_id . '/comments';
// Build xml.
$xml = '<comment><text>' . $comment . '</text></comment>';
// Build the request path.
$path = $this->getOption('api.url') . $base;
$header['Content-Type'] = 'text/xml';
// Send the request.
$response = $this->oauth->oauthRequest($path, 'POST', $parameters, $xml, $header);
// Return the comment id.
$response = explode('comments/', $response->headers['Location']);
return $response[1];
}
JLinkedinGroups::changeSettings (   $group_id,
  $show_logo = null,
  $digest_frequency = null,
  $announcements = null,
  $allow_messages = null,
  $new_post = null 
)

Method to change a groups settings.

Paramètres:
string$group_idThe unique identifier for a group.
boolean$show_logoShow group logo in profile.
string$digest_frequencyE-mail digest frequency.
boolean$announcementsE-mail announcements from managers.
boolean$allow_messagesAllow messages from members.
boolean$new_postE-mail for every new post.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 229 du fichier groups.php.

{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the API base
$base = '/v1/people/~/group-memberships/' . $group_id;
// Build xml.
$xml = '<group-membership>';
if (!is_null($show_logo))
{
$xml .= '<show-group-logo-in-profile>' . $this->booleanToString($show_logo) . '</show-group-logo-in-profile>';
}
if ($digest_frequency)
{
$xml .= '<email-digest-frequency><code>' . $digest_frequency . '</code></email-digest-frequency>';
}
if (!is_null($announcements))
{
$xml .= '<email-announcements-from-managers>' . $this->booleanToString($announcements) . '</email-announcements-from-managers>';
}
if (!is_null($allow_messages))
{
$xml .= '<allow-messages-from-members>' . $this->booleanToString($allow_messages) . '</allow-messages-from-members>';
}
if (!is_null($new_post))
{
$xml .= '<email-for-every-new-post>' . $this->booleanToString($new_post) . '</email-for-every-new-post>';
}
$xml .= '</group-membership>';
// Build the request path.
$path = $this->getOption('api.url') . $base;
$header['Content-Type'] = 'text/xml';
// Send the request.
$response = $this->oauth->oauthRequest($path, 'PUT', $parameters, $xml, $header);
return $response;
}
JLinkedinGroups::createPost (   $group_id,
  $title,
  $summary 
)

Method to retrieve all comments of a post.

Paramètres:
string$group_idThe unique identifier for a group.
string$titlePost title.
string$summaryPost summary.
Renvoie:
string The created post's id.
Depuis:
13.1

Définition à la ligne 654 du fichier groups.php.

{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the success response code.
$this->oauth->setOption('success_code', 201);
// Set the API base
$base = '/v1/groups/' . $group_id . '/posts';
// Build xml.
$xml = '<post><title>' . $title . '</title><summary>' . $summary . '</summary></post>';
// Build the request path.
$path = $this->getOption('api.url') . $base;
$header['Content-Type'] = 'text/xml';
// Send the request.
$response = $this->oauth->oauthRequest($path, 'POST', $parameters, $xml, $header);
// Return the post id.
$response = explode('posts/', $response->headers['Location']);
return $response[1];
}
JLinkedinGroups::deleteComment (   $comment_id)

Method to delete a comment if the current user is the creator or flag it as inappropriate otherwise.

Paramètres:
string$comment_idThe unique identifier for a group.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 982 du fichier groups.php.

{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the success response code.
$this->oauth->setOption('success_code', 204);
// Set the API base
$base = '/v1/comments/' . $comment_id;
// Build the request path.
$path = $this->getOption('api.url') . $base;
// Send the request.
$response = $this->oauth->oauthRequest($path, 'DELETE', $parameters);
return $response;
}
JLinkedinGroups::deletePost (   $post_id)

Method to delete a post if the current user is the creator or flag it as inappropriate otherwise.

Paramètres:
string$post_idThe unique identifier for a group.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 868 du fichier groups.php.

{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the success response code.
$this->oauth->setOption('success_code', 204);
// Set the API base
$base = '/v1/posts/' . $post_id;
// Build the request path.
$path = $this->getOption('api.url') . $base;
// Send the request.
$response = $this->oauth->oauthRequest($path, 'DELETE', $parameters);
return $response;
}
JLinkedinGroups::deleteSuggestion (   $suggestion_id,
  $person_id = null 
)

Method to delete a group suggestion for a user.

Paramètres:
string$suggestion_idThe unique identifier for a suggestion.
string$person_idThe unique identifier for a user.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 1065 du fichier groups.php.

{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the success response code.
$this->oauth->setOption('success_code', 204);
// Set the API base
$base = '/v1/people/';
// Check if person_id is specified.
if ($person_id)
{
$base .= $person_id . '/suggestions/groups/' . $suggestion_id;
}
else
{
$base .= '~/suggestions/groups/' . $suggestion_id;
}
// Build the request path.
$path = $this->getOption('api.url') . $base;
// Send the request.
$response = $this->oauth->oauthRequest($path, 'DELETE', $parameters);
return $response;
}
JLinkedinGroups::flagPost (   $post_id,
  $flag 
)

Method to flag a post as a Promotion or Job.

Paramètres:
string$post_idThe unique identifier for a group.
string$flagFlag as a 'promotion' or 'job'.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 830 du fichier groups.php.

{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the success response code.
$this->oauth->setOption('success_code', 204);
// Set the API base
$base = '/v1/posts/' . $post_id . '/category/code';
// Build xml.
$xml = '<code>' . $flag . '</code>';
// Build the request path.
$path = $this->getOption('api.url') . $base;
$header['Content-Type'] = 'text/xml';
// Send the request.
$response = $this->oauth->oauthRequest($path, 'PUT', $parameters, $xml, $header);
return $response;
}
JLinkedinGroups::followPost (   $post_id)

Method used to follow a post.

Paramètres:
string$post_idThe unique identifier for a group.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 801 du fichier groups.php.

{
return $this->_followUnfollow($post_id, true);
}
JLinkedinGroups::getComment (   $comment_id,
  $fields = null 
)

Method to access the comments resource.

Paramètres:
string$comment_idThe unique identifier for a comment.
string$fieldsRequest fields beyond the default ones.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 902 du fichier groups.php.

{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the API base
$base = '/v1/comments/' . $comment_id;
$data['format'] = 'json';
// Check if fields is specified.
if ($fields)
{
$base .= ':' . $fields;
}
// Build the request path.
$path = $this->getOption('api.url') . $base;
// Send the request.
$response = $this->oauth->oauthRequest($path, 'GET', $parameters, $data);
return json_decode($response->body);
}
JLinkedinGroups::getDiscussions (   $id,
  $fields = null,
  $start = 0,
  $count = 0,
  $order = null,
  $category = 'discussion',
  $modified_since = null 
)

Method to get dicussions for a group.

Paramètres:
string$idThe unique identifier for a group.
string$fieldsRequest fields beyond the default ones.
integer$startStarting location within the result set for paginated returns.
integer$countThe number of results returned.
string$orderSort order for posts. Valid for: recency, popularity.
string$categoryCategory of posts. Valid for: discussion
string$modified_sinceTimestamp filter for posts created after the specified value.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 402 du fichier groups.php.

{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the API base
$base = '/v1/groups/' . $id . '/posts';
$data['format'] = 'json';
// Check if fields is specified.
if ($fields)
{
$base .= ':' . $fields;
}
// Check if start is specified.
if ($start > 0)
{
$data['start'] = $start;
}
// Check if count is specified.
if ($count > 0)
{
$data['count'] = $count;
}
// Check if order is specified.
if ($order)
{
$data['order'] = $order;
}
// Check if category is specified.
if ($category)
{
$data['category'] = $category;
}
// Check if modified_since is specified.
if ($modified_since)
{
$data['modified-since'] = $modified_since;
}
// Build the request path.
$path = $this->getOption('api.url') . $base;
// Send the request.
$response = $this->oauth->oauthRequest($path, 'GET', $parameters, $data);
return json_decode($response->body);
}
JLinkedinGroups::getGroup (   $id,
  $fields = null,
  $start = 0,
  $count = 5 
)

Method to get a group.

Paramètres:
string$idThe unique identifier for a group.
string$fieldsRequest fields beyond the default ones.
integer$startStarting location within the result set for paginated returns.
integer$countThe number of results returned.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 33 du fichier groups.php.

{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the API base
$base = '/v1/groups/' . $id;
$data['format'] = 'json';
// Check if fields is specified.
if ($fields)
{
$base .= ':' . $fields;
}
// Check if start is specified.
if ($start > 0)
{
$data['start'] = $start;
}
// Check if count is specified.
if ($count != 5)
{
$data['count'] = $count;
}
// Build the request path.
$path = $this->getOption('api.url') . $base;
// Send the request.
$response = $this->oauth->oauthRequest($path, 'GET', $parameters, $data);
return json_decode($response->body);
}
JLinkedinGroups::getMemberships (   $id = null,
  $fields = null,
  $start = 0,
  $count = 5,
  $membership_state = null 
)

Method to find the groups a member belongs to.

Paramètres:
string$idThe unique identifier for a user.
string$fieldsRequest fields beyond the default ones.
integer$startStarting location within the result set for paginated returns.
integer$countThe number of results returned.
string$membership_stateThe state of the caller’s membership to the specified group. Values are: non-member, awaiting-confirmation, awaiting-parent-group-confirmation, member, moderator, manager, owner.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 88 du fichier groups.php.

{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the API base
$base = '/v1/people/';
// Check if id is specified.
if ($id)
{
$base .= $id . '/group-memberships';
}
else
{
$base .= '~/group-memberships';
}
$data['format'] = 'json';
// Check if fields is specified.
if ($fields)
{
$base .= ':' . $fields;
}
// Check if start is specified.
if ($start > 0)
{
$data['start'] = $start;
}
// Check if count is specified.
if ($count != 5)
{
$data['count'] = $count;
}
// Check if membership_state is specified.
if ($membership_state)
{
$data['membership-state'] = $membership_state;
}
// Build the request path.
$path = $this->getOption('api.url') . $base;
// Send the request.
$response = $this->oauth->oauthRequest($path, 'GET', $parameters, $data);
return json_decode($response->body);
}
JLinkedinGroups::getPost (   $post_id,
  $fields = null 
)

Method to retrieve details about a post.

Paramètres:
string$post_idThe unique identifier for a post.
string$fieldsRequest fields beyond the default ones.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 561 du fichier groups.php.

{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the API base
$base = '/v1/posts/' . $post_id;
$data['format'] = 'json';
// Check if fields is specified.
if ($fields)
{
$base .= ':' . $fields;
}
// Build the request path.
$path = $this->getOption('api.url') . $base;
// Send the request.
$response = $this->oauth->oauthRequest($path, 'GET', $parameters, $data);
return json_decode($response->body);
}
JLinkedinGroups::getPostComments (   $post_id,
  $fields = null,
  $start = 0,
  $count = 0 
)

Method to retrieve all comments of a post.

Paramètres:
string$post_idThe unique identifier for a post.
string$fieldsRequest fields beyond the default ones.
integer$startStarting location within the result set for paginated returns.
integer$countThe number of results returned.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 602 du fichier groups.php.

{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the API base
$base = '/v1/posts/' . $post_id . '/comments';
$data['format'] = 'json';
// Check if fields is specified.
if ($fields)
{
$base .= ':' . $fields;
}
// Check if start is specified.
if ($start > 0)
{
$data['start'] = $start;
}
// Check if count is specified.
if ($count > 0)
{
$data['count'] = $count;
}
// Build the request path.
$path = $this->getOption('api.url') . $base;
// Send the request.
$response = $this->oauth->oauthRequest($path, 'GET', $parameters, $data);
return json_decode($response->body);
}
JLinkedinGroups::getSettings (   $person_id = null,
  $group_id = null,
  $fields = null,
  $start = 0,
  $count = 5 
)

Method to find the groups a member belongs to.

Paramètres:
string$person_idThe unique identifier for a user.
string$group_idThe unique identifier for a group.
string$fieldsRequest fields beyond the default ones.
integer$startStarting location within the result set for paginated returns.
integer$countThe number of results returned.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 158 du fichier groups.php.

{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the API base
$base = '/v1/people/';
// Check if person_id is specified.
if ($person_id)
{
$base .= $person_id . '/group-memberships';
}
else
{
$base .= '~/group-memberships';
}
// Check if group_id is specified.
if ($group_id)
{
$base .= '/' . $group_id;
}
$data['format'] = 'json';
// Check if fields is specified.
if ($fields)
{
$base .= ':' . $fields;
}
// Check if start is specified.
if ($start > 0)
{
$data['start'] = $start;
}
// Check if count is specified.
if ($count != 5)
{
$data['count'] = $count;
}
// Build the request path.
$path = $this->getOption('api.url') . $base;
// Send the request.
$response = $this->oauth->oauthRequest($path, 'GET', $parameters, $data);
return json_decode($response->body);
}
JLinkedinGroups::getSuggested (   $person_id = null,
  $fields = null 
)

Method to get suggested groups for a user.

Paramètres:
string$person_idThe unique identifier for a user.
string$fieldsRequest fields beyond the default ones.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 1016 du fichier groups.php.

{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the API base
$base = '/v1/people/';
// Check if person_id is specified.
if ($person_id)
{
$base .= $person_id . '/suggestions/groups';
}
else
{
$base .= '~/suggestions/groups';
}
$data['format'] = 'json';
// Check if fields is specified.
if ($fields)
{
$base .= ':' . $fields;
}
// Build the request path.
$path = $this->getOption('api.url') . $base;
// Send the request.
$response = $this->oauth->oauthRequest($path, 'GET', $parameters, $data);
return json_decode($response->body);
}
JLinkedinGroups::getUserPosts (   $group_id,
  $role,
  $person_id = null,
  $fields = null,
  $start = 0,
  $count = 0,
  $order = null,
  $category = 'discussion',
  $modified_since = null 
)

Method to get posts a user started / participated in / follows for a group.

Paramètres:
string$group_idThe unique identifier for a group.
string$roleFilter for posts related to the caller. Valid for: creator, commenter, follower.
string$person_idThe unique identifier for a user.
string$fieldsRequest fields beyond the default ones.
integer$startStarting location within the result set for paginated returns.
integer$countThe number of results returned.
string$orderSort order for posts. Valid for: recency, popularity.
string$categoryCategory of posts. Valid for: discussion
string$modified_sinceTimestamp filter for posts created after the specified value.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 478 du fichier groups.php.

{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the API base
$base = '/v1/people/';
// Check if person_id is specified.
if ($person_id)
{
$base .= $person_id;
}
else
{
$base .= '~';
}
$base .= '/group-memberships/' . $group_id . '/posts';
$data['format'] = 'json';
$data['role'] = $role;
// Check if fields is specified.
if ($fields)
{
$base .= ':' . $fields;
}
// Check if start is specified.
if ($start > 0)
{
$data['start'] = $start;
}
// Check if count is specified.
if ($count > 0)
{
$data['count'] = $count;
}
// Check if order is specified.
if ($order)
{
$data['order'] = $order;
}
// Check if category is specified.
if ($category)
{
$data['category'] = $category;
}
// Check if modified_since is specified.
if ($modified_since)
{
$data['modified-since'] = $modified_since;
}
// Build the request path.
$path = $this->getOption('api.url') . $base;
// Send the request.
$response = $this->oauth->oauthRequest($path, 'GET', $parameters, $data);
return json_decode($response->body);
}
JLinkedinGroups::joinGroup (   $group_id,
  $show_logo = null,
  $digest_frequency = null,
  $announcements = null,
  $allow_messages = null,
  $new_post = null 
)

Method to join a group.

Paramètres:
string$group_idThe unique identifier for a group.
boolean$show_logoShow group logo in profile.
string$digest_frequencyE-mail digest frequency.
boolean$announcementsE-mail announcements from managers.
boolean$allow_messagesAllow messages from members.
boolean$new_postE-mail for every new post.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 297 du fichier groups.php.

{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the success response code.
$this->oauth->setOption('success_code', 201);
// Set the API base
$base = '/v1/people/~/group-memberships';
// Build xml.
$xml = '<group-membership><group><id>' . $group_id . '</id></group>';
if (!is_null($show_logo))
{
$xml .= '<show-group-logo-in-profile>' . $this->booleanToString($show_logo) . '</show-group-logo-in-profile>';
}
if ($digest_frequency)
{
$xml .= '<email-digest-frequency><code>' . $digest_frequency . '</code></email-digest-frequency>';
}
if (!is_null($announcements))
{
$xml .= '<email-announcements-from-managers>' . $this->booleanToString($announcements) . '</email-announcements-from-managers>';
}
if (!is_null($allow_messages))
{
$xml .= '<allow-messages-from-members>' . $this->booleanToString($allow_messages) . '</allow-messages-from-members>';
}
if (!is_null($new_post))
{
$xml .= '<email-for-every-new-post>' . $this->booleanToString($new_post) . '</email-for-every-new-post>';
}
$xml .= '<membership-state><code>member</code></membership-state></group-membership>';
// Build the request path.
$path = $this->getOption('api.url') . $base;
$header['Content-Type'] = 'text/xml';
// Send the request.
$response = $this->oauth->oauthRequest($path, 'POST', $parameters, $xml, $header);
return $response;
}
JLinkedinGroups::leaveGroup (   $group_id)

Method to leave a group.

Paramètres:
string$group_idThe unique identifier for a group.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 363 du fichier groups.php.

{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the success response code.
$this->oauth->setOption('success_code', 204);
// Set the API base
$base = '/v1/people/~/group-memberships/' . $group_id;
// Build the request path.
$path = $this->getOption('api.url') . $base;
// Send the request.
$response = $this->oauth->oauthRequest($path, 'DELETE', $parameters);
return $response;
}
JLinkedinGroups::likePost (   $post_id)

Method used to like a post.

Paramètres:
string$post_idThe unique identifier for a group.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 734 du fichier groups.php.

{
return $this->_likeUnlike($post_id, true);
}
JLinkedinGroups::unfollowPost (   $post_id)

Method used to unfollow a post.

Paramètres:
string$post_idThe unique identifier for a group.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 815 du fichier groups.php.

{
return $this->_followUnfollow($post_id, false);
}
JLinkedinGroups::unlikePost (   $post_id)

Method used to unlike a post.

Paramètres:
string$post_idThe unique identifier for a group.
Renvoie:
array The decoded JSON response
Depuis:
13.1

Définition à la ligne 748 du fichier groups.php.

{
return $this->_likeUnlike($post_id, false);
}

La documentation de cette classe a été générée à partir du fichier suivant :