Pinterest Automated Posting

Got here from SNAP WordPress plugin?

SNAP for WordPress

Pinterest API library is now included and integrated with the SNAP Pro for WordPress plugin. No separate installation is required.


NextScripts Pinterest API library for PHP

Social image-sharing site Pinterest is growing fast. Your site or blog is already posting your updates to Facebook and Twitter, so what about Pinterest? Pinterest API is not released yet, so there were no way to sync your updates around all networks including this one. Well, we did it with Google Plus, and now we did it with Pinterest as well. New Automated Posting API library from “NextScripts” is capable of automatic sharing images from your site directly to your Pinterest account.

Also get a WordPress Plugin that will automatically publish all your posts to Pinterest.

Pinterest Automated Posting Demo

Try it: Select Image to be Pinned:

PN PN PN PN
Message: Click Here to Pin this to our Demo Pinterest Board

Usage

The script is very easy to use.

Examples:
1. Pin an image to your Pinterest board:

<?php        
  require_once "nxs-api/nxs-api.php";
  require_once "nxs-api/nxs-http.php";
  require_once "inc/nxs-functions.php";  
  
  $email = 'YourEmail@gmail.com'; 
  $pass = 'YourPassword';
  $msg = 'Post this to Pinterest!'; 
  $imgURL = 'http://www.YourWebsiteURL.com/link/to/your/image.jpg'; 
  $link = 'http://www.YourWebsiteURL.com/page'; 
  $boardID = '104935301886129712427'; 

  $nt = new nxsAPI_PN();
  $loginError = $nt->connect($email, $pass);     
  if (!$loginError)
    {
      $result = $nt -> post($msg, $imgURL, $link, $boardID);
    } 
  else echo $loginError; 
  
  if (!empty($result) && is_array($result) && !empty($result['post_url'])) 
    echo '<a target="_blank" href="'.$result['post_url'].'">New Post</a>'; 
  else 
    echo "<pre>".print_r($result, true)."</pre>";
?>

More complex example: Pinterest bot protection.

Requirements

PHP5, cURL with OpenSSL, WordPress if you would like to use plugin.

Screenshots from WordPress Plugin

snap3

snap3

Get It

Pinterest Automated Posting Script is now part of the universal SNAP API. SNAP API provides a universal API interface for autoposting to more then 25 different social networks including Google+, Pinterest, Flipboard, Reddit, YouTube, Blogger, and LinkedIn Company Pages as well as Facebook, Twitter, Tumblr, Flickr, Scoop.It and many others

Get it here: SNAP API

SNAP API

*** Special Offer: Get “SNAP Pro Plugin for WordPress” for free with any “SNAP API” order.

Version history

May 29, 2015 – Became a part of the SNAP Universal APISNAP Universal API Version history
Version 2.15.69 – Feb 27, 2015
   – [FIX/Improvement] – Pinterest changed/upgraded it’s API interface
Version 2.9.15 – may 20, 2014
   – [FIX] – Support for updated Pinterest interface
Version 2.8.0 – July 10, 2013
   – [Improvement] – New Pinterest Design for posts
   – [Change] – OLD Pinterest Design is not longer supported
Version 2.7.3 – Jun 28, 2013
   – [Improvement] – New Pinterest Design Support
   – [Improvement] – Stability Improvements
Version 1.1.0 – Jun 28, 2012
   – [Improvement] – Switched to new generation of automated logins. No more “cookie” files required and it can work with open_basedir set.
Version 1.0.1 – Jun 22, 2012
   – [BugFix] – Some Small Bug Fixes.
Version 1.0.0 – Jun 20, 2012
   – Initial Release
© 2012-2016 NextScripts.com