I need to make several requests, using either `get` or `post` method, I want to write the requests into one statement like

```
response = getattr(requests, method)(url, parameters)

```

when `method == 'get'`, Above should work as `response = getattr(requests, method)(url, params=parameters)`, when `method == 'post'`, it should work as `response = getattr(requests, method)(url, json=parameters)`