You don not need to use Rule for this, just configure HTTP operations as many as you want in sequence, you can use response of each HTTP operation as $response object.
1st HTTP operation → folder ID, secret ID
2nd HTTP operation → you can use response of 1st HTTP operation as $response.folderID$ in URL or Body wherever you need