Talk:Use a REST API: Difference between revisions

→‎Changes: Added some comments in response to Rdm.
(→‎Changes: Added some comments in response to Rdm.)
Line 48:
 
: Does anyone see a way of fixing this up to be closer to what a rosettacode task needs to be? (With a fairly complete description of the task in the task description. And, ideally, stable enough that it won't need to vanish because the service gets taken down...) --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 22:43, 24 January 2020 (UTC)
 
::I don't think there is much one can do to turn this into a more palatable task. The truth is that it's been 'iffy' from the start and the fact that no one has touched it for 5 years bears that out.
 
::The only reason I looked at it myself is because it was showing up as a Go task 'needing attention' so I felt I should try and do something. My original intention had been to try and augment dchapes' original solution with the missing functionality. However, when I realized that you needed to register to obtain an API key and, worse still, some services required a paid subscription I concluded that this wasn't going to be viable as I wouldn't be able to test the additional code and might even inadvertently break the original.
 
::So I decided instead to add a second solution based on a small open source client library, written in Go, which I found on github. This enabled me to do something which I could be reasonably sure would work - even if I couldn't test it - and without spending a lot of time on it.
 
::Incidentally, I'd noticed that the version 2 API was deprecated, as there's now a version 3, though I'd expect that the former should still work as otherwise they'd have removed it from the documentation altogether. The chances are that the basics haven't changed much between versions in any case.
 
::I suppose one could ask people to update their solutions to use version 3 but I doubt whether anyone will bother or that it will attract any new solutions given what you have to do to use the API in the first place. If anyone needs to use the API for professional reasons, then the existing solutions might at least give them a start for migrating to the latest version. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 09:15, 25 January 2020 (UTC)
9,485

edits