ternary / rpc
ternary http client library
dev-master
2021-11-02 10:01 UTC
Requires
- php: >=7.3
- guzzlehttp/guzzle: ~7.4
- tightenco/collect: v8.34.0
This package is auto-updated.
Last update: 2024-03-29 04:46:08 UTC
README
This is a private warehouse service, feel free to use, problems need to be resolved
Test code
require_once './vendor/autoload.php'; use Ternary\Http\TernaryHttp; $url = 'https://tmsgcenterapi.geniuel.com/push_notification'; $params = ['user_list' => ['598'], 'notification' => '测试调用']; $response = TernaryHttp::asJson()->setConnectTimeout(2) ->setRequestTimeout(5)->post($url, $params)->json(); dd($response);