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

Call to a member function isSuccessful() on boolean #1

Open
warmwhisky opened this issue Jan 17, 2021 · 2 comments
Open

Call to a member function isSuccessful() on boolean #1

warmwhisky opened this issue Jan 17, 2021 · 2 comments

Comments

@warmwhisky
Copy link

warmwhisky commented Jan 17, 2021

Hi I am new to this API. I quickly setup up your example for international delivery without duty but I am getting Call to a member function isSuccessful() on boolean

Any ideas?

I am using it with PHP 7.2 with Laravel 7.11.0 on Windows 10 Xampp.

Edit:
I should also say that my endpooint from DHL is https://express.api.dhl.com/mydhlapi/test/ instead of https://wsbexpress.dhl.com/rest/sndpt/ and the docs refers to shipment instead of ShipmentRequest as in your vendor file https://github.com/alex-LE/dhl-express-php-sdk/blob/master/src/ShipmentRequest.php

I have tried both yours and my endpoint with both shipment and ShipmentRequest

with your endpoint

https://wsbexpress.dhl.com/rest/sndpt/ShipmentRequest

Array ( [0] => The Shipper Account is invalid. [1] => Process failure occurred. Process ID associated for that transaction (201012585) )
null

with my endpoint

https://express.api.dhl.com/mydhlapi/test/ShipmentRequest

Call to a member function isSuccessful() on boolean

with my endpoint

https://express.api.dhl.com/mydhlapi/test/shipments
from here https://developer.dhl.com/api-reference/dhl-express-mydhl-api#reference-docs-section%create-shipment

Call to a member function isSuccessful() on boolean

@alex-LE
Copy link
Owner

alex-LE commented Jan 21, 2021

Hey,

i left the company i build this for a few months ago. Unfortunately i don't have any environment to test anything.
I build this SDK for v1.1 of the MYDHL API.
Is there a newer version? As you url is different, it looks like they changed something.

When you use my endpoint, the credentials seems to be wrong.

@warmwhisky
Copy link
Author

warmwhisky commented Jan 22, 2021

I'm not sure if there is a new version as I have only just been given access to the api. It's still in private invitation only. I was sent a copy of their own SDK but alas it was a year old! I've tried to get access to the repo from my representitive, but not had any luck so far. I guess until is becomes public we'll have to code it our selves.

Edit: I just checked the version and we are apparently still on DHL EXPRESS - MYDHL API v 1.1.0

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

2 participants