(self, req)
| 15 | """Signs the request using OAuth 1 (RFC5849).""" |
| 16 | |
| 17 | def __call__(self, req): |
| 18 | url, headers, body = self.prepare(req.method, req.url, req.headers, req.body) |
| 19 | |
| 20 | req.url = to_native(url) |
| 21 | req.prepare_headers(headers) |
| 22 | if body: |
| 23 | req.body = body |
| 24 | return req |
| 25 | |
| 26 | |
| 27 | class OAuth1Session(OAuth1Client, Session): |