#!/usr/bin/python import sys sys.path.append("./project/RasWxNeteaseMusic") sys.path.append("./project/RasWxNeteaseMusic/neteaseApi/ncmbot") from WxNeteaseMusic import WxNeteaseMusic import ncmbot from PluginManager import Model_MenuObj wnm = WxNeteaseMusic() ncmbot.login(phone='17302827960', password='******') class MusicPlugin(Model_MenuObj): def __init__(self): pass def Start(self,content,sender): if content.startswith("m"): res = wnm.msg_handler(content[2:]) sender.send(res)
def test_PERSONAL_FM(self): ncmbot.login(phone='xxx', password='******') r = ncmbot.personal_fm() print 'test_PERSONAL_FM', r.content
def test_EVENT(self): ncmbot.login(phone='xxx', password='******') r = ncmbot.event() print 'test_EVENT', r.content pass
def test_LOGIN(self): r = ncmbot.login(phone='xxx', password='******') print 'test_LOGIN', r.content pass
def test_USER_RECORD(self): ncmbot.login(phone='xxx', password='******') r = ncmbot.user_record(uid='264893698') print 'test_USER_RECORD', r.content pass