-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
result is not array on getAccountDetails using eparcel account number #4
Comments
are you using the api from the Auspost Business account? |
Hi @joshbmarshall thanks for replying. I am not really sure. how can I check that? ive tried to use the endpoint from postman and it works fine. |
This library uses the endpoints at digitalapi.auspost.com.au - does that match what you're using? |
this is the response from Postman, I think you are right about the austpost
|
Have you set the test mode correctly? |
can you debug up the chain, ie what is $this->getResponse() , what is coming back from Auspost? see if you can find where the 220f comes in |
hi @joshbmarshall i think it is coming from here, sorry I am not familiar with sockets |
hi @joshbmarshall in any case, do you have any idea why that 220f is showing up on the response? thanks. |
The only way I can see it in the response is if the api was sending it to you. Have you tried a different php version or platform? |
Hi Josh, Thanks for all your hard work on this library. I am seeing the same sort of behaviour but with different prefix characters - I have seen both "2001" and "399d" and then what looks like a correct response, however not the full response as it seems to be cut off. Here is my response in php (some specific details edited) => If I use ThunderClient in vscode if don't receive the prefix characters and get a full correct response. I am using PHP Version 7.4.3-4ubuntu2.19 Can I provide you any further information to help resolve this? Cheers, |
Hi folks, the code was working for me on all the versions of PHP I tested on 7.2 through to 8.2 The original code using sockets is what AusPost recommended when I wrote the library. But it's not very nice. So I just rewrote these parts to use curl and added a unit test to help with testing. Can you confirm whether this gets the library working for you? If so I'll create a new release. |
Actually have just release 1.2.0 - the code is much nicer. I'd like your feedback if it gets your issue resolved |
Hi, i tried to use an eparcel account number and it seems to add an 220F on the response. am I missing something?
Thanks,
The text was updated successfully, but these errors were encountered: