Comments (9)
+1
from shopify-api-php.
This morning I've seen that buried in your documentations here on Github (Versus not shown in any example on the API reference) is that this is targeted at Partner Apps and not consuming the API as a private app despite that being what is shown on the API reference pages.
As it wouldn't have a app key or secret you can't initialise and this can't be used.
from shopify-api-php.
Hi @Chutney, in order to make any requests to the Admin API you'll need to call Context::initialize
, even if you're using a private app. You can see all of the parameters at https://github.com/Shopify/shopify-php-api/blob/main/docs/getting_started.md, and you'll need to set:
apiKey
: your private app's API keyapiSecretKey
: your private app's passwordisPrivateApp
: true
You can see your private app's settings in your Admin:
- Go to
Apps
- Click on
Manage private apps
under the app list - Click on your app's name
- Your app's details will be under the Admin API section, as
API key
andpassword
I'll update the documentation to make it easier to see how to use the api key and password for private apps, thank you for raising this!
from shopify-api-php.
Yes, this is quite a major problem for what seems to be the official Shopify Library, and I'd like to request updated documentation as well.
The getting started page doesn't mention private app set up at all.
It seems to imply that there's a long list of parameters to pass as an array to the initialize method, but then the example shows them as arguments instead of parameters. It is not clear which to make. Normally initialize methods take arrays, but this seems not to.
The documentation implies that a session manager object is needed to connect to a private app, using oAuth. In fact, rest calls can be made with normal token/url for private apps. This could be made clearer.
from shopify-api-php.
Are there any updates regarding this issue?
from shopify-api-php.
This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days.
from shopify-api-php.
We are closing this issue because it has been inactive for a few months.
This probably means that it is not reproducible or it has been fixed in a newer version.
If it’s an enhancement and hasn’t been taken on since it was submitted, then it seems other issues have taken priority.
If you still encounter this issue with the latest stable version, please reopen using the issue template. You can also contribute directly by submitting a pull request– see the CONTRIBUTING.md file for guidelines
Thank you!
from shopify-api-php.
I have the same problem
from shopify-api-php.
hey guys,
Call the Context::initialize static function, you will need KEY, SECRET, SCOPES, SHOP NAME and a FileStorageSession.
The first 3 you get from the dev app created on your shopify dashboard.
As example
Context::initialize( getenv('SHOP_APP_KEY'), getenv('SHOP_APP_SECRET'), 'read_customers, read_discounts, read_discovery, read_draft_orders, read_assigned_fulfillment_orders, read_merchant_managed_fulfillment_orders, read_order_edits, read_orders, write_orders, read_third_party_fulfillment_orders, read_order_submission_rules', getenv('SHOP_APP_NAME'), new FileSessionStorage('/tmp/php_sessions') );
Run the initialize before your Rest api calls.
from shopify-api-php.
Related Issues (20)
- A new release of the Shopify API is due soon HOT 2
- Maximum Request Limit Exceeds error. HOT 2
- Add support for Shopify API version 2024-01 HOT 2
- How do I upload a return label to a return enquiry? HOT 2
- Not support psr/http-message :^2.0 HOT 3
- PAckage abandoned? HOT 10
- A new release of the Shopify API is due soon HOT 2
- shopify REST Admin API Response header doesn't includes a URL("link") for the next page of results HOT 1
- A new release of the Shopify API occurred HOT 2
- Could not find the current session id in the cookies - Error still happening HOT 2
- Add missing @throws tag to DocBlocks HOT 2
- Unable to Access My shopify app UI in admin side using Docker. HOT 2
- cannot get response as the documentations HOT 2
- The Registry::process always fails for webhooks sent by Shopify
- Token Exchange support HOT 2
- Exception stacktrace goes missing when the processing of a webhook catches it HOT 3
- Utils::sanitizeShopDomain is not utilizing the custom $myShopifyDomain parameter HOT 3
- Complete example in documentation? HOT 2
- A new release of the Shopify API is due soon
- Add a method to retrieve the last raw response HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shopify-api-php.