Comments (15)
Solved in v5.0.0
from basic-shopify-api.
Hi sorry to bother again, I tried it with the new code and I still don't seem to get the location header, it's not returned in the response again. Am I missing a step?
from basic-shopify-api.
It does a complete redirect and gets the code for you, no location header will exist at the point. Its following base Guzzle config.
from basic-shopify-api.
from basic-shopify-api.
No since Guzzle default redirects, and with the new fix to adjust that redirect URL, it will now properly work.
It will simply split out the discount code.
If it does not be found, you will see this: https://imgur.com/a/zwVkqX9
from basic-shopify-api.
from basic-shopify-api.
When it doesn't find the code it returns exactly what you said which is "+"errors": "Not Found""
However when I try to get an existing code accessing the body return null.
I am not sure what the issue is in my case, I updated the BasicShopifyAPI.php file so I am not sure if there is something I am missing here.
from basic-shopify-api.
from basic-shopify-api.
$shop->api()->request('GET' , '/admin/discount_codes/lookup.json?code=example')->body;
What I mean is if a discount code actually exists on the store and I do the lookup it return null on the body. If that discount code does not exist on that store then I get the errors": "Not Found"" as the body which is great.
The issue is when it should return the the discount code, the price rule and then rest like your example but in my case it doesn't.
from basic-shopify-api.
from basic-shopify-api.
Tried that as well, it still returns null for the body.
from basic-shopify-api.
Found the issue! Requires some rework... reopening.
from basic-shopify-api.
v5.1.0 should have this all fixed up now.
from basic-shopify-api.
from basic-shopify-api.
Good to hear!
from basic-shopify-api.
Related Issues (20)
- REST API Rate Limit Issues - handleRest() function - AWS Lambda HOT 4
- RateLimiter blowing up after change HOT 6
- Inconsistent Error Handling in use of Body in Response HOT 1
- Unable to set header on graphQL for Retrieving Storefront API translations HOT 1
- It would be useful to be able to change the graphql endpoint URL
- Custom Store Implementations HOT 1
- Problem with GraphQL and multiple mutations HOT 1
- getSession
- PHP 8.1 Warnings HOT 1
- Object of type Osiset\BasicShopifyAPI\BasicShopifyAPI is not callable
- cURL Timeout HOT 1
- v10.0.6 throws errors in PHP 7.4 HOT 2
- Return value of Osiset\BasicShopifyAPI\ResponseAccess::offsetGet() must be an instance of Osiset\BasicShopifyAPI\mixed, string returned HOT 3
- Resource Route not working HOT 1
- Sessions don't have a session ID HOT 1
- How to update webhook URL's for old stores? HOT 1
- Rest api upload image HOT 1
- Call to undefined function env() HOT 6
- Query is not working
- not finding classes
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 basic-shopify-api.