eitaaphplib
v1.0.0
eitaaphp는 PHP에서 eitaayar API와 함께 작업하기위한 가벼운 라이브러리입니다.
$ composer require arjomand/eitaa
$ git clone https://github.com/mohammadali-arjomand/eitaaphplib.git
알아채다
프로젝트에 라이브러리 추가에 git을 사용하는 경우 프로젝트에 컬도 추가해야합니다.
이제 라이브러리 파일을 포함해야합니다.
include " eitaa.php " ;이 라이브러리를 사용하기 위해 :
$ 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 " ]);예
~/examples의 예제 코드를 볼 수 있습니다