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

Changing the Set Values of a TM-i

Page 15 highlights

Chapter 2 Response Body Format Changing the Set Values of a TM-i An application (e.g. JavaScript or excel macro) can change the set values of a TM-i by executing POST for the following URL: Execute POST after putting the set value you want to change and the set value after change into the POST parameter. 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 ❏ SettingUrl : The URL of the set value to be changed ❏ 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) 2  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. 15

  • 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

15
Chapter 2
Response Body Format
2
Changing the Set Values of a TM-i
An application (e.g. JavaScript or excel macro) can change the set values of a TM-i by executing POST for
the following URL:
Execute POST after putting the set value you want to change and the set value after change into the POST
parameter.
IP Address : The IP address of the TM-i whose set values to be acquired
SettingUrl
: The URL of the set value to be changed
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]