(self, client_id, client_secret, auth_method=None)
| 59 | } |
| 60 | |
| 61 | def __init__(self, client_id, client_secret, auth_method=None): |
| 62 | if auth_method is None: |
| 63 | auth_method = "client_secret_basic" |
| 64 | |
| 65 | self.client_id = client_id |
| 66 | self.client_secret = client_secret |
| 67 | |
| 68 | if auth_method in self.DEFAULT_AUTH_METHODS: |
| 69 | auth_method = self.DEFAULT_AUTH_METHODS[auth_method] |
| 70 | |
| 71 | self.auth_method = auth_method |
| 72 | |
| 73 | def prepare(self, method, uri, headers, body): |
| 74 | return self.auth_method(self, method, uri, headers, body) |
nothing calls this directly
no outgoing calls
no test coverage detected