pushwoosh的python客户端

pypushwoosh的Python项目详细描述


pushwoosh python库

支持的API版本:1.3

https://travis-ci.org/Pushwoosh/pushwoosh-python-lib.svg?branch=master

开始

典型用法通常如下:

#!/usr/bin/env python
from pypushwoosh.client import PushwooshClient
from pypushwoosh.command import CreateTargetedMessageCommand
from pypushwoosh.filter import ApplicationFilter


command = CreateTargetedMessageCommand()
command.auth = 'AUTH_TOKEN'
command.devices_filter = ApplicationFilter('APP-CODE')
command.content = "Hello world!"

client = PushwooshClient()
print client.invoke(command)

功能

目前,pypushwoosh支持:

  • 消息命令:
    • 为应用程序命令创建消息
    • createMessageforApplicationGroup命令
    • createTargetedMessage命令
    • compilefilter命令
    • 删除消息命令
  • 设备命令:
    • 注册表设备命令
    • gettagscommand
    • settags命令
    • setbadge命令
    • pushstat命令
    • 获取最接近的分区命令

对于目标邮件,支持:

  • ApplicationFilter and ApplicationGroupFilter filters
  • Tag filters: IntegerTagFilter, StringTagFilter, ListTagFilter, DateTagFilter, DaysTagFilter, BooleanTagFilter
  • Tags filters by application
  • Operations filters: UnionFilter, IntersectFilter, SubtractFilter

安装

通过pip

安装
$ pip install pypushwoosh

从源安装:

$ git clone git://github.com/Pushwoosh/pushwoosh-python-lib.git
$ cd pushwoosh-python-lib
$ python setup.py install

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

推荐PyPI第三方库


热门话题
java如何将异步类的结果放入mainActivity EditText   java LDAP目录管理器服务提供,OutOfMemory   java Cassandra NoHostAvailableException,但仍存在活动节点   springboot应用程序的java启动线程   如果poll不一定返回第一项,那么java是ConcurrentLinkedQueue的好选择吗?   解析XML时JSON中出现java意外字符串   当'key'是两个整数时,如何输出Java HashMap键?   java为什么不显示在jsp页面中   java使用流式API转换映射列表中的值   JavaJPA+Spring:基于在持久化实体之前接收到的值,将外键列映射到ID   java如何使用selenium读取pdf文件   Canny之后的java对象提取   DSpace没有列出集合,java。lang.NumberFormatException:null   java我可以为数据库表主键设置一个最大值吗?   java如何定义Javadoc链接,可以通过单击   @java/spring中的SessionAttribute是否丢失数据?