leuchte / number26

Simple PHP wrapper for the unofficial number26.eu api
MIT License
10 stars 1 forks source link

getSpaces() no longer working #15

Open lanort opened 2 years ago

lanort commented 2 years ago

$spaces = $n26->getSpaces(); does not work but returns

{
     +"status": 404,
     +"userMessage": {#4630
       +"title": "Error",
       +"detail": "Not found",
     },
     +"title": "Error",
     +"message": "Not found",
 }

This is probably related to a change in the API. See the news stating:

"May 17, 2022: New Spaces endpoint /api/v3/spaces is live in the AIS Fallback Interface; old Spaces endpoint /api/spaces will be disabled from Aug 17th, 2022.":

Simply changing the url in the getSpaces function to '/api/v3/spaces/' does not work either. It responds with

{
     +"title": "Error",
     +"message": "Error",
}
AlexH-HankIT commented 1 year ago

Could you get it to work somehow? I tried different versions of the endpoint but couldnt get any data back.

lanort commented 1 year ago

@AlexH269 unfortunately not. I also tried multiple variations. Looks like only with the new api, but I have no clue if that is just psd2 or how to access that...

AlexH-HankIT commented 1 year ago

I always used this documentation: https://docs.n26.com/cs/N26-PSD2-FallbackAPI-PISP-access-documentation.pdf

It sadly never mentioned the spaces endpoint in the first place. I guess that feature was just dropped.

leuchte commented 1 year ago

Hi and sorry for the late response.

as @AlexH269 mentioned, it seems that this feature was removed. I don't see a way to get spaces with just another endpoint and the function should be removed from this API.

lanort commented 1 year ago

I switched now to Nordigen (Free Bank API for my needs) https://github.com/nordigen/nordigen-php. Gets me the spaces and transactions (PSD2 required, so not as easy as just username and password + 2FA, but maybe easier in the long run). Will see..

AlexH-HankIT commented 1 year ago

I was considering that too, do you also get the current balance of the spaces and your main account?

lanort commented 1 year ago

Yes. Both.