Did I find the right examples for you? yes no

All Samples(15)  |  Call(15)  |  Derive(0)  |  Import(0)

src/t/x/txTwitter-0.1.4a/txtwitter/twitter.py   txTwitter(Download)
            decoding='utf-8')
        uri, headers, body = client.sign(
            uri, http_method=method, headers=headers, body=body)
        headers = Headers(dict((k, [v]) for k, v in headers.items()))
 

src/p/i/piston-mini-client-0.7.5/piston_mini_client/auth.py   piston-mini-client(Download)
                              realm=self.oauth_realm)
        uri, signed_headers, body = oauth_client.sign(
            url, method, body, headers)
        headers.update(signed_headers)
 

src/m/a/mapclient-0.10.1/src/tools/pmr/jsonclient/credential.py   mapclient(Download)
        safe_url = safe_unicode(url)
        # data is omitted because no www-form-encoded data
        _, header, _ = client.sign(safe_url, safe_method)
        return header
 

src/t/e/tellive-py-0.4.2/tellive/client.py   tellive-py(Download)
            resource_owner_key=token, resource_owner_secret=secret)
 
        uri, headers, body = client.sign(self.host + path)
        conn = http.HTTPConnection(self.server, self.port)
        conn.request('GET', path, body=body, headers=headers)

src/y/b/yboss-0.1.1/yboss/yboss.py   yboss(Download)
        """
        client = oauth1.Client(self.key, client_secret=self.secret)
        self.uri, self.headers, self.body = client.sign(url)
        return self.headers
 

src/p/m/pmr2.oauth-0.5.1/pmr2/oauth/tests/base.py   pmr2.oauth(Download)
    if result.getHeader('Content-Type') == 'application/x-www-form-urlencoded':
        headers = {'Content-Type': 'application/x-www-form-urlencoded'}
        url_signed, headers, body = client.sign(url, method,
            body=raw_body, headers=headers)
    else:
        url_signed, headers, body = client.sign(url, method)

src/p/m/pmr2.oauth-HEAD/pmr2/oauth/tests/base.py   pmr2.oauth(Download)
    if result.getHeader('Content-Type') == 'application/x-www-form-urlencoded':
        headers = {'Content-Type': 'application/x-www-form-urlencoded'}
        url_signed, headers, body = client.sign(url, method,
            body=raw_body, headers=headers)
    else:
        url_signed, headers, body = client.sign(url, method)

src/z/a/zamboni-HEAD/mkt/api/tests/test_oauth.py   zamboni(Download)
                           client_secret=self.access.secret,
                           signature_method=self.signature_method)
        url, headers, body = cl.sign(url, http_method=method)
        # We give cl.sign a str, but it gives us back a unicode, which cause
        # double-encoding problems later down the road with the django test
    def _oauth_request_info(self, url, **kw):
        oa = oauth1.Client(signature_method=oauth1.SIGNATURE_HMAC, **kw)
        url, headers, _ = oa.sign(url, http_method='GET')
        return url, headers['Authorization']
 

src/o/a/oauthlib-HEAD/tests/oauth1/rfc5849/endpoints/test_base.py   oauthlib(Download)
        self.client = Client('foo', callback_uri='https://c.b/cb')
        self.uri, self.headers, self.body = self.client.sign(
                'https://i.b/request_token')
 
    def test_ssl_enforcement(self):
        e = BaseEndpoint(v)
        c = Client('foo')
        u, h, b = c.sign('http://example.com')
        r = e._create_request(u, 'GET', b, h)
        self.assertRaises(errors.InsecureTransportError,

src/o/a/oauthlib-0.6.1/tests/oauth1/rfc5849/endpoints/test_base.py   oauthlib(Download)
        self.client = Client('foo', callback_uri='https://c.b/cb')
        self.uri, self.headers, self.body = self.client.sign(
                'https://i.b/request_token')
 
    def test_ssl_enforcement(self):
        e = BaseEndpoint(v)
        c = Client('foo')
        u, h, b = c.sign('http://example.com')
        r = e._create_request(u, 'GET', b, h)
        self.assertRaises(errors.InsecureTransportError,