Ballerina API Documentation

Functions of org.wso2.ballerina.connectors.linkedin package

function validateFormat(string format) (string )

Parameters:

Parameter NameData TypeDescription
formatstring

Return Parameters:

Return VariableData TypeDescription
string


Connectors of org.wso2.ballerina.connectors.linkedin package

connector ClientConnector (string accessToken)

LinkedIn client connector

Parameters:

Parameter NameData TypeDescription
accessTokenstringThe access token of the LinkedIn Application

Actions:

action companyShareJson()

Post on a Company Page

Parameters:

Parameter NameData TypeDescription
tClientConnectorThe linkedIn Connector instance
companyIdstringID of the relevant company
payloadjsonjson payload containing the post that needed to be shared

Return Parameters:

Return VariableData TypeDescription
messageresponse object

action companyShareXml()

Post on a Company Page

Parameters:

Parameter NameData TypeDescription
tClientConnectorThe linkedIn Connector instance
companyIdstringID of the relevant company
payloadxmlxml payload containing the post that needed to be shared

Return Parameters:

Return VariableData TypeDescription
messageresponse object

action getCompanyInfo()

Get Company Page Information

Parameters:

Parameter NameData TypeDescription
tClientConnectorThe linkedIn Connector instance
companyIdstringID of the relevant company
formatstringFormat of the response expected (json/xml

Return Parameters:

Return VariableData TypeDescription
messageresponse object

action getProfileInfo()

Get Profile Information

Parameters:

Parameter NameData TypeDescription
tClientConnectorThe linkedIn Connector instance
formatstringFormat of the response expected (json/xml)

Return Parameters:

Return VariableData TypeDescription
messageresponse object

action isCompanyShareEnabled()

Check if Sharing is enabled for a company page

Parameters:

Parameter NameData TypeDescription
tClientConnectorThe linkedIn Connector instance
companyIdstringID of the relevant company
formatstringFormat of the response expected (json/xml)

Return Parameters:

Return VariableData TypeDescription
messageresponse object

action isMemberAdmin()

Check if the user is an admin of Company Page

Parameters:

Parameter NameData TypeDescription
tClientConnectorThe linkedIn Connector instance
companyIdstringID of the relevant company
formatstringFormat of the response expected (json/xml)

Return Parameters:

Return VariableData TypeDescription
messageresponse object

action profileShareJson()

Post on the profile of the authenticated user

Parameters:

Parameter NameData TypeDescription
tClientConnectorThe linkedIn Connector instance
payloadjsonjson payload containing the post that needed to be shared

Return Parameters:

Return VariableData TypeDescription
messageresponse object

action profileShareXml()

Post on the profile of the authenticated user

Parameters:

Parameter NameData TypeDescription
tClientConnectorThe linkedIn Connector instance
payloadxmlxml payload containing the post that needed to be shared

Return Parameters:

Return VariableData TypeDescription
messageresponse object


Menu

  • Functions
    • validateFormat(string format) (string )
  • Connectors
    • ClientConnector (string accessToken)
      • companyShareJson(ClientConnector t, string companyId, json payload)
      • companyShareXml(ClientConnector t, string companyId, xml payload)
      • getCompanyInfo(ClientConnector t, string companyId, string format)
      • getProfileInfo(ClientConnector t, string format)
      • isCompanyShareEnabled(ClientConnector t, string companyId, string format)
      • isMemberAdmin(ClientConnector t, string companyId, string format)
      • profileShareJson(ClientConnector t, json payload)
      • profileShareXml(ClientConnector t, xml payload)

Copyright 2017 Ballerina API Documentation