用于使用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()

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java是地图。size()始终与map相同。entrySet()。大小()   java如何使用全局二级索引的分区键更新项   java AutoCompleteTextView背景/前景颜色   java线程、MediaPlayer、ProgressDialog和上下文问题   java为什么我不能制作这个minecraft mod?   java安卓如何从片段调用的Activity类启动新活动   java从一个数据库读取值并将其写入另一个数据库   java如何在运行时调整log4j级别?   shell停止将命令行参数中的通配符扩展为Java   java调用外部类变量是线程安全的吗?   groovy无法通过在Wildfly中使用Camel CDI在Java中执行Grrovy脚本来解决类问题   java如何修复NoSuchMethodError:“void freemaker”。样板配置<无法排除旧版本时初始化>(freemarker.template.Version)?   Java串行通信IllegatStateException端口已关闭   java禁止创建。兽人。crc文件   java Servlet会话失效   java如何在arraylist中计算最小距离   java JSlider可调整高分辨率屏幕的大小   java HashMap有containsValue方法,但没有getValue方法