Pull API \ Retrieve the companies of a LinkedIn user

Resource/URI HTTP GET
Facebook · Retrieve a user's likes /pull/identities/<identity_token>/facebook/likes.json Retrieve
Likes
Facebook · Retrieve a user's pages /pull/identities/<identity_token>/facebook/pages.json Retrieve
Pages
Facebook · Retrieve a user's posts /pull/identities/<identity_token>/facebook/posts.json Retrieve
Posts
LinkedIn · Retrieve a user's companies /pull/identities/<identity_token>/linkedin/companies.json Retrieve
Companies
LinkedIn · Retrieve a user's company posts /pull/identities/<identity_token>/linkedin/company/<companyid>/posts.json Retrieve
Company Posts
Pinterest · Retrieve a user's boards /pull/identities/<identity_token>/pinterest/boards.json Retrieve
Boards
Steam · Retrieve a user's games /pull/identities/<identity_token>/steam/games.json Retrieve
Games
Twitter · Retrieve a user's tweets /pull/identities/<identity_token>/twitter/tweets.json Retrieve
Tweets
YouTube · Retrieve a user's 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_organization_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,
            "tag": "oneall",
            "url": "https://www.linkedin.com/company/oneall/",
            "name": "OneAll",
            "description": "Reunite your user data in a state-of-the-art security environment that is 100% compliant with all US & EU data protection laws."
          }
        ]
      }
    }
  }
}

User Contributed Notes