芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/network.digitalhubbd.com/fns/sms_gateway/twilio.php
twilio_account_sid; $token = Registry::load('settings')->twilio_auth_token; try { $client = new Twilio\Rest\Client($sid, $token); $result['success'] = true; $result['response'] = $client->messages->create( $data['phone_number'], [ 'from' => Registry::load('settings')->sms_src, 'body' => $data['message'] ] ); } catch (Exception $e) { $result['response'] = $e->getMessage(); $result['success'] = false; }