Conditions | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | import requests |
||
17 | def get(self, url, customparams, customheader=None): |
||
18 | header = self.defaultheader |
||
19 | params = {"access_token": self.token} |
||
20 | params.update(customparams) |
||
21 | if customheader is not None: |
||
22 | header.update(customheader) |
||
23 | response = self.session.get(url, params=params, headers=header) |
||
24 | return response.json() |
||
25 | |||
37 |