gotify api php
Version 1.10.0
PHP庫使用GoTify REST-API與GoTify服務器進行交互。
支持Gotify Server 2.5版或更新版本。
composer require verifiedjoseph/gotify-api-php
require __DIR__ . ' /vendor/autoload.php ' ;
use Gotify Server ;
use Gotify Auth Token ;
use Gotify Endpoint Message ;
// Set server
$ server = new Server ( ' https://gotify.example.com/ ' );
// Set application token
$ auth = new Token ( ' ApplicationTokenHere ' );
// Create a message class instance
$ message = new Message ( $ server , $ auth );
// Send a message
$ message -> create (
title: ' hello? ' ,
message: ' Hello World ' ,
priority: Message:: PRIORITY_HIGH ,
);JSONcURL guzzlehttp/guzzle
該項目的所有值得注意的更改都記錄在ChangElog中。
麻省理工學院許可證。請參閱許可證以獲取更多信息。