How to turn the output of the POST Request Operator into data?

me
me New Altair Community Member
edited November 5 in Community Q&A
I am using the POST Request operator to run multiple requests. However, I can't seem to turn the responses into something I can plug into the Web Automation operator as json input to be parsed. Anyone has experience with this?

Best Answers

  • land
    land New Altair Community Member
    Answer ✓
    Well, not really crazy. More a good input for our usability :) Its just the extension logo in our company colors. Perhaps we should invert the colors to avoid this misunderstanding...

    If you use the Send Request operator, you will simply get the result as a FileObject. This is an object within RapidMiner that you can use to handle binary data. E.g. you can write it as file somewhere on your computer, copy it, etc. Most Read operators can use it as input, and if it's json, you can pass it to a "Parse JSON from File" operator's file input port. In order to parse the JSON you will need to supply a parse specification as highlighted in the blogs I linked above

Answers

  • MartinLiebig
    MartinLiebig
    Altair Employee
    CC: @land who is the expert on this.
  • me
    me New Altair Community Member
    @land I do have a subscription to Web Automation. I just figured this out. So this will sound crazy but the red ring around those operators icons made me think they were deprecated, I have been avoiding those since I first got this extension  :/
  • me
    me New Altair Community Member
    @land There's no tutorial on what to do with the response once I get it w/ the send request operator. Do you know where I can find more info on that?
  • land
    land New Altair Community Member
    Answer ✓
    Well, not really crazy. More a good input for our usability :) Its just the extension logo in our company colors. Perhaps we should invert the colors to avoid this misunderstanding...

    If you use the Send Request operator, you will simply get the result as a FileObject. This is an object within RapidMiner that you can use to handle binary data. E.g. you can write it as file somewhere on your computer, copy it, etc. Most Read operators can use it as input, and if it's json, you can pass it to a "Parse JSON from File" operator's file input port. In order to parse the JSON you will need to supply a parse specification as highlighted in the blogs I linked above