9
Building Bots For Fun and (No) Profit Using WordPress As A Platform @abrudtkuhl

Building bots for fun and (No) profit - WPDSM

Embed Size (px)

Citation preview

Building Bots For Fun and (No) ProfitUsing WordPress As A Platform

@abrudtkuhl

WordPress as a Platform or Service

WordPress

WP Theme

Facebook

Slack

Node.js

WordPress REST API

(+ extensions )

Twitter

Request

Response

Traditional

Why Extend REST API

• WP REST API has a predefined data structure and response that may not work for you

• Custom Endpoints allow custom queries

• Include more data like custom fields in query and response

Extending The API

Slack Slash Command

Slack Bot Node.js and WordPress REST API

Slack OAuth

ALL THE LINKS• heykramer.com/api

API Definition, Auto Discovery

• heykramer.com/wpcodeWordPress Code

• heykramer.com/botcodeNode.js Code

• heykramer.com/blogBlog post about building everything