Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/m/t/mtweets-0.4/mtweets/api.py   mtweets(Download)
        content_type, body = self._encode_multipart_formdata(fields, files)
        old_headers = self.opener.addheaders
        self.opener.addheaders = [('Content-Type', content_type), ('Content-Length', str(len(body)))].extends(self.opener.addheaders)
        kwargs[''] = body
        data = self.fetch_resource("http://api.twitter.com/%d/account/update_profile_image.json"%version, kwargs, 'POST')
        content_type, body = self._encode_multipart_formdata(fields, files)
        old_headers = self.opener.addheaders
        self.opener.addheaders = [('Content-Type', content_type), ('Content-Length', str(len(body)))].extends(self.opener.addheaders)
        kwargs[''] = body
        data = self.fetch_resource("http://api.twitter.com/%d/account/update_profile_background_image.json"%version, kwargs, 'POST')