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

Namespace: CMS.SocialMarketing
Assembly: CMS.SocialMarketing (in CMS.SocialMarketing.dll) Version: 12.0.0
Syntax
C#
public static List<LinkedInCompany> GetUserCompanies(
	string accessToken
)

Parameters

accessToken
Type: SystemString
User's access token.

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 overdrawn.
LinkedInApiExceptionThrown when protocol error occurs.
ExceptionThrown when unexpected error occurs.
See Also