Custom REST connector with POST method

Comments

6 comments

  • Avatar
    Ronen Avidor

     

    Hi Michael,

    Please see below a sample POST method used to get an API token :

    {
    "Name": "Token",
    "Public": "False",
    "Schema": "Https",
    "Method": "POST",
    "Base": "[@Settings.Parameters.baseUrl]",
    "Path": "/login/version/3",
    "Headers": {},
    "Headers": {},
    "PathParameters": [],
    "QueryParameters": {
    "email": "[@Settings.Parameters.email]",
    "password": "[@Settings.Parameters.password]",
    "user_key": "[@Settings.Parameters.user_key]",
    "format": "json"
    },
    "Body": {},
    "DataFormat": "Json",
    }

  • Avatar
    Oxana Noa Umansky

    Thanks for helping out Ronen!

     

  • Avatar
    Michael Winer

    Hey,

    This is currently not helping us.

    We have discussed many of these matters.

    Please review this thread with your CS :

     https://support.sisense.com/hc/en-us/requests/52181

     

    Let me know if you have any questions or you know the answer.

    The config with credentials file can also be found there .

     

    Thanks.

     

     

     

     

  • Avatar
    Ramon Lopez (Edited )

    Hi Michael

    Please see below table with a body.  Hope this helps with the format of the POST command.

    {
    "Name": "Token",
    "Schema": "Https",
    "Method": "POST",
    "Base": "https://XYZABC.com/rest/v3/login",
    "Headers": {
    "API-key": "fhjnfgjngkldnglkngljsfdnjdfsnk",
    "Content-Type": "application/json"
    },
    "DataPath": "",
    "Body": {
    "credentials": {
    "username": "Paul",
    "password": "SisenseForever",
    "company": "ACME"
    }
    },
    "ResponseFormat" : "JSON"

    }

    Regards,
    Ramon Lopez
  • Avatar
    Michael Winer

    Hey,

    Thanks for the attempt.

    The credentials is not what we need,

    We need a json format inside the body.

    We were supposed to have a meeting with Kobi + Tech who understands druid but this was cancelled.
    Can we make this meeting happen ? This mail thing is just not working.
    I will bring Richard , our architect. 

     

     

  • Avatar
    Oxana Noa Umansky

    Hi Michael,

    I see that you have an open ticket with our support team about the issue. I'll update the ticket with your request to schedule a meeting and someone from support will be in contact with you soon.  

    Thank you

    Oxana

Please sign in to leave a comment.