SN Trouble logging in via API

Joined
Feb 20, 2019
Messages
40
Location
Decatur, GA
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

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."]}
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!
 
Back
Top