papir.js
Model Rest API Controller
Example with WooCommerce & vuejs
@notice - Cors must be accepted for the given url if running in browser
Fetch client_key & client_secret
let woo = 'http://example.com' 'AppName'woo // Opens new window & respond with keys in console if accepted
Setup for vue
// In main.jslet woo = 'http://example.com' 'AppName' 'ck_***' 'cs_***'wooVue
Using the module with vue components
// Single instancelet ep = '/wp-json/wc/v2/products{/id}{/batch}' this$globwoocontroller epid = ep 'id'epidvalue = 344 // Get product with id 344ep // Multiple instanceslet list = eplist