Scheduled posting of photos using the WordPress.com REST API.
Photos are stored locally before being scheduled on a blog. All scheduling and blog authorization is done via the REST API. Once scheduled, photos are shown in a pending list and can be deleted (through the API) before they are posted.
Scheduling involves picking a start date and the number of days between each post. Weekends can be avoided.
Nothing is sent to a blog without explicit instructions.
It is possible to connect multiple blogs.
Postbot is responsive and mobile ready. It is fully localized, although no languages files are provided.
The following API commands are used:
- GET /sites/$site - information about a blog
- POST /sites/$site/posts/new - create blog post
- POST /sites/$site/posts/$post_ID/delete - delete a pending post
- PHP 5 with GD or ImageMagick
- A working WordPress with connection to MySQL
- An upload directory writeable to by the web server
- Get WordPress installed and connected to your database. You don't need to have WordPress available to anyone, but the database functions are used by Postbot
- Edit
postbot-local.phpand changed the WordPress include to refer to your WordPress installation - Create the Postbot tables
- Create a new oAuth app for the WordPress.com Connect signin. Set the redirect_uri to be the
wpcc.phpfile in Postbot. - Edit
postbot-config.phpand set theOAUTH_WPCC_KEY,OAUTH_WPCC_SECRET, andOAUTH_WPCC_REDIRECTto the details in the oAuth app - Create another oAuth app for the WordPress.com blog authorisation. Set the
redirect_urito be theindex.phpfile in Postbot. - Edit
postbot-config.phpand set theOAUTH_KEY,OAUTH_SECRET, andOAUTH_REDIRECTto the details in this oAuth app - Edit other settings in
postbot-config.phpas appropriate
Postbot comes with a Vagrantfile that will create a working Postbot environment. To use:
- Install Vagrant
- Install VirtualBox
- Install HostsUpdater plugin
- Go to the Postbot root directory and run
vagrant up - Make sure that the
public_html/uploads/folder is writeable. You can runchmod 777 public_html/uploads/from the host machine.
Postbot is available from local.postbot.dev