--- http_interactions: - request: method: post uri: https://bdtest.relais-host.com/dws/item/available body: encoding: UTF-8 string: ! '{"PartnershipId":"BD","Credentials":{"LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","Barcode":"DUMMY_BD_PATRON"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}' headers: User-Agent: - ruby borrow_direct gem 0.9.1 (HTTPClient 2.5.3.2) https://github.com/jrochkind/borrow_direct Accept: - ! '*/*' Date: - Wed, 14 Jan 2015 21:00:15 GMT Content-Type: - application/json Accept-Language: - en response: status: code: 200 message: OK headers: Server: - nginx/1.4.1 Date: - Wed, 14 Jan 2015 21:00:21 GMT Content-Type: - application/json;charset=UTF-8 Transfer-Encoding: - chunked Connection: - keep-alive body: encoding: US-ASCII string: ! '{"Item":{"Available":true,"SearchTerm":"isbn=9789810743734","AuthorizationId":"tkrtJ-f_rib-R7X-hgsdkb3MlHE","PickupLocations":{"PickupLocation":["*Milton S. Eisenhower Library","APL - EP STUDENTS - Ed Center","APL STAFF - Room 5-17","Arthur Friedheim Library","Columbia Center","Harbor East","Harrison Medical Library-Bayview","Institute of the History of Medicine","JH Medical Campus Office (faculty and staff)","JHMI Pickup - Armstrong 306","JHMI Pickup - BSPH E4643","JHMI Pickup - Hampton House 9th floor","JHMI Pickup - PCTB 115-116","JHMI Pickup - School of Nursing 313","JHU Homewood Office (faculty and grad students)","Montgomery Library Resource Center","SAIS Library","Washington Library Resource Center","Welch Medical Library","Wilmer Friedenwald Library"]}}}' http_version: recorded_at: Wed, 14 Jan 2015 21:00:21 GMT - request: method: post uri: https://bdtest.relais-host.com/portal-service/user/authentication/patron body: encoding: UTF-8 string: ! '{"AuthenticationInformation":{"LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"bad_barcode"}}' headers: User-Agent: - ruby borrow_direct gem 0.9.1 (HTTPClient 2.5.3.2) https://github.com/jrochkind/borrow_direct Accept: - ! '*/*' Date: - Wed, 14 Jan 2015 21:00:21 GMT Content-Type: - application/json Accept-Language: - en response: status: code: 200 message: OK headers: Server: - nginx/1.4.1 Date: - Wed, 14 Jan 2015 21:00:22 GMT Content-Type: - application/json;charset=UTF-8 Content-Length: - '175' Connection: - keep-alive body: encoding: US-ASCII string: ! '{"Authentication":{"Problem":{"Code":"PUBAN003","Message":"Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]"}}}' http_version: recorded_at: Wed, 14 Jan 2015 21:00:22 GMT recorded_with: VCR 2.9.3