Ejemplo n.º 1
0
def get_search_songs_list(access_token, search_str) :
    response =  vk.method(access_token, "audio.search", {"q": search_str, "count": GLOBAL_SEARCH_COUNT})
    #print response.get("response")
    song_list = response.get("response")[1:]
    return song_list
Ejemplo n.º 2
0
def get_user_songs_list(access_token) :
    user_id = raw_input("User id who provides songs for you (default it's yours):\n")
    response =  vk.method(access_token, "audio.get", {"uid": user_id})
    #print response.get("response")
    song_list = response.get("response")
    return song_list