File manager - Edit - /home/autoph/public_html/tasks/api/v1/viber/webhook.php
Back
<?php require_once("../../../vendor/autoload.php"); use Viber\Client; $apiKey = '4ea7a840c9e7e7da-6455ceb946c2433c-569e8f349ab53511'; // from "Edit Details" page $webhookUrl = 'https://tasks.autohub.ph/api/v1/viber/bot.php'; // for exmaple https://my.com/bot.php try { $client = new Client([ 'token' => $apiKey ]); $result = $client->setWebhook($webhookUrl); echo "Success!\n"; } catch (Exception $e) { echo "Error: ". $e->getError() ."\n"; } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings