How to install Shopify Rest Client

Danielnz
Excursionist
29 0 10
 

I'm on a shared hosting environment and am setting up an app that will send fulfillment details back to Shopify.

I've gotten quite far but when I run my script I get this error:

PHP Fatal error: Uncaught Error: Class 'Shopify\Clients\Rest' not found in...

I can't figure out how/where to include this class. I tried running composer require shopify/shopify-api from SSH.


On a related note, I also use the following URL to fetch order details:

https://xxx:xxx@xxx.myshopify.com/admin/api/2021-07/orders.json?status=any&limit=1&since_id=xxx

This works great, and I'm wondering if I can use this same URL method to send fulfillment details?

Reply 1 (1)
Danielnz
Excursionist
29 0 10

Have sorted this, but can't find where to delete my post.