定制 jobstreet/js-push-notification 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jobstreet/js-push-notification

Composer 安装命令:

composer require jobstreet/js-push-notification

包简介

JS Push Notification SDK

README 文档

README

JobStreet.com Push Notification Service

##Installation

Using Composer:

composer require jobstreet/js-push-notification 1.0.0

##Usage

This is the minimal example that you'll need to have:

require_once 'vendor/autoload.php';

$client = new JSPNClient(array(
    'applicationId' => 'YOUR_APPLICATION_ID',
    'isSandbox'     => true
));

$response = $client->publishMessage(12345, 'This is the notification message', array(
    'customParameter1' => 'parameter'
), array(
    'notificationOptions' => 'options'
));

if($response == 1) {
    echo 'Successfully publish message';
}
else {
    echo 'Failed to publish message. Error message ' . $response->error->message;
}

##Configuration File You may want to create a client config file in other place. Here is the example of defining the config file:

define('JSPN_CONFIG_PATH', 'path/to/config.php');

require_once 'vendor/autoload.php';

$client = new JSPNClient();

config.php


return array(
    'applicationId' => 'YOUR_APPLICATION_ID',
    'isSandbox'     => true
);

##Documentation

More information and example are available at JSPushNotification SDK Wiki

统计信息

  • 总下载量: 11.78k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-08-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固