rienafairefr / pynYNAB

a python client for the new YNAB
MIT License
138 stars 12 forks source link

Writes #1

Closed scottrobertson closed 8 years ago

scottrobertson commented 8 years ago

Out of interest, have you worked out how to write to the API?

rienafairefr commented 8 years ago

Unfortunately the trial ended for me so can't test it anymore. AFAIK, the trick is in the "knowledge" parameters. Basically the server sends you data with a certain knowledge "timestamp", to write you respond with new updated objects, giving the knowledge you had previously and saying you have new knowledge, something like that in theory, first tests were unsuccesfull, but the idea is probably something along those lines.

scottrobertson commented 8 years ago

Ahhh interesting. Thank you very much. I shall have a play. I wish they would just release an API!

rienafairefr commented 8 years ago

I just pushed a version that permits write. I can successfully write a single transaction. They have an API, just a private one :-)

scottrobertson commented 8 years ago

Nice! Now i can integrate my getmondo.co.uk card :D

rienafairefr commented 8 years ago

Don't freak out the ynab servers with too much requests though ^^

scottrobertson commented 8 years ago

1000000 requests sent!

But yeah, that is fine. I may port this to ruby, I hate python (sorry)