bunq / sdk_php

PHP SDK for bunq API
MIT License
84 stars 54 forks source link

User::get returns empty object? #51

Closed DennisSnijder closed 6 years ago

DennisSnijder commented 6 years ago

When I try to use the User::get function a User object will return but its completely empty. image

I did some further debugging and it seems like the Response body is completely empty (The status code is still 200 😟 )

Im using the Sandbox Environment and the request url I'm trying to call is sandbox.public.api.bunq.com/v1/user/3427

DennisSnijder commented 6 years ago

When I try to do the UserCompany::get it works perfectly fine 😮

OGKevin commented 6 years ago

Steps to reproduce:

  1. Make a GET call via the User endpoint.

What should happen:

  1. The response is parsed correctly into its data models.

What happens:

  1. The response is not parsed correctly and therefore returns a bunch off nulls

Extra info:

DennisSnijder commented 6 years ago

@OGKevin Thanks! 😄

dnl-blkv commented 6 years ago

@DennisSnijder thank you for reporting! @OGKevin thank you for the issue!

This bug will be fixed in the upcoming release :)

DennisSnijder commented 6 years ago

@dnl-blkv Awesome! thanks 😄

In the meantime I made a little cheapfix to solve the problem for now 😝 https://github.com/DennisSnijder/BunqWeb/blob/master/src/BunqWeb/Repository/UserRepository.php#L39