Freshsales Logo freshsales

Freshdesk App can work with AWS Javascript SDK?

Hi,


I am just getting started to develop a freshdesk app project using AWS Javascript SDK. Before getting further, I have followed the instruction from AWS to simply include <script src="https://sdk.amazonaws.com/js/aws-sdk-2.7.20.min.js"></script> in template.html

and simply created an object var s3 = new AWS.S3(); or  var s3 = new window.AWS.S3(); in app.js for a test.


However, it returned  "Uncaught ReferenceError: AWS is not defined" OR "Uncaught TypeError: Cannot read property 'S3' of undefined" in console log when I tried to run it from browser.


May I know any limitation or need any attention to work with AWS Javascript SDK?


http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/js-sdk-dv.pdf

ADMIN

We have sometimes noticed a timeout issue while loading scripts. As a workaround, could you try jQuery.getScript to load the script?


Login or Signup to post a comment