HTTP API: Typo in blink(1) Status JSON? Quotes issue?
atchoo78 opened this issue · 1 comments
atchoo78 commented
Hi,
From the URL http://127.0.0.1:8934/blink1,
I get the following JSON response:
{
"blink1_serialnums": [
"3f84611e"
],
"blink1_id": "08D1A6D73f84611e",
"status": "blink1 id"
}
I'm guessing that "blink1 id" is supposed to be the actual blink1 id (same as the blink1_id response) or a status code?
todbot commented
Hi! I'm unclear what you're asking about.
- The
"blink1_id"
property contains the "blink1 id" (aka "IFTTT key" in the GUI). For you, that is currently08D1A6D73f84611e
- The
"status"
property is a simple status string that indicates the API command issued or an error string. The command issued here is/blink1/id
, which/blink1
is an alias)
Also, I'm assuming you're asking this about the Blink1Control2 app's API server. If so, and you have further questions, please open up on an issue on its repo: https://github.com/todbot/blink1control2