eitaaphplib
v1.0.0
Eitaaphp es una biblioteca liviana para trabajar con la API de Eitaayar en PHP
$ composer require arjomand/eitaa
$ git clone https://github.com/mohammadali-arjomand/eitaaphplib.git
AVISO
Si usa GIT para agregar biblioteca a su proyecto, también debe agregar curl en su proyecto
Ahora debe incluir el archivo de la biblioteca:
include " eitaa.php " ;Para usar esta biblioteca:
$ 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 " ]);Ejemplos
puede ver el código de ejemplos en
~/examples