Companies

Extends \Joomla\Linkedin\Object

Linkedin API Companies class for the Joomla Framework.

deprecated
since

1.0

deprecated

The joomla/linkedin package is deprecated

Methods

__construct

Constructor.

__construct(array $options = array(), \Joomla\Http\Http $client = null, \Joomla\Linkedin\OAuth $oauth = null) 
inherited
since

1.2.0

Arguments

$options

arrayLinkedin options array.

$client

\Joomla\Http\HttpThe HTTP client object.

$oauth

\Joomla\Linkedin\OAuthThe OAuth client.

booleanToString

Method to convert boolean to string.

booleanToString(boolean $bool) : string
inherited
since

1.2.0

Arguments

$bool

booleanThe boolean value to convert.

Response

stringString with the converted boolean.

follow

Method to follow a company.

follow(string $id) : array
since

1.0

Arguments

$id

stringThe unique identifier for a company.

Response

arrayThe decoded JSON response

getCompanies

Method to retrieve companies using a company ID, a universal name, or an email domain.

getCompanies(integer $id = null, string $name = null, string $domain = null, string $fields = null) : array
since

1.0

throws

\RuntimeException

Arguments

$id

integerThe unique internal numeric company identifier.

$name

stringThe unique string identifier for a company.

$domain

stringCompany email domains.

$fields

stringRequest fields beyond the default ones.

Response

arrayThe decoded JSON response

getFollowed

Method to get a list of companies the current member is following.

getFollowed(string $fields = null) : array
since

1.0

Arguments

$fields

stringRequest fields beyond the default ones.

Response

arrayThe decoded JSON response

getOption

Get an option from the Object instance.

getOption(string $key) : mixed
inherited
since

1.2.0

Arguments

$key

stringThe name of the option to get.

Response

mixedThe option value.

getProducts

Method to get a collection of suggested companies for the current user.

getProducts(string $id, string $fields = null, integer $start, integer $count) : array
since

1.0

Arguments

$id

stringThe unique identifier for a company.

$fields

stringRequest fields beyond the default ones.

$start

integerStarting location within the result set for paginated returns.

$count

integerThe number of results returned.

Response

arrayThe decoded JSON response

getSuggested

Method to get a collection of suggested companies for the current user.

getSuggested(string $fields = null, integer $start, integer $count) : array
since

1.0

Arguments

$fields

stringRequest fields beyond the default ones.

$start

integerStarting location within the result set for paginated returns.

$count

integerThe number of results returned.

Response

arrayThe decoded JSON response

getUpdates

Method to read shares for a particular company .

getUpdates(string $id, string $type = null, integer $count, integer $start) : array
since

1.0

Arguments

$id

stringThe unique company identifier.

$type

stringAny valid Company Update Type from the table: https://developer.linkedin.com/reading-company-updates.

$count

integerMaximum number of updates to return.

$start

integerThe offset by which to start Network Update pagination.

Response

arrayThe decoded JSON response

setOption

Set an option for the Object instance.

setOption(string $key, mixed $value) : \Joomla\Linkedin\AbstractLinkedinObject
inherited
since

1.2.0

Arguments

$key

stringThe name of the option to set.

$value

mixedThe option value to set.

Response

\Joomla\Linkedin\AbstractLinkedinObjectThis object for method chaining.

unfollow

Method to unfollow a company.

unfollow(string $id) : array
since

1.0

Arguments

$id

stringThe unique identifier for a company.

Response

arrayThe decoded JSON response

Properties

options

Options for the Linkedin object.

inherited
since

1.2.0

Type(s)

array

client

The HTTP client object to use in sending HTTP requests.

inherited
since

1.2.0

Type(s)

\Joomla\Http\Http

oauth

The OAuth client.

inherited
since

1.2.0

Type(s)

\Joomla\Linkedin\OAuth