Skip to content

adepatie/vern-shopify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

####Copyright Notice

VERN is copyright 2014 uh-sem-blee, Co. Built by typefoo.

####License

You may not use, alter, or redistribute this code without permission from uh-sem-blee, Co.

VERN - Shopify OAuth Authentication

Handles basic OAuth authentication routines for Shopify

New VERN Controllers

  • ShopifyController
$vern.controllers.shopify = new $vern.controllers.ShopifyController($vern).init();

Configuration Requirements

      shopify_shop_name: '<SHOP_NAME>',
      shopify_client_id: '<CLIENT_ID>',
      shopify_client_secret: '<CLIENT_SECRET>',
      shopify_redirect: '<HOST_NAME>',

Usage

var vern = require('vern-core');
new vern().then(function($vern) {
  $vern = require('vern-shopify')($vern);
});

Authentication Methods

####getLoginURL

  • Retrieves a Shopify Login URL which returns an authorization code
method: 'GET',
path: '/shopify/login_url'

####postAuthorizationCode

  • Takes the authorization code and returns with an access_token
method: 'POST',
path: '/shopify/authorization_code'

####registerShopifyUser

  • Registers a new Shopify user and returns an AuthenticationKey
method: 'POST',
path: 'shopify/register'

####shopifyAction

  • All Shopify API HTTP requests. ['get', 'post', 'put', 'delete'] Requires authentication
method: 'post',
path: '/shopify/action'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published