PHP code example of seregazhuk / pinterest-bot
1. Go to this page and download the library: Download seregazhuk/pinterest-bot library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
seregazhuk / pinterest-bot example snippets
// You may need to amend this path to locate Composer's autoloader
estBot::create();
// Login
$bot->auth->login('mypinterestlogin', 'mypinterestpassword');
// Get lists of your boards
$boards = $bot->boards->forUser('yourUserName');
// Create a pin
$bot->pins->create('http://exmaple.com/image.jpg', $boards[0]['id'], 'Pin description');