Pull API \ Retrieve the companies of a LinkedIn user

Resource/URI @Facebook GET POST PUT DELETE
Retrieve User's Facebook Pages /pull/identities/<identity_token>/facebook/pages.json Retrieve Pages
Resource/URI @LinkedIn GET POST PUT DELETE
Retrieve User's LinkedIn Companies /pull/identities/<identity_token>/linkedin/companies.json Retrieve Companies
Resource/URI @Pinterest GET POST PUT DELETE
Retrieve User's Pinterest Boards /pull/identities/<identity_token>/pinterest/boards.json Retrieve Boards
Resource/URI @YouTube GET POST PUT DELETE
Retrieve User's YouTube Videos /pull/identities/<identity_token>/youtube/videos.json Retrieve Videos

Workflow

Request: the code to send to the API

Send a GET request to the endpoint /pull/identities/<identity_token>/linkedin/companies.json to retrieve the companies that the user is currently configured to be an administrator of. The <identity_token> is obtained whenever one of your users connects using LinkedIn.

To order to use this endpoint the permission Manage company pages (rw_company_admin) must be enabled in the LinkedIn settings in your OneAll account and the user must have granted that permission when he logged in with LinkedIn. You can publish content for a company using our Push API.

Result: the code returned by the API

Response Example

{
  "response": {
    "request": {
      "date": "Tue, 07 Aug 2018 15:49:30  0200",
      "resource": "/pull/identities/2faf197d-1919-4bc1-845f-eee1624a4c43/linkedin/companies.json",
      "status": {
        "flag": "success",
        "code": 200,
        "info": "Your request has been processed successfully"
      }
    },
    "result": {
      "data": {
        "count": 1,
        "entries": [
          {
            "id": 2395631,
            "url": "https://www.linkedin.com/company/oneall/",
            "name": "oneall",
            "description": "Reunite your existing user data in a state-of-the-art security environment that is 100% compliant with all US & EU data protection laws.",
            "num_followers": 13482
          }
        ]
      }
    }
  }
}

User Contributed Notes