question

MITRADebarthaGECoreTechCyber-2843 avatar image
0 Votes"
MITRADebarthaGECoreTechCyber-2843 asked ryanchill answered

How will I call an azure web app from a html hyperlink?

Hi,
I have made an azure web app which sends email to outlook.

In the email html body there is one hyperlink and when user clicks on that link, it will call another azure web app. So, right now my requirement is to connect with another azure web app using the hyperlink. The azure web app is written in python flask and I need to call that flask app from the hyperlink.

How to configure that in the hyperlink and call another azure web app ?

Any suggestion will help.

Thanks in advance.

azure-webapps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered

Hi @MITRADebarthaGECoreTechCyber-2843,


Depending on how your API call is, add requests package and something very simiilar to this should work:


 @app.route('/hello')
 def hello():
     r = requests.get('http://yourapp.azurewebsites.net')
     return r.text


See https://stackoverflow.com/a/25154944/10987310.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.