10 External APIs
35
The REST-style API is based on the REST architectural style. It presents the state and configuration as an hierarchy
of resources, and relies on HTTP to perform action signaling and content negotiation. Requests with different HTTP
headers yield different representations of resources (e.g. plain text, HTML, JSON, etc.). A type description system
is used to outline the object model.
Refer to the REST-style API reference for details.
10.3
JSON-RPC
JSON-RPC test (requires JavaScript)
Parameters
Request
Reply
headers
Result
URI:
/jsonrpc/
relay
Method:
get
"name"
Remove
Add new parameter:
Add
Perform RPC
POPT /jsonrpc/relay HTTP/1.1
Content-Type: application/json-rpc
Accept: application/json-rpc
X-Requested-With: XMLHttpRequest
Content-Length: 57
{"jsonrpc":"2.0","id":1,"method":"get","params":
["name"]}
Connection:
close
Pragma: no-
cache
Allow: POPT
Expires:
Mon, 01 Jan
1990
00:00:01
GMT
Cache-
Control:
No-cache,
no-store,
must-
revalidate,
max-age=0
Transfer-
Encoding:
chunked
"DLI
Controller"
JSON-RPC demo
JSON-RPC allows to access an object model similar to the one of the REST-like API, but in a different manner
which may be more suitable for some integration environments. All composite objects are visible using JSON-RPC,
with their field values accessible using "get" (with the field name in the argument) and "set" methods (with the field
name and value as arguments). Additionally, containers support "add", "remove" and "list" methods. The "describe"
method can be used to output a type description for the object (similar to the REST API "description" relative URI).
10.4
UPnP settings
UPnP relay bindine confieuration
#
Enable
Alternate name
Profile
Unique ID
1
Relay 1
belkin_wemo_socket
b76cb5710
2
Relay 2
belkin_wemo_socket
b76cb5711
3
Relay 3
belkin_wemo_socket
b76cb5712
4
Relay 4
belkin_wemo_socket
b76cb5713
5
Relay 5
belkin_wemo_socket
b76cb5714
6
Relay 6
belkin_wemo_socket
b76cb5715
7
Relay 7
belkin_wemo_socket
b76cb5716
8
Relay 8
belkin_wemo_socket
b76cb5717
Submit
UPnP settings
DLI DIN4 User’s Guide: 20170809T111540Z
Содержание DIN4
Страница 1: ...DLI DIN4 User s Guide 20170809T111540Z ...
Страница 57: ......