spotframework/main.py

15 lines
308 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']
print(f'{username} - {name}')
2019-04-30 21:41:38 +01:00
from spotframework.google.run_user_playlist import run_user_playlist as run
run(username, name)