Download the PHP package artisen2021/linkedinsdk without Composer

On this page you can find all versions of the php package artisen2021/linkedinsdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package linkedinsdk

LinkedIn SDK to setUp OAuth and manage campaign groups, campaigns, ads, ad targeting and social pages.

Installation

You will need at least PHP 8.1.

Use composer package manager to install the lastest version of the package: composer require artisen2021/linkedinsdk

Or add this package as dependency to composer.json If you have never used Composer, you should start installing composer.

Get started

Before starting, it's important to read LinkedIn API Documentation.

In section My Apps, create a new developer application related to your LinkedIn Page. Save the application Client ID and Client Secret. Generate an access token. Ensure you have the right permissions based on your use case. Apply to the Marketing Developer Platform.

Instantiate a client

Setting local redirect URL

Set a custom redirect url. This url is called when the user is connected to LinkedIn and redirected to your application.

Getting Login URL

In order to perform OAUTH 2.0 flow, you must direct the member's browser to LinkedIn's OAuth 2.0 authorization page where the member connects to LinkedIn, then either accepts or denies your application's permission request. To get redirect url to LinkedIn, use the following approach:

Once the user is connected and has completed the authorization process, the browser is redirected to the URL provided in the redirect_uri query parameter and the Authorization Code appears in the URL. This code is a value that you exchange with LinkedIn for an OAuth 2.0 access token.

Getting Access Token

To get access token:

In the AccessTokenRequest class, this token is stored in a file token.json:

This AccessToken is used the header of the API calls.

Manage campaign groups

Create a campaign group

Delete a campaign group

Update a campaign group

Manage campaigns

Create a campaign

Delete a campaign

Update a campaign

Manage ads

Create an add (image add)

Delete an add

Update an add

Manage ad targeting

Fetch location

Fetch Urns

Fetch Similar

Manage social pages

Get Pending Client Pages

Get Page Data

Get Page Current Status

Search Ad Accounts By Page Id


All versions of linkedinsdk with dependencies

PHP Build Version
Package Version
Requires ext-curl Version *
guzzlehttp/guzzle Version ^7.0
php Version ^8.1
fakerphp/faker Version ^1.19
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package artisen2021/linkedinsdk contains the following files

Loading the files please wait ....