Page MenuHomePhabricator
Paste P867

hovercards api
ActivePublic

Authored by Prtksxna on Jul 2 2015, 12:38 PM.
~
▶ curl 'http://localhost:8080/w/api.php?action=query&format=json&prop=extracts%7Cpageimages%7Crevisions&formatversion=2&redirects=true&exintro=true&exsentences=2&explaintext=true&piprop=thumbnail&pithumbsize=300&rvprop=timestamp&titles=Blueprint&smaxage=300&maxage=300&uselang=content' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Referer: http://localhost:8080/wiki/Main_Page' -H 'X-Requested-With: XMLHttpRequest' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36' --compressed -v
* Adding handle: conn: 0x7ff609804000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7ff609804000) send_pipe: 1, recv_pipe: 0
* About to connect() to localhost port 8080 (#0)
* Trying ::1...
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET /w/api.php?action=query&format=json&prop=extracts%7Cpageimages%7Crevisions&formatversion=2&redirects=true&exintro=true&exsentences=2&explaintext=true&piprop=thumbnail&pithumbsize=300&rvprop=timestamp&titles=Blueprint&smaxage=300&maxage=300&uselang=content HTTP/1.1
> Host: localhost:8080
> Accept-Encoding: deflate, gzip
> Accept: application/json, text/javascript, */*; q=0.01
> Referer: http://localhost:8080/wiki/Main_Page
> X-Requested-With: XMLHttpRequest
> User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36
>
< HTTP/1.1 200 OK
< Date: Thu, 02 Jul 2015 12:35:37 GMT
* Server Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.9 is not blacklisted
< Server: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.9
< X-Content-Type-Options: nosniff
< Cache-control: s-maxage=300, max-age=300, public
< Expires: Thu, 02 Jul 2015 12:40:37 GMT
< X-Powered-By: HHVM/3.6.1
< X-Frame-Options: DENY
< Vary: Accept-Encoding
< Transfer-Encoding: chunked
< Content-Type: application/json; charset=utf-8
<
* Connection #0 to host localhost left intact
{"batchcomplete":true,"query":{"pages":[{"pageid":2,"ns":0,"title":"Blueprint","extract":"This is content, now isn't it?","revisions":[{"timestamp":"2015-06-30T04:31:01Z"}]}]}}%

Event Timeline

Prtksxna edited the content of this paste. (Show Details)Jul 2 2015, 12:38 PM
Prtksxna changed the title of this paste from untitled to hovercards api.
Prtksxna updated the paste's language from autodetect to autodetect.
Prtksxna added a project: Page-Previews.