Epson TM-T20II-i TM-i WebConfig API Users Manual For TM-i firmware ver.4.1 - Page 11

Response Body Format, Referring to the Set Values of a TM-i

Page 11 highlights

Chapter 2 Response Body Format Response Body Format An application can specify the format for the response body to be returned when using GET or POST for a TM-i. Referring to the Set Values of a TM-i An application (e.g. JavaScript or excel macro) can refer to the set values of a TM-i by executing GET for the following URL: http://%IP Address%/PrinterConfigurationPage/%SettingUrl%?format=[html | xml | json | ini] For TM-i firmware Ver. 4.x or later, use the following URL. http://%IP Address%/webconfig/%SettingUrl%?format=[html | xml | json | ini] ❏ IP Address : The IP address of the TM-i whose set values to be acquired 2 ❏ SettingUrl : The URL of the set values to be acquired ❏ format  html : Specifies the format of the response body to be returned by the TM-i : HTML format (the same operation as the operation performed when viewing EPSON TMNet WebConfig by using a browser)  xml : XML format  json : JSON format  ini : ini format • If a password is set for EPSON TMNet WebConfig/ WebConfig API, at the time of access to the above URL, the user name (epson-specific) and password strings will be requested through digest authentication. • For SettingUrl and values, refer to Chapter 3 "Reference". • To use WebConfig API from XmlHttpRequest in JavaScript, register the Web page where the JavaScript code is written, to the TM-i as Web contents. 11

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70

11
Chapter 2
Response Body Format
2
Response Body Format
An application can specify the format for the response body to be returned when using GET or POST for a
TM-i.
Referring to the Set Values of a TM-i
An application (e.g. JavaScript or excel macro) can refer to the set values of a TM-i by executing GET for
the following URL:
IP Address
: The IP address of the TM-i whose set values to be acquired
SettingUrl
: The URL of the set values to be acquired
format
: Specifies the format of the response body to be returned by the TM-i
html
: HTML format (the same operation as the operation performed when viewing EPSON
TMNet WebConfig by using a browser)
xml
: XML format
json
: JSON format
ini
: ini format
If a password is set for EPSON TMNet WebConfig/ WebConfig API, at the time of
access to the above URL, the user name (epson-specific) and password strings will
be requested through digest authentication.
For SettingUrl and values, refer to Chapter 3
"Reference"
.
To use WebConfig API from XmlHttpRequest in JavaScript, register the Web page
where the JavaScript code is written, to the TM-i as Web contents.
http://%IP Address%/PrinterConfigurationPage/%SettingUrl%?format=[html | xml | json | ini]
For TM-i firmware Ver. 4.x or later, use the following URL.
http://%IP Address%/webconfig/%SettingUrl%?format=[html | xml | json | ini]