Giter Club home page Giter Club logo

php-pinterest-bot's Introduction

Pinterest Bot for PHP

Pinterest PHP Bot

Build Status Code Climate Scrutinizer Code Quality Test Coverage StyleCI Total Downloads

Support me with some coffee

This PHP library will help you to work with your Pinterest account without using any API account credentials.

There is a lot of pain using Pinterest API: to get an access to it you need to go to register a developer account, then register your application, then wait for confirmation, and only then you will get an access token. Furthermore, the public API is very poor and has a very limited set of features.

With this library you have the entire set of functions, which available on Pinterest website. And there is no need to register an application to receive an access token. Just use your account login and password, like you do it in your browser. But even your account is not required, if you don't use such operations as creating pins, writing comments or sending messages!

Installation

Dependencies

Library requires CURL extension and PHP 5.5.9 or above.

The recommended way to install this library is via Composer. New to Composer?

composer require seregazhuk/pinterest-bot

Quick Start

// You may need to amend this path to locate Composer's autoloader
require('vendor/autoload.php'); 

use seregazhuk\PinterestBot\Factories\PinterestBot;

$bot = PinterestBot::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');

Note: Some methods use pinterest navigation through results (with bookmarks), for example, get user followers/following, pins likes/dislikes, search and other feed queries. This means that for every batch of results there will be a request to Pinterest. These methods return a Pagination object with Pinterest api results.

How to avoid banned from Pinterest: don't bee too aggressive making pins or writing comments. Try to put some timeouts with $bot->wait($seconds) calls, so you will behave like a real person and not a bot, creating hundreds of pins in a minute.

Examples

Here you can find articles with some examples of the most common tasks that can be done with the bot:

How can I thank you?

Why not star the GitHub repo? I'd love the attention! And you can donate project on PayPal.

Support me with some coffee

Thanks!

php-pinterest-bot's People

Contributors

seregazhuk avatar scrutinizer-auto-fixer avatar alexeykosov avatar lex111 avatar kiwired avatar

Watchers

James Cloos avatar Adrian web avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.