Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to use nexmo with a test api key?

I wonder how we're suppose to integrate and unittest nexmo. They don't have any test api key such as stripe, etc. They also charge you regardless of whether sms is sent or not

They don't publish numbers where you can send a messae and not get charged for. So, how do people test a nexmo integration without spending real money?

like image 503
bustrofedon Avatar asked Jan 30 '13 15:01

bustrofedon


People also ask

What is Nexmo API?

Nexmo's SMS API allows you to send and receive text messages to users around the globe through simple RESTful APIs.

How do I get my Vonage API key?

Log in to your Vonage API account dashboard. From the left sidebar, select your username to expand the menu. Select Settings. Under the API Keys section, you can view your API Key and Account Secret.

How does Nexmo work?

Vonage SMS (formerly known as Nexmo) is an American and international SMS gateway provider (based in San Fransisco) which provides features such as messaging apps and messaging APIs, enabling businesses to send mass text messages to audiences for as little as $0.0075 per text message.


3 Answers

To start using Nexmo, start off by signing up at https://dashboard.nexmo.com/sign-up

You start off with credit in your account that you can test out the apis with. As you start off with the demo, you are provided with an api_key, api_secret, and a number that is assigned to your account.

You can have 10 whitelisted numbers you are allowed to use in the "to" fields (depending on which api you use).

From here, you just have to make an HTTP call to start sending your first text. You can test out the API by making the call in your application or using a site like: https://www.hurl.it/ and entering the base URL ( https://rest.nexmo.com/sms/json? ) and entering the required parameters' name and value.

Full disclosure, I work at Nexmo

like image 122
Sidharth Sharma Avatar answered Oct 19 '22 00:10

Sidharth Sharma


When you sign up for an account they give you some credit for free. This should be enough to allow you to test, get your application working and realise if you want to use their SMS gateway in the long run.

Your best bet it to contact them. They tend to be very quick and helpful when replying.

like image 1
Pattle Avatar answered Oct 18 '22 23:10

Pattle


There is a sandbox api that you can get a test api key.

https://labs.nexmo.com/

This is great for familiarising yourself with the api, and simulating situations that won't happen in the real world.

However it would be great to be able to use the actual api as you describe.

like image 1
Kerridge0 Avatar answered Oct 18 '22 23:10

Kerridge0