Skip to content

Commit 832a53d

Browse files
authored
Update README.md
1 parent bf3c555 commit 832a53d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,14 @@ pip install --upgrade ShopifyAPI
4747

4848
```python
4949
import shopify
50+
5051
shopify.Session.setup(api_key=API_KEY, secret=API_SECRET)
5152
```
5253
1. In order to access a shop's data, apps need an access token from that specific shop. We need to authenticate with that shop using OAuth, which we can start in the following way:
5354

5455
```python
5556
shop_url = "SHOP_NAME.myshopify.com"
56-
api_version = '2020-10'
57+
api_version = '2024-01'
5758
state = binascii.b2a_hex(os.urandom(15)).decode("utf-8")
5859
redirect_uri = "http://myapp.com/auth/shopify/callback"
5960
scopes = ['read_products', 'read_orders']

0 commit comments

Comments
 (0)