Azure Functions -making calls to third party api RRS feed

  • Question

  • New to azure function, I am trying to invoke a third party API using Azure functions, how can I do it? If I cannot use Azure functions is there anyother way to do it?
    • Moved by Zahid Faroq Thursday, June 28, 2018 6:23 AM Azure Functions related question
    Thursday, June 28, 2018 5:27 AM

All replies

  • Which API are you interested in calling?
    Thursday, June 28, 2018 9:11 PM
  • You can introduce the client that connects to your 3rd party API inside your Function code and call the 3rd party API using the client. For instance, when your Function is triggered, suppose you want to send the a message to Twitter, Facebook, or Instagram (3rd party APIs). You can create an HTTP client inside your Function code to send HTTP requests to these 3rd party APIs or import the 3rd party SDKs inside your Function code and call the desired methods.

    Here is a sample blog from one of our customers that is using Function to schedule tweets to his Twitter account.

    It is important to manage the client connections inside your Function code. If your Function executions very often, you want to avoid establishing a new connection for each request to the 3rd party APIs. Here are some documents that help explain the considerations and best practices when creating connections in your Function code.

    Thursday, June 28, 2018 10:39 PM
  • Hi,

    I am trying to call two APIs, one is ticketmaster and another is Bing Maps/Azure Maps. I am trying to write a function which would say that from point A to point B on the map in the route if there is a local event (like a parade) we need to avoid the path and use another path. 

    Sunday, July 1, 2018 2:13 AM