Add incoming pending invitations automatically
Share: |
Instead of spending time each day going through the boring process of accepting requests individually, let our API take care of it for you. By doing so, you will be able to spend your time on more important tasks.
Get your agent accepting as many connections as you want at the speed you want. Every time your agent is launched, receive a summary email including information of each LinkedIn profile that has been added. This way you can:
(You already have all that? Click straight away on "Use this API")
If you haven't already, create a FREE account on Phantombuster. Our service will browse the web for you. It’s a website automator which runs in the cloud. Once done we'll follow up.
Now that you're connected to Phantombuster, Click on the following button (it will open a new tab).
You'll now see the 3 configuration dots blinking. Click on them.
(You already know how to get your sessionCookie? skip this part)
Because the script will manipulate LinkedIn for you, it needs to be logged on your LinkedIn account. For that you just need to copy paste your session cookie in the script argument:
Using Chrome, go to your LinkedIn homepage and open the inspector
→ Right click anywhere on the page and select “Inspect”
→ CMD+OPT+i on macOS
or
→ F12 or CTRL+MAJ+i on Windows
Locate the “Application” tab
// How to access your cookies with Firefox and Safari//
The 2nd and last parameter you'll need to set is the number of connections to accept which means: how many connections do you want the API to add everytime it runs?
Enter a number between 1 and 50 (by default it's 5).
To receive summaries of your agent work, go in your API settings and expand "email notifications" field.
Make sure you have checked at least the 2 boxes next to "Finished successfully"
It’s done! All that is left to do is to click on "launch" to try your script!
Now that your bot is ready, you just have to customize it to make it work repetitively.
Every time the bot is launched, it will accept invitations.
To do so, simply hit the “Settings” button to define when your bot is launched.
Follow this GIF example to run it twice a day (at 9am 🕘 & 1pm 🕐):
Now that this is set, click 💾 Save at the bottom of the page.
Like all APIs on Phantombuster, this API comes with an HTTP endpoint. Launch it from your computer, app or server with a simple HTTP request and get its result as JSON. Click Use this API above to create your new endpoint.
The script below is all that's required to make the API work. If you're a developer, click the button to clone the code into a new Custom API Agent in your Phantombuster account. This operation will allow you to customize the API to your exact needs. This will also create a custom HTTP endpoint.
Feeling adventurous? Unsatisfied with the current state of this API? Send us pull requests on GitHub to improve the API store! The script is here and you might be interested in reading our documentation here .
(we reward contributions we like with free Phantombuster accounts :D)
Your friends & colleagues need to know about this!