Functions of org.ballerinalang.connectors.linkedin package
function validateFormat(string format) (string )
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
format | string |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
string |
Connectors of org.ballerinalang.connectors.linkedin package
connector ClientConnector (string accessToken)
LinkedIn client connector
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
accessToken | string | The access token of the LinkedIn Application |
action getProfileInfo()
Get Profile Information
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
t | ClientConnector | format: Format of the response expected (json/xml) |
format | string | Format of the response expected (json/xml) |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |
action getCompanyInfo()
Get Company Page Information
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
t | ClientConnector | companyId: ID of the relevant company |
companyId | string | ID of the relevant company |
format | string | Format of the response expected (json/xml) |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |
action isCompanyShareEnabled()
Check if Sharing is enabled for a company page
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
t | ClientConnector | companyId: ID of the relevant company |
companyId | string | ID of the relevant company |
format | string | Format of the response expected (json/xml) |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |
action isMemberAdmin()
Check if the user is an admin of Company Page
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
t | ClientConnector | companyId: ID of the relevant company |
companyId | string | ID of the relevant company |
format | string | Format of the response expected (json/xml) |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |
action profileShare()
Post on the profile of the authenticated user
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
t | ClientConnector | payload: json payload containing the post that needed to be shared |
payload | json | json payload containing the post that needed to be shared |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |
action profileShare()
Post on the profile of the authenticated user
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
t | ClientConnector | payload: xml payload containing the post that needed to be shared |
payload | xml | xml payload containing the post that needed to be shared |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |
action companyShare()
Post on a Company Page
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
t | ClientConnector | companyId: ID of the relevant company |
companyId | string | ID of the relevant company |
payload | json | json payload containing the post that needed to be shared |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |
action companyShare()
Post on a Company Page
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
t | ClientConnector | companyId: ID of the relevant company |
companyId | string | ID of the relevant company |
payload | xml | xml payload containing the post that needed to be shared |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |