Class JLinkedinCompanies
Linkedin API Companies class for the Joomla Platform.
-
JLinkedinObject
-
JLinkedinCompanies
Methods summary
public
array
|
#
getCompanies( integer $id = null, string $name = null, string $domain = null, string $fields = null )
Method to retrieve companies using a company ID, a universal name, or an
email domain.
Method to retrieve companies using a company ID, a universal name, or an
email domain.
Parameters
- $id
integer - $id The unique internal numeric company identifier.
- $name
string - $name The unique string identifier for a company.
- $domain
string - $domain Company email domains.
- $fields
string - $fields Request fields beyond the default ones.
Returns
array - The decoded JSON response
Throws
Since
13.1
|
public
array
|
#
getUpdates( string $id, string $type = null, integer $count = 0, integer $start = 0 )
Method to read shares for a particular company .
Method to read shares for a particular company .
Parameters
- $id
string - $id The unique company identifier.
- $type
string - $type Any valid Company Update Type from the table: https://developer.linkedin.com/reading-company-updates.
- $count
integer - $count Maximum number of updates to return.
- $start
integer - $start The offset by which to start Network Update pagination.
Returns
array - The decoded JSON response
Since
13.1
|
public
array
|
#
search( string $fields = null, string $keywords = null, boolean $hq = false, string $facets = null, array $facet = null, integer $start = 0, integer $count = 0, string $sort = null )
Method to search across company pages.
Method to search across company pages.
Parameters
- $fields
string - $fields Request fields beyond the default ones.
- $keywords
string - $keywords Members who have all the keywords anywhere in their profile.
- $hq
boolean - $hq Matching companies by the headquarters location. When this is set to "true"
and a location facet is used, this restricts returned companies to only those
whose headquarters resides in the specified location.
- $facets
string - $facets Facet buckets to return, e.g. location.
- $facet
array - $facet Array of facet values to search over. Contains values for location,
industry, network, company-size, num-followers-range and fortune, in exactly
this order, null must be specified for an element if no value.
- $start
integer - $start Starting location within the result set for paginated returns.
- $count
integer - $count The number of results returned.
- $sort
string - $sort Controls the search result order. There are four options: relevance,
relationship, followers and company-size.
Returns
array - The decoded JSON response
Since
13.1
|
public
array
|
#
getFollowed( string $fields = null )
Method to get a list of companies the current member is following.
Method to get a list of companies the current member is following.
Parameters
- $fields
string - $fields Request fields beyond the default ones.
Returns
array - The decoded JSON response
Since
13.1
|
public
array
|
#
follow( string $id )
Method to follow a company.
Method to follow a company.
Parameters
- $id
string - $id The unique identifier for a company.
Returns
array - The decoded JSON response
Since
13.1
|
public
array
|
#
unfollow( string $id )
Method to unfollow a company.
Method to unfollow a company.
Parameters
- $id
string - $id The unique identifier for a company.
Returns
array - The decoded JSON response
Since
13.1
|
public
array
|
#
getSuggested( string $fields = null, integer $start = 0, integer $count = 0 )
Method to get a collection of suggested companies for the current user.
Method to get a collection of suggested companies for the current user.
Parameters
- $fields
string - $fields Request fields beyond the default ones.
- $start
integer - $start Starting location within the result set for paginated returns.
- $count
integer - $count The number of results returned.
Returns
array - The decoded JSON response
Since
13.1
|
public
array
|
#
getProducts( string $id, string $fields = null, integer $start = 0, integer $count = 0 )
Method to get a collection of suggested companies for the current user.
Method to get a collection of suggested companies for the current user.
Parameters
- $id
string - $id The unique identifier for a company.
- $fields
string - $fields Request fields beyond the default ones.
- $start
integer - $start Starting location within the result set for paginated returns.
- $count
integer - $count The number of results returned.
Returns
array - The decoded JSON response
Since
13.1
|
__construct()
,
booleanToString()
,
getOption()
,
setOption()
Magic methods summary
Properties summary
$client
,
$oauth
,
$options