Skip to content

Commit 08acdab

Browse files
authored
Merge branch 'master' into patch-1
2 parents 65b2408 + d3626cf commit 08acdab

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ pip install --upgrade ShopifyAPI
4646
1. We then need to supply these keys to the Shopify Session Class so that it knows how to authenticate.
4747

4848
```python
49+
import shopify
4950
shopify.Session.setup(api_key=API_KEY, secret=API_SECRET)
5051
```
5152
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:
@@ -160,6 +161,12 @@ product.destroy()
160161
# Delete the resource from the remote server (i.e. Shopify)
161162
```
162163

164+
Here is another example to retrieve a list of open orders using certain parameters:
165+
166+
```python
167+
new_orders = shopify.Order.find(status="open", limit="50")
168+
```
169+
163170
### Prefix options
164171

165172
Some resources such as `Fulfillment` are prefixed by a parent resource in the Shopify API (e.g. `orders/450789469/fulfillments/255858046`). In order to interact with these resources, you must specify the identifier of the parent resource in your request.

0 commit comments

Comments
 (0)