Is there a way to pass in a body to an HTTPS GET request within the Domo Connector IDE?

Options

In Domo's Custom Connector documentation, they talk about the 'httprequest.get(url)' funtion (see here: https://developer.domo.com/portal/e415bb99d21b2-reference#httprequestgeturl ). Unlike PUT and POST, there is no argument available to supply a body to the GET request. Is this a missing functionality, or am I supposed to pass in the body a different way? Without this, there are several API endpoints that can't be accessed via a Domo Custom Connector…

Best Answers

  • GrantSmith
    GrantSmith Coach
    Answer ✓
    Options

    HTTP GET requests typically don't accept body parameters as part of the protocol specifications. GET requests typically pass parameters as part of the URL as URL parameters instead of body parameters. Are you able to pass those using addParameter before your request?

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**
  • GrantSmith
    GrantSmith Coach
    Answer ✓
    Options

    Does it accept a POST request instead of a GET request?

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**

Answers

  • GrantSmith
    GrantSmith Coach
    Answer ✓
    Options

    HTTP GET requests typically don't accept body parameters as part of the protocol specifications. GET requests typically pass parameters as part of the URL as URL parameters instead of body parameters. Are you able to pass those using addParameter before your request?

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**
  • @GrantSmith Unfortunately no, this particular API requires a body in order to add filters or a date range to the call (even though I agree that those should be passed in as Parameters). Not sure how easy it would be to implement in Domo, but I think this could be submitted as a Product Idea 👍️

  • GrantSmith
    GrantSmith Coach
    Answer ✓
    Options

    Does it accept a POST request instead of a GET request?

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**
  • Ooooo now that might work, it's not in the documentation but it will probably still function! Let me try it out…

  • That did it, thank you!