{
  "opencollection": "1.0.0",
  "info": {
    "name": "LinkedIn Compliance Events Access Control Use Cases > Image Ad API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://www.linkedin.com/oauth/v2/authorization",
      "accessTokenUrl": "https://www.linkedin.com/oauth/v2/accessToken",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Use Cases > Image Ad",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "LinkedIn Initialize Image Upload",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.linkedin.com/images",
            "headers": [
              {
                "name": "LinkedIn-Version",
                "value": "{{insert_version}}"
              },
              {
                "name": "X-Restli-Protocol-Version",
                "value": "2.0.0"
              }
            ],
            "params": [
              {
                "name": "action",
                "value": "initializeUpload",
                "type": "query"
              }
            ]
          },
          "docs": "Use the `initializeUpload` action to register the upload. When you initialize, you declare the upcoming upload. Use the upload URL to upload the image."
        },
        {
          "info": {
            "name": "LinkedIn Get a Single Image",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.linkedin.com/rest/images/:image_urn",
            "headers": [
              {
                "name": "LinkedIn-Version",
                "value": "{{insert_version}}"
              },
              {
                "name": "X-Restli-Protocol-Version",
                "value": "2.0.0"
              }
            ],
            "params": [
              {
                "name": "image_urn",
                "value": "urn:li:organization:123456",
                "type": "path"
              }
            ]
          },
          "docs": "This API rerieve a single image."
        },
        {
          "info": {
            "name": "LinkedIn Fetch Multiple Image Content",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.linkedin.com/rest/posts",
            "headers": [
              {
                "name": "X-Restli-Protocol-Version",
                "value": "2.0.0"
              },
              {
                "name": "LinkedIn-Version",
                "value": "{{insert_version}}"
              }
            ],
            "params": [
              {
                "name": "ids",
                "value": "List({encoded postId},{encoded postId})",
                "type": "query"
              }
            ]
          },
          "docs": "This API rerieve content from multiple images."
        },
        {
          "info": {
            "name": "LinkedIn Get Image Content",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.linkedin.com/rest/posts/:postId",
            "headers": [
              {
                "name": "LinkedIn-Version",
                "value": "{{insert_version}}"
              },
              {
                "name": "X-Restli-Protocol-Version",
                "value": "2.0.0"
              }
            ],
            "params": [
              {
                "name": "postId",
                "value": "123456",
                "type": "path"
              }
            ]
          },
          "docs": "This API rerieve the content associated with a single image."
        }
      ]
    }
  ],
  "bundled": true
}