Closed bbelderbos closed 1 year ago
First check was the endpoint docs btw: https://www.globalgiving.org/api/methods/get-themes/
When I saw this I knew it should be possible:
Btw Content-Type might also work: https://www.globalgiving.org/api/how-to-use/conventions/ but headers = {'Content-Type': 'application/json'}
by itself did not work for me!
(Pdb) response.json()
*** requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Done here: https://github.com/vnoelifant/charity-finder/pull/7/files - also removed xml2dict as dependency.
XML argh haha, you definitely want JSON
Got it working with this change:
If Google and found the tutorial: https://www.globalgiving.org/api/how-to-use/tutorial/
Then followed this: