prawnsalad / Nexmo-PHP-lib

Nexmo SMS gateway example library
MIT License
121 stars 98 forks source link

sendRequest seems to fail #3

Closed trive closed 12 years ago

trive commented 12 years ago

Hi, thanks for your work on this PHP lib!

I was trying to run the example with my Nexmo account. I have of course replaced the key and the secret but I unfortunately obtain "Cannot display an overview of this response".

I tried to debug the problem. Apparently $from_nexmo is empty while this is $to_nexmo: Array ( [url] => https://rest.nexmo.com/sms/json [content_type] => [http_code] => 0 [header_size] => 0 [request_size] => 0 [filetime] => 0 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 0 [namelookup_time] => 0 [connect_time] => 0 [pretransfer_time] => 0 [size_upload] => 0 [size_download] => 0 [speed_download] => 0 [speed_upload] => 0 [download_content_length] => -1 [upload_content_length] => -1 [starttransfer_time] => 0 [redirect_time] => 0 )

Does this look correct? Am I doing something wrong?

Thank you.

trive commented 12 years ago

I didn't realize I enable a whitelist of servers towards which to allow connections. Sorry about that.