Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- v = VimeoClient(
- token=settings.VIMEO_TOKEN,
- key=settings.VIMEO_KEY,
- secret=settings.VIMEO_SECRET)
- video_url = v.upload(user_data.video.path)
- video_name = 'test'
- v.patch('{video_id}'.format(video_id=video_url),
- data={'name': video_name,
- 'privacy': {'add': 'true', 'download': 'false',
- 'comments': 'nobody', 'embed': 'whitelist'},
- 'embed': {'playbar': 'true', 'volume': 'true',
- 'loop':'true',
- 'buttons': {'watchlater': 'false',
- 'fullscreen': 'true',
- 'share': 'false',
- 'like': 'false',
- 'embed': 'false'},
- 'logos': {'custom': {'active': 'false',
- 'sticky': 'false'},
- 'vimeo': 'false',
- },
- 'title': {'name': 'hide',
- 'owner': 'hide',
- 'portrait': 'hide'},
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement