Simple API using AWS API Gateway, Lambda & SNS

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ม.ค. 2025

ความคิดเห็น • 12

  • @harsharya4109
    @harsharya4109 2 ปีที่แล้ว

    Very helpful video. thanks bro

  • @surya5064
    @surya5064 2 ปีที่แล้ว

    Thanks bro, got the flow of creating the lambda's.

  • @mayanktripathi4u
    @mayanktripathi4u 3 ปีที่แล้ว +1

    Thanks for the video, this really helps. Could you please suggest how to implement this using the browser, as Client / User will not use the Postman, for them we have to provide some interface, for same I was doing a demo and created a HTML + JavaScript (ajax call to API) however it is failing, and not getting any response back. Not sure what I am missing there. Please suggest.
    Below is the ajax code snippet which I am using.
    $.ajax({
    type: "POST",
    url : URL,
    dataType: "json",
    mode: 'no-cors',
    crossDomain: "true",
    contentType: "application/json; charset=utf-8",
    data: JSON.stringify(data),
    success: function () {
    // clear form and show a success message
    alert("Your entry is saved Successfuly");
    document.getElementById("my-form").requestFullscreen();
    location.reload();
    },
    error: function() {
    // show an error message
    alert("Seems some issue with the entry, try again.")
    }
    });

    • @InfiniteLinux
      @InfiniteLinux  3 ปีที่แล้ว

      sorry but im not a javascript guy, more of python scripter, but in the past I have used html forms to make api requests from UI, i think some googling would actually get you what you are looking for

  • @lakshminarayanans5261
    @lakshminarayanans5261 2 ปีที่แล้ว

    perfectly working

  • @offensivebias3965
    @offensivebias3965 3 ปีที่แล้ว

    Hello , i am able to receive the email , but somehow im getting an error on Postman ? is it an error on code ? status code says 200 i dont know why , please help
    {
    "errorMessage": "Syntax error in module 'lambda_function': unexpected indent (lambda_function.py, line 13)",
    "errorType": "Runtime.UserCodeSyntaxError",
    "stackTrace": [
    " File \"/var/task/lambda_function.py\" Line 13
    return response
    "
    ]
    }

    • @surya5064
      @surya5064 2 ปีที่แล้ว

      may be syntax error in your lambda function.

  • @PrakashKumar-bp9bs
    @PrakashKumar-bp9bs 3 ปีที่แล้ว

    Hi can you please also same step wise videos for sending multiple sms only with particular senderid

    • @InfiniteLinux
      @InfiniteLinux  3 ปีที่แล้ว +1

      okay, but that would require some third party messaging service provider like twilio, I need to look into it