This repository was archived by the owner on May 24, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " worldcat/discovery" ,
3- "version" : " 0.12 .0" ,
3+ "version" : " 0.13 .0" ,
44 "license" : " Apache-2.0" ,
55 "repositories" : [{
66 "type" : " git" ,
Original file line number Diff line number Diff line change 1-
2- -
3- request:
4- method: GET
5- url: 'https://beta.worldcat.org/discovery/bib/search?q=cats&sortBy=title&dbIds=638'
6- headers:
7- Host: beta.worldcat.org
8- User-Agent: 'Guzzle/3.8.1 curl/7.27.0 PHP/5.4.34, WorldCat Discovery API PHP Client'
9- Authorization: 'Bearer tk_12345'
10- Accept: application/rdf+xml
11- Content-Length: '0'
12- response:
13- status: 401
14- headers:
15- Date: 'Tue, 25 Nov 2014 20:52:36 GMT'
16- X-OCLC-RequestId: 9126c472-d519-49eb-9823-b46e823e6539
17- X-OCLC-SelfId: 95e590df-007d-4430-a9b7-9ade1a28f652
18- Content-Type: 'application/rdf+xml; charset=UTF-8'
19- Content-Location: 'http://beta.worldcat.org/discovery/bib/search.rdf?q=cats&sortBy=title&dbIds=638'
20- Transfer-Encoding: chunked
21- body: "<rdf:RDF\n xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n xmlns:discovery=\"http://worldcat.org/vocab/discovery/\"\n xmlns:j.0=\"http://worldcat.org/xmlschemas/response/\" > \n <rdf:Description rdf:nodeID=\"A0\">\n <rdf:type rdf:resource=\"http://worldcat.org/xmlschemas/response/ClientRequestError\"/>\n <discovery:errorMessage>The given access token is not authorized to view this resource. Please check your Authorization header and try again.</discovery:errorMessage>\n <discovery:errorCode rdf:datatype=\"http://www.w3.org/2001/XMLSchema#positiveInteger\">401</discovery:errorCode>\n <discovery:errorType>http</discovery:errorType>\n </rdf:Description>\n <rdf:Description rdf:about=\"http://beta.worldcat.org/discovery/bib/search?q=cats&sortBy=title&dbIds=638\">\n <j.0:returnsError rdf:nodeID=\"A0\"/>\n </rdf:Description>\n</rdf:RDF>\n"
You can’t perform that action at this time.
0 commit comments