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

Function augment

code3/twurl.py:8–19  ·  view source on GitHub ↗
(url, parameters)

Source from the content-addressed store, hash-verified

6# Create App and get the four strings, put them in hidden.py
7
8def augment(url, parameters):
9 secrets = hidden.oauth()
10 consumer = oauth.OAuthConsumer(secrets['consumer_key'],
11 secrets['consumer_secret'])
12 token = oauth.OAuthToken(secrets['token_key'], secrets['token_secret'])
13
14 oauth_request = oauth.OAuthRequest.from_consumer_and_token(consumer,
15 token=token, http_method='GET', http_url=url,
16 parameters=parameters)
17 oauth_request.sign_request(oauth.OAuthSignatureMethod_HMAC_SHA1(),
18 consumer, token)
19 return oauth_request.to_url()
20
21
22def test_me():

Callers 2

twtest.pyFile · 0.90
test_meFunction · 0.70

Calls 3

sign_requestMethod · 0.45
to_urlMethod · 0.45

Tested by 1

test_meFunction · 0.56