forked from lostfields/python-panasonic-comfort-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
requests.http
227 lines (189 loc) · 4.83 KB
/
requests.http
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
###
# @name login
POST https://accsmart.panasonic.com/auth/login HTTP/1.1
X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
Accept: application/json
Content-Type: application/json
{
"language": "0",
"loginId": "***",
"password": "***"
}
###
GET https://accsmart.panasonic.com/auth/agreement/status/1 HTTP/1.1
X-User-Authorization: ABn5iAlFvmDjRmIe1BWZ6iMSc48T0nul
X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
Accept: application/json; charset=utf-8
Content-Type: application/json
User-Agent: G-RAC
Host: accsmart.panasonic.com
Connection: Keep-Alive
Accept-Encoding: gzip
GET https://accsmart.panasonic.com/auth/agreement/status/2 HTTP/1.1
X-User-Authorization: ABn5iAlFvmDjRmIe1BWZ6iMSc48T0nul
X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
Accept: application/json; charset=utf-8
Content-Type: application/json
User-Agent: G-RAC
Host: accsmart.panasonic.com
Connection: Keep-Alive
Accept-Encoding: gzip
GET https://accsmart.panasonic.com/auth/agreement/documents/0/2 HTTP/1.1
X-User-Authorization: ABn5iAlFvmDjRmIe1BWZ6iMSc48T0nul
X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
Accept: application/json; charset=utf-8
Content-Type: application/json
User-Agent: G-RAC
Host: accsmart.panasonic.com
Connection: Keep-Alive
Accept-Encoding: gzip
PUT https://accsmart.panasonic.com/auth/agreement/status/ HTTP/1.1
X-User-Authorization: ABn5iAlFvmDjRmIe1BWZ6iMSc48T0nul
X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
Accept: application/json; charset=utf-8
User-Agent: G-RAC
Content-Type: application/json; charset=utf-8
Content-Length: 30
Host: accsmart.panasonic.com
Connection: Keep-Alive
Accept-Encoding: gzip
{"agreementStatus":1,"type":2}
###
GET https://accsmart.panasonic.com/auth/agreement/status/ HTTP/1.1
X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
X-User-Authorization: {{login.response.body.$.uToken}}
User-Agent: G-RAC
Accept: application/json
Content-Type: application/json
###
# type may be 0,1,2
PUT https://accsmart.panasonic.com/auth/agreement/status/ HTTP/1.1
X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
X-User-Authorization: {{login.response.body.$.uToken}}
User-Agent: G-RAC
Accept: application/json
Content-Type: application/json
{ "agreementStatus": 0, "type": 0 }
###
# @name device
GET https://accsmart.panasonic.com/device/group HTTP/1.1
X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
X-User-Authorization: {{login.response.body.$.uToken}}
User-Agent: G-RAC
Accept: application/json
Content-Type: application/json
###
GET https://accsmart.panasonic.com/deviceStatus/now/{{device.response.body.$.groupList[0].deviceList[0].deviceGuid}} HTTP/1.1
X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
X-User-Authorization: {{login.response.body.$.uToken}}
User-Agent: G-RAC
Accept: application/json
Content-Type: application/json
###
GET https://accsmart.panasonic.com/deviceStatus/{{device.response.body.$.groupList[0].deviceIdList[0].deviceGuid}} HTTP/1.1
X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
X-User-Authorization: {{login.response.body.$.uToken}}
User-Agent: G-RAC
Accept: application/json
Content-Type: application/json
###
POST https://accsmart.panasonic.com/deviceHistoryData HTTP/1.1
X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
X-User-Authorization: {{login.response.body.$.uToken}}
User-Agent: G-RAC
Accept: application/json
Content-Type: application/json
{
"dataMode": 0, "date": "20190610", "deviceGuid": "{{device.response.body.$.groupList[0].deviceIdList[0].deviceGuid}}", "osTimezone": "+01:00"
}
###
POST https://accsmart.panasonic.com/deviceStatus/control HTTP/1.1
X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
X-User-Authorization: {{login.response.body.$.uToken}}
User-Agent: G-RAC
Accept: application/json
Content-Type: application/json
{
"deviceGuid": "{{device.response.body.$.groupList[0].deviceIdList[0].deviceGuid}}",
"parameters": {
"operate": 1,
"operationMode": 3,
"ecoMode": null,
"temperatureSet": 22.5,
"airSwingUD": null,
"airSwingLR": null,
"fanAutoMode": null,
"fanSpeed": null
}
}
###
POST https://accsmart.panasonic.com/deviceStatus/control HTTP/1.1
X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
X-User-Authorization: {{login.response.body.$.uToken}}
User-Agent: G-RAC
Accept: application/json
Content-Type: application/json
{
"deviceGuid": "{{device.response.body.$.groupList[0].deviceIdList[0].deviceGuid}}",
"parameters": {
"temperatureSet": 21.0
}
}
###
"airSwingUD": {
"Up": 0,
"Down": 1,
"Mid": 2,
"UpMid": 3,
"DownMid": 4
}
"airSwingLR": {
"Left": 0,
"Right": 1,
"Mid": 2,
"RightMid": 3,
"LeftMid": 4
}
"ecoMode": {
"Auto": 0,
"Powerful": 1,
"Quiet": 2
}
"fanAutoMode": {
"Disabled": 1,
"AirSwingAuto": 0,
"AirSwingLR": 3,
"AirSwingUD": 2
}
"fanSpeed": {
"Auto": 0,
"Low": 1,
"LowMid": 2,
"Mid": 3,
"HighMid": 4,
"High": 5,
}
"operate": {
"Off": 0,
"On": 1
}
"operationMode": {
"Auto": 0,
"Dry": 1,
"Cool": 2,
"Heat": 3,
"Fan": 4 // not sure
}