--- http_interactions: - request: method: post uri: https://bdtest.relais-host.com/portal-service/user/authentication body: encoding: UTF-8 string: '{"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}' headers: User-Agent: - ruby borrow_direct gem 1.2.0 (HTTPClient 2.8.0) https://github.com/jrochkind/borrow_direct Accept: - "*/*" Date: - Tue, 23 Aug 2016 19:15:13 GMT Content-Type: - application/json Accept-Language: - en response: status: code: 200 message: OK headers: Server: - nginx/1.4.1 Date: - Tue, 23 Aug 2016 19:15:14 GMT Content-Type: - application/json;charset=UTF-8 Content-Length: - '223' Connection: - keep-alive body: encoding: UTF-8 string: '{"AuthorizationId":"GXZaUnp2LFM1vf7rXL9RyEejDcQ","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","Iso639_2_LangCode":"ENG","FirstName":"Barnaby","LastName":"Alter","AllowLoanAddRequest":true,"AllowCopyAddRequest":true,"AllowSelDelivLoanChange":true}' http_version: recorded_at: Tue, 23 Aug 2016 19:15:14 GMT - request: method: post uri: https://bdtest.relais-host.com/dws/item/available?aid=GXZaUnp2LFM1vf7rXL9RyEejDcQ body: encoding: UTF-8 string: '{"PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}' headers: User-Agent: - ruby borrow_direct gem 1.2.0 (HTTPClient 2.8.0) https://github.com/jrochkind/borrow_direct Accept: - "*/*" Date: - Tue, 23 Aug 2016 19:15:14 GMT Content-Type: - application/json Accept-Language: - en response: status: code: 200 message: OK headers: Server: - nginx/1.4.1 Date: - Tue, 23 Aug 2016 19:15:17 GMT Content-Type: - application/json;charset=UTF-8 Transfer-Encoding: - chunked Connection: - keep-alive body: encoding: UTF-8 string: '{"Available":true,"SearchTerm":"isbn=9789810743734","RequestLink":{"ButtonLink":"AddRequest","ButtonLabel":"Request","RequestMessage":"Click here to request this item from E-ZBorrow."},"NumberOfRecords":1,"PickupLocation":[{"PickupLocationCode":"A","PickupLocationDescription":"Main Library"}]}' http_version: recorded_at: Tue, 23 Aug 2016 19:15:17 GMT - request: method: post uri: https://bdtest.relais-host.com/portal-service/user/authentication body: encoding: UTF-8 string: '{"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}' headers: User-Agent: - ruby borrow_direct gem 1.2.0 (HTTPClient 2.8.0) https://github.com/jrochkind/borrow_direct Accept: - "*/*" Date: - Tue, 23 Aug 2016 19:15:17 GMT Content-Type: - application/json Accept-Language: - en response: status: code: 200 message: OK headers: Server: - nginx/1.4.1 Date: - Tue, 23 Aug 2016 19:15:18 GMT Content-Type: - application/json;charset=UTF-8 Content-Length: - '223' Connection: - keep-alive body: encoding: UTF-8 string: '{"AuthorizationId":"ZXUDuiUNIF-TthBWA-WnLLBSL7Q","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","Iso639_2_LangCode":"ENG","FirstName":"Barnaby","LastName":"Alter","AllowLoanAddRequest":true,"AllowCopyAddRequest":true,"AllowSelDelivLoanChange":true}' http_version: recorded_at: Tue, 23 Aug 2016 19:15:18 GMT - request: method: post uri: https://bdtest.relais-host.com/dws/item/add?aid=ZXUDuiUNIF-TthBWA-WnLLBSL7Q body: encoding: UTF-8 string: '{"PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}],"PickupLocation":"Main Library"}' headers: User-Agent: - ruby borrow_direct gem 1.2.0 (HTTPClient 2.8.0) https://github.com/jrochkind/borrow_direct Accept: - "*/*" Date: - Tue, 23 Aug 2016 19:15:18 GMT Content-Type: - application/json Accept-Language: - en response: status: code: 200 message: OK headers: Server: - nginx/1.4.1 Date: - Tue, 23 Aug 2016 19:15:21 GMT Content-Type: - application/json;charset=UTF-8 Transfer-Encoding: - chunked Connection: - keep-alive body: encoding: UTF-8 string: '{"RequestNumber":"DUMMY_BD_LIBRARY_SYMBOL-90000430"}' http_version: recorded_at: Tue, 23 Aug 2016 19:15:21 GMT recorded_with: VCR 2.9.3