Generic Information For Access To The Grid Restful Api; Authenticate Via Get Command; Authenticate Via Post Command; Run Get Command To Deliver Device Data Logs - MSA Grid RESTful API Startup Manual

Table of Contents

Advertisement

3.4

Generic Information for Access to the Grid RESTful API

NOTE: In the tables that follow, italicized characters indicate placeholder text that must be filled
in by the user with the correct information.
3.4.1

Authenticate via GET Command

Method
GET
URL
https://www.fieldpop.io/rest/login?username=username&password=password
Request
Content-Type: application/json
Header
Request
NA
Body
{
message: 'Logged in ok',
Response
data: { token: tokenvalue},
error: null
}
3.4.2

Authenticate via POST Command

Method
POST
URL
https://www.fieldpop.io/rest/login
Request
Content-Type: application/json
Header
{
"username" : "username"
Request
"Password" : "password"
Body
}
{
message: 'Logged in ok',
Response
data: { token: tokenvalue},
error: null
}
3.4.3

Run GET Command to Deliver Device Data Logs

Method
GET
https://www.fieldpop.io/rest/method/fieldpop-api/deviceDataLog?deviceID=deviceI
URL
D&happn_token=authtoken&startUTCsec=1477388259&endUTCsec=150000000
0
Request
Content-Type: application/json
Header
Request
NA
Body
{
"message": "Call successful",
Response
"data": {},
"error": null
}
Grid RESTful API Start-up Guide
Troubleshooting
48

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Grid RESTful API and is the answer not in the manual?

Table of Contents