KartikTalwar / Duolingo

Unofficial Duolingo API Written in Python
MIT License
826 stars 128 forks source link

buy streak freeze function #30

Closed diogo-aos closed 8 years ago

diogo-aos commented 8 years ago

Implemented a simple function to buy a streak freeze. It returns 400 if the streak freeze is already equipped, in which case an exception is raised. Still working on a way to try to distinguish when a streak freeze is already equipped from when the request simply failed.