thinq / twilio-thinqlcr
Twilio Wrapper PHP 库,用于与 thinQ LCR 集成。
2.2
2017-04-11 16:25 UTC
Requires
- php: >=5.3
- twilio/sdk: ~5.0
This package is not auto-updated.
Last update: 2024-09-28 20:25:28 UTC
README
此包不再维护。您应该使用 REST API。
请注意,在使用库之前,您需要有效的 thinQ LCR 账户。有关更多信息,请联系 thinQ 销售代表,网址为 http://www.thinq.com
示例用法
<?php require_once __DIR__ . '/vendor/autoload.php'; use TwilioWithThinQLCR\TwilioWrapper; $twilio_account_sid = "SDIFUSDO4IFSDF4OSDF2OIDJSFOISDF"; $twilio_auth_token = "adsf987asd9f876sad98f7as9d8fsa9"; $thinQ_id = "12345"; $thinQ_token = "daf98dsf9g876sd987fg6d78fsg897dsf6g"; $from_number = "19198900000"; $to_number = "11234567890"; $twiML = "http://example.com/xml/twilio-custom.xml"; $wrapperObj = new TwilioWrapper($twilio_account_sid, $twilio_auth_token, $thinQ_id, $thinQ_token); $newCall = $wrapperObj->call($from_number, $to_number, array('url'=>$twiML)); echo "Call sid: " . $newCall->sid . PHP_EOL;