Open danny-ng opened 6 years ago
I am facing the same issue and I tried this solution but now getting 403 Forbidden Access
Same problem here I just passed the data needed in the url. For example orders.json?limit=5&page=1 as opposed to passing limit = 5 and page = 5 in DATA. I attempted to put in DATA to keep the code as it was but it didn't work.
The example given in README,
doesn't work as it throws this error,
I suspect the reason is DATA array is being set to
CURLOPT_POSTFIELDS
(in api.php) which doesn't seem to be working for GET requests. Updating to this fixes it,Will probably need to rewrite the logic for GET requests where the filtering parameters is appended to the URL endpoint instead of using
CURLOPT_POSTFIELDS
.