Line 4: Line 4:
 
POST /api/authenticate HTTP/1.1
 
POST /api/authenticate HTTP/1.1
 
Host: starling.exploreembedded.com
 
Host: starling.exploreembedded.com
'''description:''' If email and password are sent in the post body,
+
description: If email and password are sent in the post body,
 
  the API returns a token as below
 
  the API returns a token as below
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 19:41, 30 December 2015

Authentication

Request

POST /api/authenticate HTTP/1.1
Host: starling.exploreembedded.com
description: If email and password are sent in the post body,
 the API returns a token as below

Response

[
  {
    "id": "4",
    "user_id": "2",
    "name": "EE unit 4",
    "product_id": "STAR0004",
    "location": "",
    "configuration":{
      "lines":"2" ,
      "brightness":"100",
      "current_message":"hello world",
      "scroll_speed":"6",
      "font":"arial"
    },
    "created_at": "2015-12-28 14:27:07",
    "updated_at": "2015-12-28 14:27:07"
  }
]