Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

No Sample Get And POST Method Example To Access Shopify API #48

Closed
ssinghtorinit opened this issue Jun 21, 2018 · 2 comments
Closed

No Sample Get And POST Method Example To Access Shopify API #48

ssinghtorinit opened this issue Jun 21, 2018 · 2 comments

Comments

@ssinghtorinit
Copy link

Hello, I Have Installed The App And Now Want To Add Few Products From App API.
I Am unable TO Find POST Method How Exactly It Will Be Done Both POST And Get Please Add At least 1 Example of Both.

Thanks

@brianakidd
Copy link

@ssinghtorinit,

Please see Accessing API for the current shop in the Usage section of the Wiki.

In the example, $shop->api() provides a GuzzleHttp\Client that can be used to interact with the shop's API, see here.

You can then refer to the Shopify documentation for the Product API to determine how to structure your request.

@gnikyt
Copy link
Owner

gnikyt commented Jun 21, 2018

Yup, as @brianakidd said, the API method returns an instance of this package, which internally uses Guzzle.
You're able to make requests as REST or GraphQL.

I've updated the doc with a little example to make it more clear :) will close unless you have an issue feel free to open!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants