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.
Download artisen2021/linkedinsdk
More information about artisen2021/linkedinsdk
Files in artisen2021/linkedinsdk
Package linkedinsdk
Short Description Linkedin SDK for Wonderkind endpoints
License MIT
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
guzzlehttp/guzzle Version ^7.0
php Version ^8.1
fakerphp/faker Version ^1.19