Comments (13)
Hi @segunmicheal27, thanks for reaching out (and sorry for the delay getting back to you)
That error indicates that your machine cannot reach rest.nexmo.com. The endpoint is working fine from my machine. Could you try again to make sure that it wasn't a temporary issue?
If you still can't connect, we can try and work it out together
Cheers, Michael
from nexmo-laravel.
i think there is issue with guzzle http, i use another curl library to make the request and it went through
let me try it again but i was trying it on my localhost
from nexmo-laravel.
i am still experiencing same error
i am using laravel 5.5 run with phpstorm IDE
i am 100% sure that all my credential are all correct
from nexmo-laravel.
Could you share code and/or explain what you're trying to accomplish so that I can try and replicate the issue?
from nexmo-laravel.
okay
public function sendSMS($message){
Nexmo::message()->send([
'to' => '2348154967721',
'from' => '2348154967721',
'text' => $message
]);
}
and here is my route
Route::get('/send/sms/{message}', 'UsersController@sendSMS')->name('send_sms');
from nexmo-laravel.
@segunmicheal27 I just ran this code on Laravel 5.5 (changing to/from to my number) and received the message as expected.
Which versions of the following are you using?
- Laravel
- Nexmo/Laravel
- Guzzle
from nexmo-laravel.
i am using laravel 5.5
"nexmo/client": "^1.1",
"nexmo/laravel": "1.0.2"
the Guzzle version that come laravel
i guess Guzzle 6.30
from nexmo-laravel.
please can you share ur code sample here or paste bin
from nexmo-laravel.
I've uploaded the project to https://github.com/mheap/nexmo-laravel-test
You'll need to copy .env.example
to .env
and add your Nexmo credentials. You'll also have to change to/from in UsersController
from nexmo-laravel.
i am getting error Non White-listed Destination - rejected
from nexmo-laravel.
@segunmicheal27 Are you sending a message your own phone number that you provided to Nexmo to test?
from nexmo-laravel.
yes
from nexmo-laravel.
@segunmicheal27 To confirm, have you followed these instructions? https://help.nexmo.com/hc/en-us/articles/204014853-Nexmo-trial-period-How-to-add-numbers-to-list-of-permitted-destinations-
from nexmo-laravel.
Related Issues (20)
- Nexmo Issue with getting api_key/secret HOT 8
- Package zendframework/zend-diactoros is abandoned HOT 1
- Laravel 8 compatibility HOT 6
- Vonage Voyagers application: Create a more detailed SMS log HOT 6
- Migrate to Vonage/vonage-php-sdk-core before 10/01/2021 HOT 2
- nexmo/client 0.4.0 error HOT 3
- Agrinnovation
- @new Verification returns an exception HOT 7
- Ambigious Class Resolution HOT 2
- Using Nexmo in Laravel with Multi-tenancy HOT 2
- web monetization
- Missing ability to search landline-toll-free HOT 8
- Error sending SMS HOT 2
- Error while checking PIN HOT 1
- Larastan warnings HOT 1
- Upgrade vonage/client HOT 2
- Support Laravel 9 HOT 8
- Send SMS for two different phone numbers HOT 1
- Is Inbound Message concatenation supported? HOT 1
- Support Laravel 9 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nexmo-laravel.