Download the PHP package zengjj/uc-client without Composer

On this page you can find all versions of the php package zengjj/uc-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package uc-client

uc-client

SDK使用

获取应用 TOKEN

SDK调用

请求参数

参数 类型 必填 描述
base_url string 是 用户中心api地址
app_key string 是 应用KEY
app_secret string 是 应用SECRET

调用示例

获取用户 TOKEN

SDK调用

请求参数

参数 类型 必填 描述
base_url string 是 用户中心api地址
app_key string 是 应用KEY
phone string 是 用户电话
password string 是 用户密码

调用示例

应用生成 (项目初始化时使用)

SDK调用

请求参数

参数 类型 必填 描述
base_url string 是 用户中心api地址
app_key string 是 应用KEY
phone string 是 用户电话
password string 是 用户密码
name string 是 应用名
hosts string 是 当前域名(即申请应用网站地址)
type string 是 应用类型
desc string 是 应用描述

调用示例

检测APP_TOKEN是否有效

SDK调用

请求参数

参数 类型 必填 描述
base_url string 是 用户中心api地址
app_token string 是 应用token

调用示例

获取已授权企业列表

SDK调用

请求参数

参数 类型 必填 描述
base_url string 是 用户中心api地址
app_token string 是 应用token

调用示例

删除极光别名

SDK调用

请求参数

参数 类型 必填 描述
base_url string 是 用户中心api地址
app_token string 是 app token
alias string 是 别名

调用示例

极光推送

SDK调用

请求参数

参数 类型 必填 描述
base_url string 是 用户中心api地址
app_token string 是 app token
content string 是 内容
alias string 否 别名
jg_key string 否 极光key
jg_secret string 否 极光secret
registration_id string 否 极光分配的ID

调用示例

站内通知消息推送

SDK调用

请求参数

参数 类型 必填 描述
base_url string 是 用户中心api地址
app_token string 是 app token
data string 是 消息通用结构

调用示例

推送企业微信消息

SDK调用

请求参数

参数 类型 必填 描述
base_url string 是 用户中心api地址
app_token string 是 app token
phone string 是 用户电话

调用示例

Index

获取应用 TOKEN

API调用

请求URL

请求方式

请求参数

参数 类型 必填 描述
app_key string 是 应用KEY
app_secret string 是 应用SECRET

获取用户 TOKEN

API调用

请求URL

请求方式

请求参数

参数 类型 必填 描述
app_key string 是 应用KEY
phone string 是 手机号
password string 是 密码

App

检测Token

http://api.yefengwo.com/app/check-token

| 参数|类型|必填|描述 | | ------------ | ------------ | ------------ | | app_token|string|是|应用TOKEN |

获取已授权企业列表

http://api.yefengwo.com/app/work-corp-list

| 参数|类型|必填|描述 | | ------------ | ------------ | ------------ | | app_token|string|是|应用TOKEN |

极光推送 (仅仅推送语音播报)

http://api.yefengwo.com/app/jg-push

| 参数|类型|必填|描述 | | ------------ | ------------ | ------------ | | app_token|string|是|应用TOKEN | | content|string|是|内容 | | registration_id|string|与alias二选一|设备ID | | alias|string|与registration_id二选一|别名(一般为手机号) |

站内消息推送 (含语音播报)

http://api.yefengwo.com/app/send-notice-msg

| 参数|类型|必填|描述 | | ------------ | ------------ | ------------ | | app_token|string|是|应用TOKEN | | phone|string|是|手机号 | | data|array|是|数据 |

data内容

    [
        'content' => '子应用消息展示内容',
        'voice' => '推送的语音播报内容', // 非必要
        'url' => '消息点击跳转链接', // 非必要
        'send_key' => '推送组件的key', // 非必要
        'send_secret' => '推送组件的secret', // 非必要
    ]

推送企业微信消息

http://api.yefengwo.com/app/send-work-corp-msg

| 参数|类型|必填|描述 | | ------------ | ------------ | ------------ | | app_token|string|是|应用TOKEN | | internal|int|是|同应用 1或0 默认1 | | phone|string|是|手机号 | | data[object]|string|是|消息对象 | | data[properties]|string|是|消息主体 |

object 和 properties
- \EasyWeChat\Kernel\Messages\Text
    '内容'
- \EasyWeChat\Kernel\Messages\TextCard
    [
        'title' => '标题',
        'description' => '描述',
        'url' => '链接'
    ]

注册 | 反向用户同步(用户数据在应用内有,中心没有)

http://api.yefengwo.com/app/reverse-sync-user

| 参数|类型|必填|描述 | | ------------ | ------------ | ------------ | | app_token|string|是|应用TOKEN | | phone|int|是|手机号 | | password|string|是|密码 | | more|array|否|更多数据 |

User

获取用户数据

http://api.yefengwo.com/user/info

| 参数|类型|必填|描述 | | ------------ | ------------ | ------------ | | app_key|string|是|应用KEY | | token|int|是|用户TOKEN |

刷新TOKEN

http://api.yefengwo.com/user/token-refresh

| 参数|类型|必填|描述 | | ------------ | ------------ | ------------ | | app_key|string|是|应用KEY | | token|int|是|用户TOKEN | | work_corp_id|int|否|需使用的企业微信的ID |

获取已使用企业列表

http://api.yefengwo.com/user/work-corp-list

| 参数|类型|必填|描述 | | ------------ | ------------ | ------------ | | token|string|是|用户TOKEN |

校验用户密码

http://api.yefengwo.com/user/check-app-pwd

| 参数|类型|必填|描述 | | ------------ | ------------ | ------------ | | app_key|string|是|应用KEY | | token|int|是|用户TOKEN | | pwd|int|是|密码 |

同步用户密码

http://api.yefengwo.com/user/sync-app-pwd

| 参数|类型|必填|描述 | | ------------ | ------------ | ------------ | | app_key|string|是|应用KEY | | token|int|是|用户TOKEN | | pwd|int|是|密码 |

获取站内通知消息列表

http://api.yefengwo.com/user/get-notice-msg-list

| 参数|类型|必填|描述 | | ------------ | ------------ | ------------ | | app_key|string|是|应用KEY | | token|int|是|用户TOKEN | | page|int|否|页 | | num|int|否|数量 |

获取并修改站内通知消息的读取状态

http://api.yefengwo.com/user/read-notice-msg

| 参数|类型|必填|描述 | | ------------ | ------------ | ------------ | | app_key|string|是|应用KEY | | token|int|是|用户TOKEN | | id|int|是|消息ID |


All versions of uc-client with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^6.2 || ^7.0
php Version >=5.6
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zengjj/uc-client contains the following files

Loading the files please wait ...