2019-02-27 21:42:21 +00:00
|
|
|
|
2019-05-14 20:41:12 +01:00
|
|
|
|
2019-08-02 12:02:24 +01:00
|
|
|
def run_user_playlist(event, context):
|
2019-02-27 21:42:21 +00:00
|
|
|
|
2019-08-02 12:02:24 +01:00
|
|
|
import base64
|
2019-02-27 22:45:53 +00:00
|
|
|
|
2019-08-02 12:02:24 +01:00
|
|
|
name = base64.b64decode(event['data']).decode('utf-8')
|
|
|
|
username = event['attributes']['username']
|
2019-05-14 12:39:17 +01:00
|
|
|
|
2019-08-02 12:02:24 +01:00
|
|
|
print(f'{username} - {name}')
|
2019-04-30 21:41:38 +01:00
|
|
|
|
2019-08-02 12:02:24 +01:00
|
|
|
from spotframework.google.run_user_playlist import run_user_playlist as run
|
2019-05-14 13:55:51 +01:00
|
|
|
|
2019-08-02 12:02:24 +01:00
|
|
|
run(username, name)
|