How to pass response from an api to another api?

The last part of code handles it - setHttpBody(yourParameter)