Skip to content

Instantly share code, notes, and snippets.

@iamkevingreen
Created September 23, 2016 18:58
Show Gist options
  • Save iamkevingreen/9d3a501e1e7bcb7266d9ea444e7f964e to your computer and use it in GitHub Desktop.
Save iamkevingreen/9d3a501e1e7bcb7266d9ea444e7f964e to your computer and use it in GitHub Desktop.
{
"status": "ok",
"count": 11,
"count_total": 27,
"pages": 3,
"posts": [
{
"id": 270,
"type": "post",
"slug": "sample-post",
"url": "http://www.examplesite.com/post/sample-post/",
"status": "publish",
"title": "Sample Post",
"title_plain": "Sample Post",
"content": "This is a Sample Post",
"excerpt": "",
"date": "2016-09-13 22:24:40",
"modified": "2016-09-13 22:26:35",
"categories": [],
"tags": [],
"author": {
"id": 2,
"slug": "kevin",
"name": "Kevin",
"first_name": "Kevin",
"last_name": "",
"nickname": "kevin",
"url": "",
"description": ""
},
"comments": [],
"attachments": [
{
"id": 271,
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image.jpg",
"slug": "sample-image",
"title": "Sample Image",
"description": "",
"caption": "",
"parent": 270,
"mime_type": "image/jpeg",
"images": {
"full": {
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image.jpg",
"width": 1024,
"height": 1024
},
"thumbnail": {
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image-150x150.jpg",
"width": 150,
"height": 150
},
"medium": {
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image-300x300.jpg",
"width": 300,
"height": 300
},
"medium_large": {
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image-768x768.jpg",
"width": 768,
"height": 768
},
"large": {
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image.jpg",
"width": 1024,
"height": 1024
}
}
}
],
"comment_count": 0,
"comment_status": "closed",
"thumbnail": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image-150x150.jpg",
"thumbnail_size": "thumbnail",
"thumbnail_images": {
"full": {
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image.jpg",
"width": 1024,
"height": 1024
},
"thumbnail": {
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image-150x150.jpg",
"width": 150,
"height": 150
},
"medium": {
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image-300x300.jpg",
"width": 300,
"height": 300
},
"medium_large": {
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image-768x768.jpg",
"width": 768,
"height": 768
},
"large": {
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image.jpg",
"width": 1024,
"height": 1024
}
},
},
{
"id": 267,
"type": "post",
"slug": "sample-post-2",
"url": "http://www.examplesite.com/post/sample-post-2/",
"status": "publish",
"title": "Sample Post 2",
"title_plain": "Sample Post 2",
"content": "This is a second Sample Post",
"excerpt": "",
"date": "2016-09-13 21:41:43",
"modified": "2016-09-13 21:41:43",
"categories": [],
"tags": [],
"author": {
"id": 2,
"slug": "kevin",
"name": "Kevin",
"first_name": "Kevin",
"last_name": "",
"nickname": "kevin",
"url": "",
"description": ""
},
"comments": [],
"attachments": [
{
"id": 268,
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image.jpg",
"slug": "sample-image",
"title": "sample-image",
"description": "",
"caption": "",
"parent": 267,
"mime_type": "image/jpeg",
"images": {
"full": {
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image.jpg",
"width": 1231,
"height": 1500
},
"thumbnail": {
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image-150x150.jpg",
"width": 150,
"height": 150
},
"medium": {
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image-246x300.jpg",
"width": 246,
"height": 300
},
"medium_large": {
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image-768x936.jpg",
"width": 768,
"height": 936
},
"large": {
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image-840x1024.jpg",
"width": 840,
"height": 1024
}
}
}
],
"comment_count": 0,
"comment_status": "closed",
"thumbnail": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image-150x150.jpg",
"thumbnail_size": "thumbnail",
"thumbnail_images": {
"full": {
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image.jpg",
"width": 1231,
"height": 1500
},
"thumbnail": {
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image-150x150.jpg",
"width": 150,
"height": 150
},
"medium": {
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image-246x300.jpg",
"width": 246,
"height": 300
},
"medium_large": {
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image-768x936.jpg",
"width": 768,
"height": 936
},
"large": {
"url": "http://www.examplesite.com/wp-content/uploads/2016/09/sample-image-840x1024.jpg",
"width": 840,
"height": 1024
}
},
},
],
"query": {
"ignore_sticky_posts": true,
"post_type": "post"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment