Skip to content

belkapp/apihelper-for-shopify-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Helper for Shopify docs

API Helper for Shopify logo

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.

Getting Started

  1. Enable your desired modules in the app admin on Shopify
  2. Save your API keys (if applicable)
  3. 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.
  4. Follow our newsletter subscription screencast here on Youtube.

Example Code

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)
})

API Helper for Shopify Klaviyo subscribe API Helper for Shopify generate unique discount code

Shopify Admin

API Helper for Shopify admin

Modules

Each module includes all action components shown below.

Klaviyo

Mailchimp

Omnisend

Shopify - Subscribe

Shopify - Discount

Google UTM Params

About

API Helper simplifies AJAX email sign ups and discount code creation for Shopify.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages