eitaaphplib
v1.0.0
Eitaaphp ist eine leichte Bibliothek für die Arbeit mit Eitaayar API in PHP
$ composer require arjomand/eitaa
$ git clone https://github.com/mohammadali-arjomand/eitaaphplib.git
BEACHTEN
Wenn Sie GIT für die Add -Bibliothek zu Ihrem Projekt verwenden, sollten Sie auch Curl in Ihr Projekt hinzufügen
Jetzt sollten Sie Bibliotheksdatei einschließen:
include " eitaa.php " ;Für die Verwendung dieser Bibliothek:
$ token = " bot16344:6d3e4430-****-****-****-************ " ;
$ channel_id = 23333622 ; $ eitaa = new EitaaPHP ( $ token , $ channel_id ); // send message
$ eitaa -> sendMessgae ( " YOUR_TEXT_TO_SEND " );
// send file
$ eitaa -> sendFile ( " YOUR_FILE_PATH_TO_SEND " );~/docs/other-argument.md ). // send message
$ eitaa -> sendMessgae ( " YOUR_TEXT_TO_SEND " , [ OTHER_PARAMETER => " VALUE " ]);
// send file
$ eitaa -> sendFile ( " YOUR_FILE_PATH_TO_SEND " , [ OTHER_PARAMETER => " VALUE " ]);Beispiele
Sie können Beispiele in
~/examplessehen