MCPcopy Index your code
hub / github.com/csev/py4e / sign_request

Method sign_request

code3/oauth.py:218–226  ·  view source on GitHub ↗

Set the signature parameter to the result of build_signature.

(self, signature_method, consumer, token)

Source from the content-addressed store, hash-verified

216 return '%s://%s%s' % (scheme, netloc, path)
217
218 def sign_request(self, signature_method, consumer, token):
219 """Set the signature parameter to the result of build_signature."""
220 # Set the signature method.
221 self.set_parameter('oauth_signature_method',
222 signature_method.get_name())
223 # Set the signature.
224 self.set_parameter('oauth_signature',
225 self.build_signature(signature_method,
226 consumer, token))
227
228 def build_signature(self, signature_method, consumer, token):
229 """Calls the build signature method within the signature method."""

Callers 1

augmentFunction · 0.45

Calls 3

set_parameterMethod · 0.95
build_signatureMethod · 0.95
get_nameMethod · 0.45

Tested by

no test coverage detected