Skip to main content

create pyramid app without worrying about Shopify OAuth

Project description

# pyramid_shopify_oauth

### in your .ini file, add the following
shopify.oauth.login_url = /oauth_login # The entry point of your shopify app, defaults to shopify_oauth_login_url (different from App Home)
shopify.oauth.redirect_url = /oauth_redirect # The redirect app url for OAuth, defaults to shopify_oauth_redirect_url
shopify.oauth.scope = read_products,read_orders # Permission scope you need from the shop (comma seperated)
shopify.oauth.app_home = / # Your app home url
shopify.oauth.api_key = ************* # Your api key
shopify.oauth.secret = ************* # Your api secret

### in your app __init__ file, add the following

### after oauth login, you can get shopify instance from request
shopify = request.shopify
if shopify is None:
# the user is not signed in

# you can access shopify API now

### To make oauth work, make sure you have pre-configured a session factory, for example
from pyramid_beaker import session_factory_from_settings

session_factory = session_factory_from_settings(settings)

#Release Notes

- Initial release

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyramid_shopify_oauth, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size pyramid_shopify_oauth-0.0.1.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page