Matthew Wann
EF0
As I indicated in another thread, I'm working on an application to send a spotter's position data to SN. However, I've hit a little snag. For some reason, I keep getting a 401 response with the message "Username not provided" as the first message. Here are my headers and payload I'm POSTing to htps://www.spotternetwork.org/login
The above is print out from my application, but I've tried this with Postman as well with the same result. Is there something I'm missing from the API? Spotter Network · Apiary
Thanks!
Code:
{'User-Agent': 'python-requests/2.21.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '33'}
username=MattCW&password=notmyrealpassword
***RESPONSE BELOW***
401
{"success":false,"errors":["Username not provided.","The username or password you entered was incorrect."]}
Thanks!