~veebers/checkbox/add_transport_with_oauth-checkbox-touch

« back to all changes in this revision

Viewing changes to checkbox-touch/py/checkbox_touch.py

  • Committer: Christopher Lee
  • Date: 2015-08-18 02:06:29 UTC
  • Revision ID: chris.lee@canonical.com-20150818020629-p56xeeg46uhnbxbs
Added email address to upload payload

Show diffs side-by-side

added added

removed removed

Lines of Context:
596
596
        return dict(
597
597
            code=200,
598
598
            message='Successfully logged in.',
599
 
            oauth_creds=oauth_creds
 
599
            oauth_creds=oauth_creds,
 
600
            uploader_email=email
600
601
        )
601
602
 
602
603
    @view
626
627
            uri, headers, body = client.sign(transport_url, 'POST')
627
628
 
628
629
        form_payload = dict(data=results_data)
 
630
        form_data = dict(uploader_email=transport_details['uploader_email'])
629
631
        request_callable = lambda: requests.post(
630
632
            transport_url,
631
633
            files=form_payload,