Functions of org.wso2.ballerina.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.wso2.ballerina.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 companyShare()
Post on a Company Page
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
t | ClientConnector | The linkedIn Connector instance |
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 | The linkedIn Connector instance |
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 |
action getCompanyInfo()
Get Company Page Information
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
t | ClientConnector | The linkedIn Connector instance |
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 getProfileInfo()
Get Profile Information
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
t | ClientConnector | The linkedIn Connector instance |
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 | The linkedIn Connector instance |
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 | The linkedIn Connector instance |
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 | The linkedIn Connector instance |
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 | The linkedIn Connector instance |
payload | xml | xml payload containing the post that needed to be shared |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |