|
11 | 11 | client = sendgrid.SendGridAPIClient(os.environ.get('SENDGRID_API_KEY')) |
12 | 12 |
|
13 | 13 | """ |
14 | | -
|
15 | | -email = 'elmer.thomas+test_global0@gmail.com' |
| 14 | +email = 'example@example.com' |
16 | 15 | status, msg = client.asm_global_suppressions.delete(email) |
17 | 16 | print status |
18 | 17 | print msg |
|
21 | 20 | print status |
22 | 21 | print msg |
23 | 22 |
|
24 | | -status, msg = client.asm_global_suppressions.post(['elmer.thomas+test_global0@gmail.com']) |
| 23 | +status, msg = client.asm_global_suppressions.post(['example@example.com']) |
25 | 24 | print status |
26 | 25 | print msg |
27 | 26 |
|
|
47 | 46 | print msg |
48 | 47 |
|
49 | 48 | # In the global suppression list |
50 | | -status, msg = client.asm_global_suppressions.get('elmer.thomas+test_global@gmail.com') |
| 49 | +status, msg = client.asm_global_suppressions.get('example@example.com') |
51 | 50 | print status |
52 | 51 | print msg |
53 | 52 |
|
54 | 53 | # Not in the global suppression list |
55 | | -status, msg = client.asm_global_suppressions.get('elmer.thomas@gmail.com') |
| 54 | +status, msg = client.asm_global_suppressions.get('example@example.com') |
56 | 55 | print status |
57 | 56 | print msg |
58 | 57 |
|
59 | 58 | status, msg = client.apikeys.get() |
60 | 59 | print status |
61 | 60 | print msg |
62 | 61 |
|
63 | | -status, msg = client.asm_suppressions.delete(67,'elmer+test@thinkingserious.com') |
| 62 | +status, msg = client.asm_suppressions.delete(67,'example@example.com') |
64 | 63 | print status |
65 | 64 | print msg |
66 | 65 |
|
67 | | -status, msg = client.asm_suppressions.post(60, ['elmer+test@thinkingserious.com', 'elmer.thomas@yahoo.com']) |
| 66 | +status, msg = client.asm_suppressions.post(60, ['example@example.com', 'example@example.com]) |
68 | 67 | print status |
69 | 68 | print msg |
70 | 69 |
|
|
0 commit comments