29.09.2020, 09:50
I'm trying to obtain the token of my cam, but I'm not success.
This is the help that I've found..
I'm not able to build the POST sentence with username payload.
to get your token for the URL above, you need to post here:
http://192.168.AAA.BBB/cgi-bin/api.cgi?cmd=Login&token=null
with this payload (substituted in your username and password)
[{"cmd":"Login","action":0,"param":{"User":{"userName":"admin","password":"abcdefg"}}}]
the response that comes back has the token in the name field
[
{
"cmd" : "Login",
"code" : 0,
"value" : {
"Token" : {
"leaseTime" : 3600,
"name" : "75a35d0a5a30680"
}
}
}
]
Does anyone can help me?
This is the help that I've found..
I'm not able to build the POST sentence with username payload.
to get your token for the URL above, you need to post here:
http://192.168.AAA.BBB/cgi-bin/api.cgi?cmd=Login&token=null
with this payload (substituted in your username and password)
[{"cmd":"Login","action":0,"param":{"User":{"userName":"admin","password":"abcdefg"}}}]
the response that comes back has the token in the name field
[
{
"cmd" : "Login",
"code" : 0,
"value" : {
"Token" : {
"leaseTime" : 3600,
"name" : "75a35d0a5a30680"
}
}
}
]
Does anyone can help me?