SMS OTP Sender with AWS SNS and Node.js

Поділитися
Вставка
  • Опубліковано 7 лис 2024

КОМЕНТАРІ • 26

  • @aryanshaw2462
    @aryanshaw2462 11 місяців тому +20

    do not add background music again

  • @oscarvasquez5033
    @oscarvasquez5033 Місяць тому

    Appreciate your time Ado!

  • @salaar-zj2ks
    @salaar-zj2ks 10 місяців тому +6

    What is that background music? Do you think you're going to play these videos at a DJ event or something?

    • @CodingWithAdo
      @CodingWithAdo  10 місяців тому

      Tried that, didn’t make enough money 😂😂

  • @asfandhafeez87
    @asfandhafeez87 2 місяці тому

    I want to integrate same thing send otp on phone but its not working in my case for swift and android can you help me ?

  • @rocktech2359
    @rocktech2359 8 місяців тому

    Hi, I need a help i successfully sent sms and getting response from api call with messageId and success. that means the message is delivered but the intended user did not receive any message. Could you please help me to resolve this issue, i have been trying could not able to find any way to solve it.

    • @CodingWithAdo
      @CodingWithAdo  8 місяців тому

      1st which country?
      2nd mind sharing the log message here?

    • @rocktech2359
      @rocktech2359 8 місяців тому

      @@CodingWithAdo Country : India
      Country code : +91
      here is the messageId:
      {
      "message": "0562fc1e-c464-509d-8ec7-a24197b2fe18",
      "success": true
      }
      here is the code im using take make call to sns
      const credentials = await fromIni({});
      logCredentials();
      console.log("credentials:",credentials);

      const snsClient = new SNSClient({
      region: 'ap-south-1',
      credentials: credentials
      });
      const params = {
      Message: message,
      PhoneNumber: phoneNumber
      // MessageAttributes: {
      // 'AWS.SNS.SMS.SenderID': {
      // DataType: 'String',
      // StringValue: subject
      // }
      // }
      };
      const command = new PublishCommand(params);
      const data = await snsClient.send(command);
      console.log("Message sent. MessageId:", data);

    • @abhatiwari9162
      @abhatiwari9162 8 місяців тому

      country:India
      country code:+91
      log message:
      {
      "message":"a3e8e6e4-1af-5663-bb32-b8850a248724",
      "success":true}

  • @greendsnow
    @greendsnow Рік тому

    I can't hear you. sorry. Where did you get the phone number from, AWS interface is so complicated.?

    • @CodingWithAdo
      @CodingWithAdo  Рік тому

      Yeah, i did a poor job mixing my voice and the background music, i will try to re-upload this video, thanks for the heads up!

    • @CodingWithAdo
      @CodingWithAdo  Рік тому

      The phone number is the destination number

  • @kernellpanic
    @kernellpanic 7 місяців тому

    I can't make it work with US phone numbers.

    • @CodingWithAdo
      @CodingWithAdo  7 місяців тому

      Do you want to share your Github repo and i can take a look

    • @kernellpanic
      @kernellpanic 7 місяців тому

      code is the same as yours. It works with other countries' phone numbers.

  • @justforentertaiment8008
    @justforentertaiment8008 Рік тому

    hi sir when i tried with similar code in node js iam able to send message for indian numbers but it is failing for us numbers it is aws console showing failed how to fix it it

    • @CodingWithAdo
      @CodingWithAdo  Рік тому

      stackoverflow.com/questions/69539036/why-are-my-sms-messages-sent-via-amazon-sns-not-being-received-by-indian-phone-n

    • @NarayanMaity-z5n
      @NarayanMaity-z5n Рік тому

      did u configure something else other than in this video is showing to send message to indian numbers because i am getting any messages

    • @CodingWithAdo
      @CodingWithAdo  Рік тому

      @@NarayanMaity-z5n No other configuration than the one you saw, if you want, send me a DM and we can chat so I can help you debug it

    • @NarayanMaity-z5n
      @NarayanMaity-z5n Рік тому

      @@CodingWithAdo actually i did exactly you shown in video after that i did some of own research and then now i get the response when i see in aws sns console i see the the messages are failed

    • @CodingWithAdo
      @CodingWithAdo  Рік тому

      @@NarayanMaity-z5n for US phone numbers you need to have a number configured on aws, docs.aws.amazon.com/sns/latest/dg/channels-sms-awssupport-long-code.html

  • @returnZeroo
    @returnZeroo 6 місяців тому

    background music was totally awfull for this video,

  • @oldninjarider
    @oldninjarider 5 місяців тому

    lose the music