Quantcast
Channel: The Things Network - Latest posts
Viewing all articles
Browse latest Browse all 116829

Using REST API and Python to retrieve data

$
0
0

I find out that even I let away the second argument of the request function I get the 301 error.
When I set the host to thethingsnetwork.org I get 200: 'OK'.
Thanks for that!

Still when I use the '/api/v0/nodes/03FF8124' in the request argument I get 301.

More suggestions?

EDIT: I solved the problem an extra slash was needed at the end of the argument thus:

/api/v0/nodes/03FF8124/

for example:

/api/v0/nodes/03FF8124/?limit=1

Viewing all articles
Browse latest Browse all 116829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>