Exemplo n.º 1
0
def send_login_url(to):
    """
    The user attempted to like a
    song from the queue but has not yet
    logged into SoundCloud, send them
    a register url.
    """
    sc_connector = SoundCloud()
    data = {SC_Reg_Key: sc_connector.request_register_url(to)}
    payload = json.dumps({D_Key: data, 'to': to})
    send_data_fcm(payload)