-
Notifications
You must be signed in to change notification settings - Fork 200
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
Json output #22
Comments
Hi @bertjuuhh, Thank you :) You can assign the new object to a variable by using Is this enough of the json you need? If not, please let me know what exactly you need from the raw json from Exact. |
Hi @stephangroen, Thats it!! Regards |
Great! |
Hi @stephangroen, is the same trick supposed to work for a the get function as well? regards, |
You can always use json() method on an object that extends the Model (so all entities support it). |
Alright, maybe i'm using it wrong then. Because if I use it like this : I get the error : Call to a member function json() on a non-object. I use it the exact same way with the save function. |
It seems you are not getting a valid result from |
Yeah i have results, i checked it on another function aswell. The same error as result. I get result now via another way, but thats timeconsuming. |
Whoops, I see the problem now. Since you are doing a get call (retrieve all vatcodes), you will get an array of VatCode objects. So $result[0]->json(); will give a JSON representation of the first object in the array. |
Ah, that explain's it, thank you :) |
Hi,
I'm using your library for a while now and i really like it. But i have a question about the output of a save action.
If i make a save action i get output that is protected so i can't really use it.
Is there a way to just get the json output from exact so i can use that for more actions?
regards,
Egbert
Ps, i wrote this in english but i am dutch, so if its more convenient to answer in dutch thats possible ;)
The text was updated successfully, but these errors were encountered: