/ / Twilio kann keine echten SMS empfangen, wenn Sie das Testkonto in Node.js - node.js, sms, twilio, sms-gateway, twilio-api verwenden

Twilio kann keine echten SMS empfangen, wenn Sie das Testkonto in Node.js - node.js, sms, twilio, sms-gateway, twilio-api verwenden

Mein Code zum Versenden der SMS Node.js

var accountSid = ""; // Your Account SID from www.twilio.com/console
var authToken = "";   // Your Auth Token from www.twilio.com/console


// Load the twilio module
var twilio = require("twilio");

// Create a new REST API client to make authenticated requests against the
// twilio back end
var client = new twilio(accountSid, authToken);

// Pass in parameters to the REST API using an object literal notation. The
// REST client will handle authentication and response serialzation for you.
client.messages.create({
to: "my_number",  // verified
from: "+15005550006", // From a valid Twilio number
body:"ahoy hoy! Testing Twilio and node.js"
}, function(error, message) {
// The HTTP request to Twilio will run asynchronously. This callback
// function will be called when a response is received from Twilio
// The "error" variable will contain error information, if any.
// If the request was successful, this value will be "falsy"
if (!error) {
// The second argument to the callback will contain the information
// sent back by Twilio for the request. In this case, it is the
// information about the text messsage you just sent:
console.log("Success! The SID for this SMS message is:");
console.log(message.sid);

console.log("Message sent on:");
console.log(message.dateCreated);
} else {
console.log("Oops! There was an error.");
console.log(error)
}
});

Alles funktioniert gut, aber ich habe das nicht bekommen Tatsächliche / echte SMS Also, wie würde ich das bestätigen, wenn ich nur das Erfolgsergebnis auf der Konsole sehe. Deshalb möchte ich die Tatsächliche / echte SMS nicht nur Erfolgsmeldung in der Konsole?

Es gibt also keine Möglichkeit, die eigentliche Nachricht zu verwenden Probekonto.

Irgendwelche Vorschläge, Empfehlungen oder Antworten wären hilfreicher für mich Danke im Voraus!

Antworten:

0 für die Antwort № 1

Verwenden Sie einen Testaccount?

Wenn dies der Fall ist, müssen Sie die Nummer des Telefons, das Sie anrufen möchten, als verifizierte Nummer hinzufügen. Das kannst du machen Hier.