DiaKEM / libre-link-up-api-client

Libre Link Up client to retrieve cgm data directly from sharing service
MIT License
142 stars 33 forks source link

inject version and switch to 4.9.0 #20

Closed marcbarry closed 2 months ago

marcbarry commented 10 months ago

Hi, I notice that in its current state this library doesn't work right now.

The version provided in the http headers to the API is fixed at 4.7.0 which is no longer accepted by the European servers.

This PR allows users of the library to set the API version to future poof around this problem and updates the README to suggest users provide version 4.9.0, which according to my testing with BURP is the value currently supplied by the LibreLinkUp app.

I'm not versed in, or familiar with writing or testing TypeScript code or working with node, so if you need extra changes to accept this PR and release a new version of the library please let me know and I'll do my best to get the PR into a mergeable state.

KriskotooBG commented 6 months ago

Would it make sense to rename the property to 'clientVersion'? Just a suggestion!

marcbarry commented 5 months ago

Thanks for the suggestion @KriskotooBG, I've made that change.