netsoft-ruidias / ha-custom-component-myedenred

myEdenred - Custom Component for Home Assistant
MIT License
8 stars 5 forks source link

Request to make it work with myEdenred BELGIUM #5

Open luckyzor opened 1 year ago

luckyzor commented 1 year ago

Hello,

Has I saw in the other issue to use this integration with Romania, you can only do different countries, with only help of the users.

I'm opening this issue to help you (it will help me too 😄 ) make this integration for MyEdenred.be

tell me what you need, thank you in advance, Kr, Ivan

netsoft-ruidias commented 1 year ago

Hello @luckyzor All the help you can give will be appreciated

Please, open a PR to submit your code

luckyzor commented 1 year ago

Hello @luckyzor All the help you can give will be appreciated

Please, open a PR to submit your code

Unfortunately I'm very new to python and I tried, but can't find a solution. In other side, I can give you my edenred account if you need, to make a Belgium version of this repo.

Thank you in advance

screenagerbe commented 1 year ago

Hi @netsoft-ruidias, another Belgian Edenred user who's interested in this integration 🤭

I've not have had the time yet to check the code in detail but I do have one question already. How and where did you get the API url's ?

API_LOGIN_URL = "https://www.myedenred.pt/edenred-customer/api/authenticate/default"
API_LIST_URL = "https://www.myedenred.pt/edenred-customer/api/protected/card/list"
API_ACCOUNTMOVEMENT_URL = "https://www.myedenred.pt/edenred-customer/api/protected/card/{}/accountmovement"

Once that's cleared I can decide if it is possible to adapt your code for the Belgian environment.

eMerzh commented 1 year ago

Belgian Eden red seems to be a bit different 🤔 those api with belgium suffix seems to hang (at least for me)

but frontend seems to be calling https://www.myedenred.be/Api/Beneficio/Balance/Balances or something with cookies verifications... maybe we can turn around that 🤔