Can't run Nexmo API using EasyPHP -
i'm using easyphp on computer localweb. i'm trying use pre-built php code use nexmo api available @ https://github.com/prawnsalad/nexmo-php-lib
but when try send sms, error: cannot display overview of response
how can fix this?
first can enable error reporting:
<?php error_reporting(e_all); ini_set('display_error', 1); ?>
secondly
can check if have either curl or allow_url_fopen enabled? can create phpinfo() file <?php phpinfo(); ?>
.
edit:
can change code to
<?php include "nexmomessage.php"; $nexmo_sms = new nexmomessage('api_key', 'api_secret'); $info = $nexmo_sms->sendtext( '+447234567890', 'myapp', 'hello!' ); var_dump($info); ?>
then rebun test , feedback.
thanks,
kyle, nexmo developer , helpdesk
Comments
Post a Comment