2 Replies Latest reply on Dec 12, 2017 9:08 PM by anil saini

    Get data from Rest API in Tableau

    anil saini

      Hi Guys,

       

      I have an api which is currently fetching some data from my database and integrated in one of our web portal.

      NOTE:- this is a sample API, will not work in postman as i changes them due to organisation security purpose

       

      Let me give you some context of that api

      API URL:- http://myapiurl.com/myapi/appLaunch/init

      Method: POST

      Headers:-

           tokenid: tQUqJZaOcWBPqivdSmJvFeL3

           sourcesystemid:110001

      Body parameters(json): ( "appversion":"2"}

       

      when i hit this api in postman it will give me response in json

       

      {

          "code": 1,

          "desc": "Success",

          "payload": {

                  info:{

                      "concernPerson": "ABC",

                      "email": "abc@def.com",

                      "mobile": "+919999999999",

                      "address": "new delhi"

          

              }

          }

      }

       

       

      Now i want to hit this API from tableau, read JSON output which is in payload.

       

       

      Can anyone helps me with this.

       

      NOTE: this API will give output only when header and parameter are there with it.

       

      Thanks in advance