質問編集履歴

2

レスポンスに違いがありアップデートしました。

2019/12/20 08:03

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -64,7 +64,9 @@
64
64
 
65
65
  ```resuponse
66
66
 
67
+ {"users":[
68
+
67
- {
69
+ {
68
70
 
69
71
  "id": 12345,
70
72
 
@@ -142,6 +144,90 @@
142
144
 
143
145
  "user_fields": {}
144
146
 
147
+ },
148
+
149
+ {
150
+
151
+ "id": 12345,
152
+
153
+ "url": "https://test.json",
154
+
155
+ "name": "test",
156
+
157
+ "email": "test123@test.com",
158
+
159
+ "created_at": "2019",
160
+
161
+ "updated_at": "2019",
162
+
163
+ "time_zone": "Tokyo",
164
+
165
+ "iana_time_zone": "Asia/Tokyo",
166
+
167
+ "phone": "None",
168
+
169
+ "shared_phone_number": "None",
170
+
171
+ "photo": "None",
172
+
173
+ "locale_id": 1,
174
+
175
+ "locale": "ja",
176
+
177
+ "organization_id": "None",
178
+
179
+ "role": "end-user",
180
+
181
+ "verified": "False",
182
+
183
+ "external_id": "None",
184
+
185
+ "tags": [],
186
+
187
+ "alias": "None",
188
+
189
+ "active": "True",
190
+
191
+ "shared": "False",
192
+
193
+ "shared_agent": "False",
194
+
195
+ "last_login_at": "None",
196
+
197
+ "two_factor_auth_enabled": "False",
198
+
199
+ "signature": "None",
200
+
201
+ "details": "None",
202
+
203
+ "notes": "None",
204
+
205
+ "role_type": "None",
206
+
207
+ "custom_role_id": "None",
208
+
209
+ "moderator": "False",
210
+
211
+ "ticket_restriction": "requested",
212
+
213
+ "only_private_comments": "False",
214
+
215
+ "restricted_agent": "True",
216
+
217
+ "suspended": "False",
218
+
219
+ "chat_only": "False",
220
+
221
+ "default_group_id": "None",
222
+
223
+ "report_csv": "False",
224
+
225
+ "user_fields": {}
226
+
145
227
  }
146
228
 
229
+ ]
230
+
231
+ }
232
+
147
233
  ```

1

print(["data"])について記載

2019/12/20 08:03

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -11,6 +11,14 @@
11
11
 
12
12
 
13
13
  ご教示のほど、何卒よろしくお願いいたします。
14
+
15
+
16
+
17
+ **追記**
18
+
19
+ `print(data)` を `print(["name"])` とした場合は
20
+
21
+ KeyError: 'name' が返ってきしまいます。
14
22
 
15
23
 
16
24