Skip to content
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

Error: apiContext has not been loaded. #128

Closed
jimkaler opened this issue Apr 6, 2018 · 4 comments
Closed

Error: apiContext has not been loaded. #128

jimkaler opened this issue Apr 6, 2018 · 4 comments

Comments

@jimkaler
Copy link

jimkaler commented Apr 6, 2018

By following this example, when I calling data from bunq.conf file and try to get user. I am getting error, "apiContext has not been loaded.", I dont know what I am doing wrong here.
Can anyone help me out please?
@OGKevin

@jimkaler
Copy link
Author

jimkaler commented Apr 6, 2018

here is code and error:
error

code

@mbernson
Copy link
Contributor

mbernson commented Apr 6, 2018

Hello @jagdishkaler,

You're probably getting this error because you used the sample code from the SDK, which is outdated at this moment. 🤦‍♂️

You can fix it by adding the following line right after you've set up your ApiContext:

BunqContext::loadApiContext($apiContext);

To get sample code that does work, try our new API tinker project. It only takes one command to install and set up: https://www.bunq.com/developer

@jimkaler
Copy link
Author

jimkaler commented Apr 6, 2018

Hey @mbernson thanks for reply,
My i get full code example ? Thanks.

@jimkaler
Copy link
Author

jimkaler commented Apr 6, 2018

Thanks @mbernson Sir,
It works for me.

Thanks alot.

@OGKevin OGKevin closed this as completed Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants