wp middleware - wordcamp brisbane 2018 · 2. enable the cloud vision api from your gcp project. 3....
TRANSCRIPT
![Page 1: WP Middleware - WordCamp Brisbane 2018 · 2. Enable the Cloud Vision API from your GCP project. 3. Follow the instructions to create an API key for your GCP project. General Settings](https://reader033.vdocuments.mx/reader033/viewer/2022042219/5ec5d32b1e3bfa1fe6724d7c/html5/thumbnails/1.jpg)
WP MiddlewareBy Rheinard Korf
![Page 2: WP Middleware - WordCamp Brisbane 2018 · 2. Enable the Cloud Vision API from your GCP project. 3. Follow the instructions to create an API key for your GCP project. General Settings](https://reader033.vdocuments.mx/reader033/viewer/2022042219/5ec5d32b1e3bfa1fe6724d7c/html5/thumbnails/2.jpg)
Rheinard Korf
Father of three.
Husband of one.
Coder since twelve.
Educator for ten years.
Moodle developer for two.
Drupal developer for two.
WordPress developer for five.
Prefer to code in Go.
See the world in APIs.
Learner for life.
![Page 3: WP Middleware - WordCamp Brisbane 2018 · 2. Enable the Cloud Vision API from your GCP project. 3. Follow the instructions to create an API key for your GCP project. General Settings](https://reader033.vdocuments.mx/reader033/viewer/2022042219/5ec5d32b1e3bfa1fe6724d7c/html5/thumbnails/3.jpg)
![Page 4: WP Middleware - WordCamp Brisbane 2018 · 2. Enable the Cloud Vision API from your GCP project. 3. Follow the instructions to create an API key for your GCP project. General Settings](https://reader033.vdocuments.mx/reader033/viewer/2022042219/5ec5d32b1e3bfa1fe6724d7c/html5/thumbnails/4.jpg)
Problem
Outdated SDKsPHP Compatibility
No PHP SDKSlow APIs
CORSReinventing the Wheel each time!!!
![Page 5: WP Middleware - WordCamp Brisbane 2018 · 2. Enable the Cloud Vision API from your GCP project. 3. Follow the instructions to create an API key for your GCP project. General Settings](https://reader033.vdocuments.mx/reader033/viewer/2022042219/5ec5d32b1e3bfa1fe6724d7c/html5/thumbnails/5.jpg)
MID
DLE
WA
RE
PRO
XY
Powered by WP REST API
Shape incoming requests
Shape outgoing responses
Trusted backend, no CORS!
Improve performance (Cache!)
(Optionally) Import as CPT
Extend existing APIs
Granular endpoint control
Unified approach to APIs… The WordPress Way
![Page 6: WP Middleware - WordCamp Brisbane 2018 · 2. Enable the Cloud Vision API from your GCP project. 3. Follow the instructions to create an API key for your GCP project. General Settings](https://reader033.vdocuments.mx/reader033/viewer/2022042219/5ec5d32b1e3bfa1fe6724d7c/html5/thumbnails/6.jpg)
Example
![Page 7: WP Middleware - WordCamp Brisbane 2018 · 2. Enable the Cloud Vision API from your GCP project. 3. Follow the instructions to create an API key for your GCP project. General Settings](https://reader033.vdocuments.mx/reader033/viewer/2022042219/5ec5d32b1e3bfa1fe6724d7c/html5/thumbnails/7.jpg)
Example - Plugin Deactivated
![Page 8: WP Middleware - WordCamp Brisbane 2018 · 2. Enable the Cloud Vision API from your GCP project. 3. Follow the instructions to create an API key for your GCP project. General Settings](https://reader033.vdocuments.mx/reader033/viewer/2022042219/5ec5d32b1e3bfa1fe6724d7c/html5/thumbnails/8.jpg)
Example - Activated and API Key entered.
![Page 9: WP Middleware - WordCamp Brisbane 2018 · 2. Enable the Cloud Vision API from your GCP project. 3. Follow the instructions to create an API key for your GCP project. General Settings](https://reader033.vdocuments.mx/reader033/viewer/2022042219/5ec5d32b1e3bfa1fe6724d7c/html5/thumbnails/9.jpg)
Example - Labels by Google Cloud Vision
![Page 10: WP Middleware - WordCamp Brisbane 2018 · 2. Enable the Cloud Vision API from your GCP project. 3. Follow the instructions to create an API key for your GCP project. General Settings](https://reader033.vdocuments.mx/reader033/viewer/2022042219/5ec5d32b1e3bfa1fe6724d7c/html5/thumbnails/10.jpg)
Live Demo?
![Page 11: WP Middleware - WordCamp Brisbane 2018 · 2. Enable the Cloud Vision API from your GCP project. 3. Follow the instructions to create an API key for your GCP project. General Settings](https://reader033.vdocuments.mx/reader033/viewer/2022042219/5ec5d32b1e3bfa1fe6724d7c/html5/thumbnails/11.jpg)
Questions / Feedback
![Page 12: WP Middleware - WordCamp Brisbane 2018 · 2. Enable the Cloud Vision API from your GCP project. 3. Follow the instructions to create an API key for your GCP project. General Settings](https://reader033.vdocuments.mx/reader033/viewer/2022042219/5ec5d32b1e3bfa1fe6724d7c/html5/thumbnails/12.jpg)
Middleware Proof of Concepthttps://github.com/rheinardkorf
/wp-middleware
Auto Label reference Implementationhttps://github.com/rheinardkorf
/wp-image-auto-label