API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

PHP example gives Notice: Undefined property: stdClass::$DebtorData

0

Im trying to pull some data from my E-conomic demo account via the provided PHP example:
https://github.com/e-conomic/eco-api-ex/blob/master/examples/php/list_debtors.php

However i just get this: LN 130: Notice: Undefined property: stdClass::$DebtorData

LN 162: Warning: Invalid argument supplied for foreach()

 

Tried som other examples i found on the net with same result.
What am i doing wrong?

created Dec 20, 2014 by nobrainerweb
100% Accept Rate
Q 1 A 1 C 0

1 Answer

0
 
Best answer
Ok I'm now able to get data from the API, for some reason the demo is not working when there is only one Debtor.

Added another and now data is returned correctly. (Guess it has to do with the formatting of the $debtorHandles array.
answered Dec 27, 2014 by nobrainerweb
selected Jan 5, 2015 by olej
Visma e-conomic A/S
...