用于使用xtify webservice api的python模块
xtif的Python项目详细描述
关于
用于将Xtifyweb服务api用于移动推送通知的python库。
要求
使用Python2.7进行测试,它可能会在旧版本上工作。对于版本 需要安装python 2.5或更早版本的“simplejson”。
功能性
从0.1版起,只实现了xtify push api 2.0。主要是因为 是我唯一需要的,至少现在…
可用类: pushNotification、pushContent、pushAction、pushRichContent
用法示例
>>> import xtify >>> pushNotif = xtify.PushNotification(appKey='myAppKey', apiKey='myApiKey) >>> pushNotif.sendAll=True >>> pushNotif.content.subject='greetings earthling' >>> pushNotif.content.message='take me to your leader' >>> pushNotif.push()>>> import xtify >>> pushContent = xtify.PushContent( subject='greetings earthling', message='take me to your leader') >>> pushNotif = xtify.pushNotification( appKey='myAppKey', apiKey='myApiKey', sendall=True, content=pushContent) >>> pushNotif.push()