Click or drag to resize
LinkedInHelperGetUserCompanies Method
Gets all companies administrated by the user that ownes given access token.

Namespace: CMS.SocialMarketing
Assembly: CMS.SocialMarketing (in CMS.SocialMarketing.dll) Version: 9.0.0
Syntax
C#
public static List<LinkedInCompany> GetUserCompanies(
	string consumerKey,
	string consumerSecret,
	string accessToken,
	string accessTokenSecret
)

Parameters

consumerKey
Type: SystemString
Application API key.
consumerSecret
Type: SystemString
Application API secret.
accessToken
Type: SystemString
User's access token.
accessTokenSecret
Type: SystemString
User's access token secret.

Return Value

Type: ListLinkedInCompany
Returns list of administrated companies or null if something went wrong.
Exceptions
ExceptionCondition
LinkedInApiUnauthorizedExceptionThrown when protocol error occurs because the request is not authorized properly.
LinkedInApiThrottleLimitExceptionThrown when protocol error occurs because the limit of API requests was overdrown.
LinkedInApiExceptionThrown when protocol error occurs.
ExceptionThrown when unexpected error occures.
See Also