|
49 | 49 | # PUT /user/password # |
50 | 50 |
|
51 | 51 | data = { |
52 | | - "new_password": "new_password", |
| 52 | + "new_password": "new_password", |
53 | 53 | "old_password": "old_password" |
54 | 54 | } |
55 | 55 | response = sg.client.user.password.put(request_body=data) |
|
62 | 62 | # PATCH /user/profile # |
63 | 63 |
|
64 | 64 | data = { |
65 | | - "city": "Orange", |
66 | | - "first_name": "Example", |
| 65 | + "city": "Orange", |
| 66 | + "first_name": "Example", |
67 | 67 | "last_name": "User" |
68 | 68 | } |
69 | 69 | response = sg.client.user.profile.patch(request_body=data) |
|
85 | 85 | # POST /user/scheduled_sends # |
86 | 86 |
|
87 | 87 | data = { |
88 | | - "batch_id": "YOUR_BATCH_ID", |
| 88 | + "batch_id": "YOUR_BATCH_ID", |
89 | 89 | "status": "pause" |
90 | 90 | } |
91 | 91 | response = sg.client.user.scheduled_sends.post(request_body=data) |
|
140 | 140 | # PATCH /user/settings/enforced_tls # |
141 | 141 |
|
142 | 142 | data = { |
143 | | - "require_tls": True, |
| 143 | + "require_tls": True, |
144 | 144 | "require_valid_cert": False |
145 | 145 | } |
146 | 146 | response = sg.client.user.settings.enforced_tls.patch(request_body=data) |
|
183 | 183 | # PATCH /user/webhooks/event/settings # |
184 | 184 |
|
185 | 185 | data = { |
186 | | - "bounce": True, |
187 | | - "click": True, |
188 | | - "deferred": True, |
189 | | - "delivered": True, |
190 | | - "dropped": True, |
191 | | - "enabled": True, |
192 | | - "group_resubscribe": True, |
193 | | - "group_unsubscribe": True, |
194 | | - "open": True, |
195 | | - "processed": True, |
196 | | - "spam_report": True, |
197 | | - "unsubscribe": True, |
| 186 | + "bounce": True, |
| 187 | + "click": True, |
| 188 | + "deferred": True, |
| 189 | + "delivered": True, |
| 190 | + "dropped": True, |
| 191 | + "enabled": True, |
| 192 | + "group_resubscribe": True, |
| 193 | + "group_unsubscribe": True, |
| 194 | + "open": True, |
| 195 | + "processed": True, |
| 196 | + "spam_report": True, |
| 197 | + "unsubscribe": True, |
198 | 198 | "url": "url" |
199 | 199 | } |
200 | 200 | response = sg.client.user.webhooks.event.settings.patch(request_body=data) |
|
228 | 228 | # POST /user/webhooks/parse/settings # |
229 | 229 |
|
230 | 230 | data = { |
231 | | - "hostname": "myhostname.com", |
232 | | - "send_raw": False, |
233 | | - "spam_check": True, |
| 231 | + "hostname": "myhostname.com", |
| 232 | + "send_raw": False, |
| 233 | + "spam_check": True, |
234 | 234 | "url": "http://email.myhosthame.com" |
235 | 235 | } |
236 | 236 | response = sg.client.user.webhooks.parse.settings.post(request_body=data) |
|
252 | 252 | # PATCH /user/webhooks/parse/settings/{hostname} # |
253 | 253 |
|
254 | 254 | data = { |
255 | | - "send_raw": True, |
| 255 | + "send_raw": True, |
256 | 256 | "spam_check": False, |
257 | 257 | "url": "http://newdomain.com/parse" |
258 | 258 | } |
|
0 commit comments