samiaraboglu/alotech-api-bundle
最新稳定版本:1.0.4
Composer 安装命令:
composer require samiaraboglu/alotech-api-bundle
包简介
Symfony AloTech Api Bundle
README 文档
README
Use the AloTech PHP API.
Download the Bundle
$ composer require samiaraboglu/alotech-api-bundle
Enable the Bundle
Registered bundles in the app/AppKernel.php file of your project:
<?php class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new Samiax\AloTechApiBundle\SamiaxAloTechApiBundle(), ); // ... } // ... }
Config
Add this to config.yml:
samiax_alo_tech_api: username: "{USERNAME}" app_token: "{APP_TOKEN}"
Example - Click 2 Call
/** * @Route("/alotech/click2/call", name="alotech/click2/call") */ public function callAction(Request $request) { $service = $this->get('samiax_alo_tech_api.alotech'); $service->login('{EMAIL}'); $service->click2->call([ 'phonenumber' => '{PHONE_NUMBER}', 'hangup_url' => '{YOUR_HANGUP_URL}' ]); return new Response(); }
统计信息
- 总下载量: 16.75k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-03-05