Recording Requests with Cassettes

Learn how to interact with the third-party API through a library called ExVCR which consists of recording and replaying requests.

ExVCR

The idea behind ExVCR is to issue a request to the real third-party API the first time and record the response into a file called a cassette. Then, when we need to make that same request to the third-party API, ExVCR will replay that request and return the response from the cassette without making any real HTTP calls.

Get hands-on with 1400+ tech skills courses.