Direct Api access.

This commit is contained in:
Alexander Pankratov 2019-01-20 20:20:41 +03:00
parent bfff799f5a
commit d1f314bba5

View File

@ -93,7 +93,8 @@ Fast, simple, async php telegram client and parser: MadelineProto + Swoole Serve
* Url: `http://%address%:%port%/api/%method%/?%param1%=%val%` * Url: `http://%address%:%port%/api/%method%/?%param1%=%val%`
* All available methods you can find in `src/Client.php`. * All available methods you can find in `src/Client.php`.
* <b>Important: All parameters must be passed at strict order!</b> * <b>Important: All parameters must be passed at strict order!</b>
* <b>Important: api available only from ip in whitelist. By default it is: `127.0.0.1` * <b>Important: api available only from ip in whitelist.</b>
By default it is: `127.0.0.1`
You can add client ip in .env file to `API_CLIENT_WHITELIST` (use json format) You can add client ip in .env file to `API_CLIENT_WHITELIST` (use json format)
Examples: Examples: