Building Mobile Apps Using Wordpress
Kharron Reid Currently Running SenorCoders.com Attended Boston University Moved to Nicaragua from San Diego, CA In web development since 1998 (yes, that long) Worked for ROIDna.com in San Francisco, CA Did major work for CrowdStrike, Rdio, Dropbox, Gregg Kidd (twitter) Sorry, I speak english Lo siento, mi espanol es malo
What is an API? Application Program Interface REQUEST RESPONSE AUTHENTICATION
Wordpress 25% of all Websites are built with WP That’s a lot of data! Leverage the data of WP with WP Rest API
React Native Ionic Use React to build Native Apps Yes. Native! Differentiate between OS’s Runs Fast Still pretty new Use Ionic to build “write-once” distribute to all apps Now works with Angular 2 Large community Uses WebView Slow on Android
WP Rest Issues WP Rest API returns JSON JSON cannot store all formats of data like PHP (i.e. custom objects) Associative arrays and objects look the same There are security issues passing serialized data through an API WP often puts protected and private properties of objects in serialized data
Thats awesome, so now what? Take your WP apps now and turn them into mobile apps. Build your WP site Add WP Rest API (and other plugins to help) ACF to REST API Create a simple mobile app Connect the two
So... Lets make something work 1) Create a Wordpress Site 2) Makes some posts 3) Create a Mobile App 4) Pull those posts into the app Create WP site Set permalinks Add WP Rest API plugin Test API yoursite.com/wp-json/wp/v2/posts See Response Steps to start
It’s Alive!! JSON Results from posts requests
Now for your Mobile app Install your new app react-native init wpapi; Update your app to fetch your new API calls Render your responses.
Who already WP Api? Fashion4me Human Made: https://hmn.md/ Focused on Fit: https://focusedonfit.com/ Aesop Story Engine: http://aesopstoryengine.com/
Other Uses for WP API Plugin Development Connecting to Front-end Javascript
THANKS! Gracias!

Building mobile apps with Wordpress REST API

  • 1.
  • 2.
    Kharron Reid CurrentlyRunning SenorCoders.com Attended Boston University Moved to Nicaragua from San Diego, CA In web development since 1998 (yes, that long) Worked for ROIDna.com in San Francisco, CA Did major work for CrowdStrike, Rdio, Dropbox, Gregg Kidd (twitter) Sorry, I speak english Lo siento, mi espanol es malo
  • 3.
    What is anAPI? Application Program Interface REQUEST RESPONSE AUTHENTICATION
  • 4.
    Wordpress 25% of allWebsites are built with WP That’s a lot of data! Leverage the data of WP with WP Rest API
  • 5.
    React Native Ionic UseReact to build Native Apps Yes. Native! Differentiate between OS’s Runs Fast Still pretty new Use Ionic to build “write-once” distribute to all apps Now works with Angular 2 Large community Uses WebView Slow on Android
  • 6.
    WP Rest Issues WPRest API returns JSON JSON cannot store all formats of data like PHP (i.e. custom objects) Associative arrays and objects look the same There are security issues passing serialized data through an API WP often puts protected and private properties of objects in serialized data
  • 7.
    Thats awesome, sonow what? Take your WP apps now and turn them into mobile apps. Build your WP site Add WP Rest API (and other plugins to help) ACF to REST API Create a simple mobile app Connect the two
  • 8.
    So... Lets make somethingwork 1) Create a Wordpress Site 2) Makes some posts 3) Create a Mobile App 4) Pull those posts into the app Create WP site Set permalinks Add WP Rest API plugin Test API yoursite.com/wp-json/wp/v2/posts See Response Steps to start
  • 9.
    It’s Alive!! JSONResults from posts requests
  • 10.
    Now for yourMobile app Install your new app react-native init wpapi; Update your app to fetch your new API calls Render your responses.
  • 11.
    Who already WPApi? Fashion4me Human Made: https://hmn.md/ Focused on Fit: https://focusedonfit.com/ Aesop Story Engine: http://aesopstoryengine.com/
  • 12.
    Other Uses forWP API Plugin Development Connecting to Front-end Javascript
  • 13.