spotframework/main.py

13 lines
273 B
Python
Raw Normal View History

2019-02-27 21:42:21 +00:00
def run_user_playlist(event, context):
2019-02-27 21:42:21 +00:00
import base64
name = base64.b64decode(event['data']).decode('utf-8')
username = event['attributes']['username']
from spotframework.google.run_user_playlist import run_user_playlist as run
run(username, name)