How to turn the output of the POST Request Operator into data?
me
New Altair Community Member
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?
Tagged:
0
Best Answers
-
Hi,thanks for cc'ing me, @mschmitz@me The Web automation is thought to be used with it's own operators for sending webservice requests. It provides operators for sending requests to webservice api endpoints. If the endpoint returns json, the Send JSON Request operator allows you to directly parse the json into one or more data sets by providing parse configuration to it's input port.There are several tutorials linked on that on our website.If you don't get it to work, please provide some more information about your use case so that we can help you.Greetings,Sebastian5
-
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 above1
Answers
-
CC: @land who is the expert on this.
0 -
Hi,thanks for cc'ing me, @mschmitz@me The Web automation is thought to be used with it's own operators for sending webservice requests. It provides operators for sending requests to webservice api endpoints. If the endpoint returns json, the Send JSON Request operator allows you to directly parse the json into one or more data sets by providing parse configuration to it's input port.There are several tutorials linked on that on our website.If you don't get it to work, please provide some more information about your use case so that we can help you.Greetings,Sebastian5
-
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 above1