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

Can't initiate a transfer: 415 error. #13

Open
rexop opened this issue May 17, 2021 · 1 comment
Open

Can't initiate a transfer: 415 error. #13

rexop opened this issue May 17, 2021 · 1 comment

Comments

@rexop
Copy link

rexop commented May 17, 2021

Hi.

I tried out the code and I was able to login and get all transactions or the latest one via: $n26->getTransactions(['sort' => 'visibleTS', 'dir' => 'ASC', 'offset' => 0, 'limit' => 1]);

Now, I can't initiate a transfer. If I try to send a euro with $n26->makeTransfer, it just simply does nothing.
I have tried echoing the result like this below:
echo $n26->makeTransfer('1.00', '1234', 'BSABESBBXXX', 'ES**00810309730001******', 'Alexa', 'blablabla');

And the result from the N26 API endpoint was the following:
<!doctype html><html lang="en"><head><title>HTTP Status 415 – Unsupported Media Type</title><style type="text/css">h1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 415 – Unsupported Media Type</h1></body></html>

I'm not sure why I'm getting 415 errors.

@rexop rexop changed the title 415 error when sending a transfer 415 error when initiating a transfer May 17, 2021
@rexop rexop changed the title 415 error when initiating a transfer Can't initiate a transfer: 415 error. May 17, 2021
@leuchte
Copy link
Owner

leuchte commented May 21, 2021

I'm not sure why I'm getting 415 errors.

N26 expects a content type of json, just to say, that this application has to be updated. In other words, the transfer doesn't work anymore with this api.

Its safe to say, that this wrapper is now read-only; to get data from your account. To make an transfer, you have to use your app or the website.

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

2 participants