Jordan-Prescott / odins_spear

Python library for Odin's API to build and manage Broadworks installations.
https://docs.jordan-prescott.com/odins_spear
MIT License
6 stars 1 forks source link

56 modify the way parameters are sent to the api so the values are html encoded #61

Closed Jordan-Prescott closed 1 month ago

Jordan-Prescott commented 1 month ago

Parameters where being tacked onto a f string instead of using the params parameter in the requests module. This would cause issues when parameter values had special characters in them especially '&' as this would cause the server to treat as another parameter.

A params dict has been introduced to each method that needs it and Requester to pass to requests module which will correctly configure this.

Additonal changes added are below: