GithubHelp home page GithubHelp logo

mobpush-websdkv3-ruby's Introduction

image

MobPush API for Ruby 为了帮助开发者更方便接入MobPush免费推送SDK,提供完整的API接口的ruby实现,包含设备操作相关接口、推送操作相关接口以及公共接口。

了解更多 MobPush 免费推送SDK.

优势

免费使用自定义UI稳定服务流程体验数据同步专业技术团队服务

接口

  • 推送接口:
    • 广播推送 pushAll
    • 别名推送 pushByAlias
    • 用户标签推送 pushByTags
    • Registration ID推送 pushByRids
    • 复杂地理位置推送 pushByAreas
    • 用户自定义配置推送 pushTaskV3
    • 别名和rid批量推送 pushMulti
  • 推送任务详情查询接口
    • 查询推送任务详情(根据batchId) getPushByBatchId
    • 查询推送任务详情(根据workno) getPushByWorkno
  • 推送任务的处理接口
    • 取消推送任务(根据workId) cancelPushTask
    • 替换推送任务(根据workId) replacePushTask
    • 撤回推送任务(根据workId) recallPushTask
  • 查询推送统计接口
    • 根据推送任务id查询统计 getStatsByWorkId
    • 根据推送任务id批量查询统计 getStatsByWorkIds
    • 根据用户id查询统计 getStatsByWorkno
    • 按小时查询统计 getStatsByHour
    • 按日期查询统计 getStatsByDay
    • 根据id查询任务下发给设备的详情统计 getStatsByDevice
  • 设备操作接口
    • 根据rid查询设备信息接口 getByRid
    • 查询设备分布情况 getDeviceDistribution
    • 根据别名查询设备信息 queryByAlias
    • 更新设备别名 updateAlias (updateByAlias已经废弃)
    • 更新设备标签 updateTags (upateByTags已经废弃)
    • 根据标签查询设备信息 queryByTags

使用方式

使用注意事项

  • 初始化appkey, appSecret
   MobPushConfig.appkey = "";
   MobPushConfig.appSecret = "";

以上是使用时设置的方式,还可以直接引用源码在mob.push.api.MobPushConfig设置

使用示例

发送推送示例片段代码:

require 'mobpush'

MobPushConfig.appkey = "appkey"
MobPushConfig.appSecret = "appSecret"
pushClient = PushV3Client.new()
pushResult = pushClient.pushByRids("", "title", "content", "rids")

统计查询示例片段代码:

require 'mobpush'

MobPushConfig.appkey = "appkey"
MobPushConfig.appSecret = "appSecret"
statClient = StatsV3Client.new()
statResult = statClient.getStatsByWorkId("workId")

mobpush-websdkv3-ruby's People

Contributors

moblarry avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.