Skip to content

Instantly share code, notes, and snippets.

@jdragojevic
Created June 13, 2014 21:37
Show Gist options
  • Save jdragojevic/8e4d6b157f75c8052966 to your computer and use it in GitHub Desktop.
Save jdragojevic/8e4d6b157f75c8052966 to your computer and use it in GitHub Desktop.
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'X-apikey': api_key.key,
'X-api-username': api_key.username,
}
video_data = {
'duration': 60,
'team': 'mozilla',
'description': u'Node.js Meetup Francophone Paris - Chapitre 01 - Episode 8',
'video_url': 'https://d3fenhwk93s16g.cloudfront.net/1h2r5y/webm.webm',
'title': u'Node.js Paris Meetup'
}
resp = u.make_request('post', '/api2/partners/videos/', **video_data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment