Skip to content

Commit

Permalink
Add option to use api_key or access_token in config
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyyid committed Oct 12, 2021
1 parent fca8ebb commit 3f238d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name="tap-shopify",
version="1.4.0",
version="1.4.1",
description="Singer.io tap for extracting Shopify data",
author="Stitch",
url="http://github.com/singer-io/tap-shopify",
Expand Down
4 changes: 2 additions & 2 deletions tap_shopify/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
from tap_shopify.exceptions import ShopifyError
import tap_shopify.streams # Load stream objects into Context

REQUIRED_CONFIG_KEYS = ["shop", "api_key"]
REQUIRED_CONFIG_KEYS = ["shop"]
LOGGER = singer.get_logger()
SDC_KEYS = {'id': 'integer', 'name': 'string', 'myshopify_domain': 'string'}

def initialize_shopify_client():
api_key = Context.config['api_key']
api_key = Context.config.get('access_token', Context.config.get("api_key"))
shop = Context.config['shop']
version = '2021-04'
session = shopify.Session(shop, version, api_key)
Expand Down

0 comments on commit 3f238d0

Please sign in to comment.