Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tcd/shopify_util
🛒 Useful interactions with Shopify
https://github.com/tcd/shopify_util
Last synced: 5 days ago
JSON representation
🛒 Useful interactions with Shopify
- Host: GitHub
- URL: https://github.com/tcd/shopify_util
- Owner: tcd
- License: mit
- Created: 2020-01-10T22:48:48.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-20T21:44:58.000Z (almost 2 years ago)
- Last Synced: 2023-03-03T11:34:48.630Z (over 1 year ago)
- Language: Ruby
- Size: 39.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ShopifyUtil
![Shopify API Version](https://img.shields.io/badge/Shopify_API-2019--10-brightgreen.svg)
[![Build Status](https://travis-ci.org/tcd/shopify_util.svg?branch=master)](https://travis-ci.org/tcd/shopify_util)[![Documentation](http://img.shields.io/badge/docs-rubydoc.org-blue.svg)](https://rubydoc.org/github/tcd/shopify_util/master)
## About
> **CAUTION** this gem contains code that can remove all data from a Shopify store. Make sure you look at code before you call it.
Useful interactions with Shopify using the [shopify_api gem](https://github.com/Shopify/shopify_api).
## Installation
```ruby
gem 'shopify_util', '~> 0.1.0'
```## Usage
### Configuration
#### With Rails
```ruby
# config/initializers/shopify_util.rbShopifyUtil.configure do |config|
# If you're using encrypted credentials with multiple environments.
vars = Rails.application.credentials[Rails.env.to_sym][:shopify]
config.shop_name = vars[:shop_name] # https://{shop_name}.myshopify.com
config.api_key = vars[:api_key] # API key
config.api_password = vars[:api_password] # API password
config.api_version = vars[:api_version] # Shopify API version
end
```## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/tcd/shopify_util.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
---
- https://guides.rubygems.org/name-your-gem/
- https://guides.rubygems.org/patterns/
- https://github.com/github/graphql-client/issues/216
- https://medium.com/@connorstack/understanding-ruby-load-require-gems-bundler-and-rails-autoloading-from-the-bottom-up-3b422902ca0