2CMC489001M0201
84
G13
Revision: A
User Manual
JSON Communication
Request
PUT /users/ HTTP/1.1
Authorization: Basic XXXXXXXXXXXXXXX=
Content-Type: application/json; charset=UTF-8
Content-Length: 35
{"name":"harsha","key":"harsha123"}
Note
Along with PUT /users request, user can send
PUT /users/<user>/
bindings
request to register Gateway with
view only
access rights to the
newly added user.
Example
• https://192.168.1.12/users
Response
• 200 OK
HTTP/1.1 200 OK
Content-Type: application/json
Server: embOS/IP
Transfer-Encoding: chunked
Link:/lasterror/0
{"status":"success"}
6.3.20 DELETE /users/<user>
A DELETE call to /users/<user> removes specified user.
Protected
Yes (Authentication required)
Request
DELETE /users/<user> HTTP/1.1
Host: 192.168.1.12
Content-Type: application/json; charset=UTF-8
Authorization: Basic XXXXXXXXXXXXXXX=
Content-Length: 17
{"name":"harsha"}
Examples
• https://192.168.1.12/users/harsha
Содержание G13
Страница 1: ...G13 User Manual ...
Страница 2: ......
Страница 3: ...G13 User Manual Document ID 2CMC489001M0201 Revision A 2013 04 25 ...
Страница 8: ...Table of Content G13 4 2CMC484002M0201 User Manual Revision A ...
Страница 50: ...2CMC489001M0201 46 G13 Revision A User Manual Meter Settings 4 Set Frequency 5 Select Energy Type 6 Click Send ...
Страница 249: ...JSON Communication G13 245 2CMC489001M0201 User Manual Revision A ...