{"info":{"_postman_id":"3dd929a8-e30c-4af6-a2df-e6816583f34c","name":"Postman Process Automator","description":"<html><head></head><body><p>Often times API requests must be executed in sequence to achieve a desired system maintenance effect or to routinely collect information. Postman Process Automator uses a custom Postman pre-request script to replicate your API requests, then use the replicated requests to provide the client with a Python automation script enabling usage inside of the Postman suite and live system computers. The Python-driven automated requests execute at identical time intervals as when you recorded the request sequence. Postman Process Automator currently supports GET, POST, PUT, DELETE, and PATCH methods of encoding payload types form-data, x-www-form-urlencoded, xml (sent as \"raw\" encoding), JSON (sent as \"raw\" encoding), or test/plain data (sent as \"raw\" encoding).</p>\n<p>How to use Postman Process Automator:</p>\n<ol>\n<li><p>Query the Initialize Request Sequence Recording Session endpoint to start a recording session</p>\n</li>\n<li><p>Query the Get Postman Interceptor endpoint to fetch the latest interceptor Javascript code.</p>\n</li>\n<li><p>Paste the interceptor code (with your request sequence recorder session id present as a query parameter at the top of the file) into the pre-request text-field under the url and method specifications for the requests which you wish to record (the requests do not have to be in the same collection).</p>\n</li>\n<li><p>Execute the requests as you normally would without any regard to the background PPA process analyzing your requests. Be sure to set the proper Content-Type headers!</p>\n</li>\n<li><p>Conclude the request sequence recording session by engaging the Terminate Request Sequence Recording Session endpoint.</p>\n</li>\n<li><p>Query the Get Request Sequence Recording Session endpoint for a Python file containing the code which automates the sequence of requests executed between the initialization and termination endpoint engagements.</p>\n</li>\n</ol>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"14241014","collectionId":"3dd929a8-e30c-4af6-a2df-e6816583f34c","publishedId":"TW6tMqMy","public":true,"customColor":{"top-bar":"2980b9","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-01-25T05:38:26.000Z"},"item":[{"name":"Initialize Request Sequence Recorder","event":[{"listen":"test","script":{"id":"10af1b14-984e-45ef-aad7-8deb309f427d","exec":["// write the request sequence recording session id to enviroment for reference by related rsrs lifespan session","","if(pm.response.status == \"OK\") {","    var response_data = pm.response.json();","    if(!response_data[\"session_id\"]) { return; }","    if(!pm.variables.has(\"request_sequence_recording_session_id\")) { return; }","    pm.environment.set(\"request_sequence_recording_session_id\", String(response_data[\"session_id\"]));","}"],"type":"text/javascript"}}],"id":"fd9b6244-1bd7-4f16-a1ec-ff7b59b7d25b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://postmanprocessautomator.com/request_sequence_recorder","description":"<p>Used to initialize a request sequence recording session. The response contains a UUID of the request sequence recording session which is used to identify the session via the query parameter \"rsrs_id\" for interceptions, terminations, and automation fetching endpoints.</p>\n<p>If the PPA Env Postman environment is engaged when the request is sent, the environment will automatically record the newly initialized session's request sequence recording session id for automatic parameter integration with subsequent session endpoint interactions.</p>\n","urlObject":{"protocol":"https","path":["request_sequence_recorder"],"host":["postmanprocessautomator","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fd9b6244-1bd7-4f16-a1ec-ff7b59b7d25b"},{"name":"Get Request Sequence Recording Session Automation Script","id":"369a1dfa-7f51-48c0-a73e-c12344fddef6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://postmanprocessautomator.com/request_sequence_recorder?rsrs_id={{request_sequence_recording_session_id}}","description":"<p>Used to fetch the Python automation script of a request sequence recording session as identified by the rsrs_id parameter. To receive an automation script from this endpoint, the request sequence recording session specified must have been terminated.</p>\n<p>If the PPA Env Postman environment is engaged when the request is sent, the environment will automatically populate the request sequence recording session id parameter with the most recently initialized session's ID.</p>\n<p> Due to the varying response encodings, the endpoint outputs are recorded as byte strings in the automation output files, so you may have to do a bit of string decoding from time to time is the response contains mixed/strange encodings!</p>\n","urlObject":{"protocol":"https","path":["request_sequence_recorder"],"host":["postmanprocessautomator","com"],"query":[{"key":"rsrs_id","value":"{{request_sequence_recording_session_id}}"}],"variable":[]}},"response":[],"_postman_id":"369a1dfa-7f51-48c0-a73e-c12344fddef6"},{"name":"Terminate Request Sequence Recording Session","id":"64622f4f-832a-452d-af4d-597646d8ebdc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://postmanprocessautomator.com/request_sequence_recorder?rsrs_id={{request_sequence_recording_session_id}}","description":"<p>Used to terminate a request sequence recording session. Once terminated, the Python automation script may be fetched containing replication routines for all of the requests between the initialization and termination of the session.</p>\n<p>If the PPA Env Postman environment is engaged when the request is sent, the environment will automatically populate the request sequence recording session id parameter with the most recently initialized session's ID.</p>\n","urlObject":{"protocol":"https","path":["request_sequence_recorder"],"host":["postmanprocessautomator","com"],"query":[{"key":"rsrs_id","value":"{{request_sequence_recording_session_id}}"}],"variable":[]}},"response":[],"_postman_id":"64622f4f-832a-452d-af4d-597646d8ebdc"},{"name":"Get Postman Interceptor","id":"6cb68910-80ca-4653-966d-4ede716eac15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://postmanprocessautomator.com/request_sequence_recorder_interceptor","description":"<p>Fetch the latest Postman-integratable pre-request script for intercepting your Postman requests and processing them in your Postman Process Automator request sequence recording sessions.</p>\n<p>This script should be copied into the \"Pre-request script\" input text-field located under the method / url inputs of the API request you wish to include in an automation sequence.</p>\n","urlObject":{"protocol":"https","path":["request_sequence_recorder_interceptor"],"host":["postmanprocessautomator","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6cb68910-80ca-4653-966d-4ede716eac15"}]}