API Login with C#

Hi,
I’m trying to use the API on a MAX Transit Mini. I need to retrieve some location and configuration data.

My program is a C# client. When I make a call to “/api/login”, I get back this response:

{
“stat”: “ok”,
“response”: {
“permission”: {
“GET”: 0,
“POST”: 0
}
}
}

The examples show that I should get back permissions for GET/POST of “1”. With these permissions, I can’t retrieve any data. Is there something I need to set on the router or on the user account to have permissions to use the API?

If this is instead related to how I am calling the API, are there any sample C# programs posted anywhere?

Thanks.

I found my issue. In case anyone else runs into this, triple-check the JSON encoded data you send in the login post. It should look like:

{
“username”: “someUser”,
“password”: “somePassword”
}

I had a typo in this JSON message which returned the 0/0 permissions.