Do I need to add more applicationsetting.json or code if I want to use a custom SenderID ?
assuming I have purchased the SenderID
here is my code :
string PhoneNo = "081375840392";
string SenderID = "CUSTOM";
var results = SMS.Send(new SMS.SMSRequest
{
from = SenderID,
to = PhoneNo,
text = "Test Sms"
});
and here is my appsettings.json
{
"appSettings": {
"Nexmo.UserAgent": "myApp/1.0",
"Nexmo.Url.Rest": "https://rest.nexmo.com",
"Nexmo.Url.Api": "https://api.nexmo.com",
"Nexmo.api_key": "369b4188",
"Nexmo.api_secret": "0d1479g48e641c89",
"Nexmo.Application.Id": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"Nexmo.Application.Key": "c:\\path\\to\\your\\application\\private.key"
}
}
there is no need to add more appsettings.json Just change the from parameter