The is available here for install from the Shopify App Store.
API Helper simplifies AJAX email sign ups and discount code creation for Shopify. The app provides a secure frontend API that provides access to important functions from Klaviyo, Mailchimp, Omnisend and Shopify that are not accessible due to CORS policies inside of Shopify themes. Jump to docs
API Helper provides a simple callback and standard response structure that makes life so much easier. API Helper also allows for plug-and-play or 'hot swap' customer sign-ups between Klaviyo, Mailchimp, Omnisend, and Shopify.
There are no scripts required to use the app. After enabling your first app module inside of the app, our js file from the API Helper app is injected into your theme at the end of page load. This file less than 2K. The file is removed immediately when the app's modules are disabled or the app is uninstalled.
- Enable your desired modules in the app admin on Shopify
- Save your API keys (if applicable)
- Review the docs for the modules below. Just copy/paste the example code into your theme and you are ready to go. You can also paste the code directly into your browser console for testing.
- Follow our newsletter subscription screencast here on Youtube.
var options = {
vendor: 'klaviyo-subscribe',
action: 'subscribe',
email: 'foo@google.co',
list_id: 'jWks87j',
signup_location: 'footer'
}
wb_apihelper(options, function(err, res){
if ( err ) return alert(res.message)
console.log(res)
})
Each module includes all action
components shown below.