|
77 | 77 | # Retrieve the totals for each email statistic metric for all subusers. # |
78 | 78 | # GET /subusers/stats/sums # |
79 | 79 |
|
80 | | -params = {'end_date': '2016-04-01', 'aggregated_by': 'day', 'limit': 1, |
81 | | - 'sort_by_metric': 'test_string', 'offset': 1, 'start_date': '2016-01-01', 'sort_by_direction': 'asc'} |
| 80 | +params = {'end_date': '2016-04-01', |
| 81 | + 'aggregated_by': 'day', |
| 82 | + 'limit': 1, |
| 83 | + 'sort_by_metric': 'test_string', |
| 84 | + 'offset': 1, |
| 85 | + 'start_date': '2016-01-01', |
| 86 | + 'sort_by_direction': 'asc'} |
82 | 87 | response = sg.client.subusers.stats.sums.get(query_params=params) |
83 | 88 | print(response.status_code) |
84 | 89 | print(response.body) |
|
172 | 177 | # Retrieve the monthly email statistics for a single subuser # |
173 | 178 | # GET /subusers/{subuser_name}/stats/monthly # |
174 | 179 |
|
175 | | -params = {'date': 'test_string', 'sort_by_direction': 'asc', |
176 | | - 'limit': 1, 'sort_by_metric': 'test_string', 'offset': 1} |
| 180 | +params = {'date': 'test_string', |
| 181 | + 'sort_by_direction': 'asc', |
| 182 | + 'limit': 1, |
| 183 | + 'sort_by_metric': 'test_string', |
| 184 | + 'offset': 1} |
177 | 185 | subuser_name = "test_url_param" |
178 | 186 | response = sg.client.subusers._( |
179 | 187 | subuser_name).stats.monthly.get(query_params=params) |
|
0 commit comments