Skip to content

ShoppinPal/vend-oauth-example

Repository files navigation

vend-oauth-example

Gitter

setup

  1. git clone --recursive https://github.com/ShoppinPal/vend-oauth-example.git
  2. cd vend-oauth-example
  3. npm install
  4. bower install
  5. edit config/development.json and fill out your vend developer client_id and client_secret which can be found here: https://developers.vendhq.com/developer/applications
  6. cd node_modules/vend-nodejs-sdk
  7. npm install
  8. cd ../..

run

  1. Make sure that your vend developer app is registered with Redirect URI: https://<vendDomainPrefix>.localtunnel.me/token/vend
  2. grunt server --subdomain vendDomainPrefix
  3. so, if I have a vend store named: blah123.vendhq.com
  4. then I will register a Redirect URI: https://blah123.localtunnel.me/token/vend
  5. and afterwards run the sample with the command: grunt server --subdomain blah123
  6. There is some magic happening behind the scenes on your behalf for this sample: a publically accessible url is being spun up so that Vend can talk to the code running locally on your machine. That url is of the form: vendDomainPrefix.localtunnel.me because there is a good chance that nobody else is using your store's vendDomainPrefix with localtunnel ... so stick to that. If its nto working for you, try substituting with another unique word or name when launching.

contributions

You can pick and choose from the existing issues for any features you want to help add, or any bugs you want to crush. Get in touch via the chat link above if you wish to contribute and have specific questions. Otherwise, jsut fork the repo, make your changes and when you're ready, issue a pull-request for review.

About

Quickly get an oauth token to use with Vend API calls

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •