Download the PHP package verdient/saiya without Composer
On this page you can find all versions of the php package verdient/saiya. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download verdient/saiya
More information about verdient/saiya
Files in verdient/saiya
Download verdient/saiya
More information about verdient/saiya
Files in verdient/saiya
Vendor verdient
Package saiya
Short Description Saiya API SDK
License MIT
Homepage https://github.com/Verdient/saiya
Package saiya
Short Description Saiya API SDK
License MIT
Homepage https://github.com/Verdient/saiya
Please rate this library. Is it a good library?
Informations about the package saiya
Saiya Client
Saiya 客户端
创建客户端
获取请求对象
设置请求参数
添加参数
Header
, Query
, Body
均支持添加参数,相应方法为:
- addHeader($name, $value)
- addFilterHeader($name, $value)
- addQuery($name, $value)
- addFilterQuery($name, $value)
- addBody($name, $value)
- addFilterBody($name, $value)
其中addFilterXXX
与addXXX
的区别是addFilterXXX
仅添加非空参数,而addXXX
则无此限制
直接设置消息体
若消息体格式并非Key-Value格式或其他需要直接设置消息体的情况,可以直接调用
其中$data
可以为String
,Array
或Builder
及其子类的实例,$serializer
为字符串或匿名函数。setContent
的优先级比setBody
的优先级高,即设置了Content后无论是否设置Body,在发送时均会忽略Body的内容
发送请求
响应
批量请求
All versions of saiya with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.0
verdient/http-api Version ~0.0.0
tuupola/base62 Version ^2.1
verdient/signature Version ^0.1.0
verdient/http-api Version ~0.0.0
tuupola/base62 Version ^2.1
verdient/signature Version ^0.1.0
The package verdient/saiya contains the following files
Loading the files please wait ....