Create a post
Creates a post with the specified information. Post content and details are sent in the request body.
Authentication Required
Supported since version 2.5
POST /api/quad/rest/posts HTTP/1.0
Host: quad-server
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
Accept: application/json
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Content-Type: application/json; charset=UTF-8
Authorization: OAuth realm="http%3A%2F%2Fquad-server%2Fquadopen%2Fapi%2Frest%2Fposts",
oauth_signature_method="HMAC-SHA1",oauth_version="1.0",
oauth_nonce="t6ebHu",oauth_timestamp="1329428515",
oauth_consumer_key="7db9a0ca1a64d825b9d6967a16b53fec3367c515",
oauth_token="9e77a4d3-1d66-90a3-e27b-b7b2cb57404d",
oauth_signature="UQyrdKdC%2FxTTi%2FlGofS5dJ2LLG8%3D"
Content-Length: 84
Pragma: no-cache
{
"title":"New Employee",
"body":"Please welcome our new employee.",
"type":"TEXT"
}
HTTP/1.1 201 Created
Date: Thu, 16 Feb 2012 21:41:55 GMT
Server: Apache
WWW-Authenticate: Basic realm="http://quad-server"
Location: http://quad-server/api/quad/rest/posts/1200019
Content-Encoding: gzip
Content-Length: 843
Connection: close
Content-Type: application/json
{
"statusCode": 200,
"startIndex": 0,
"itemsPerPage": 1,
"totalResults": 0,
"filtered": false,
"sorted": false,
"entry": [
{
"data": {
"attachments": [],
"body": "Please welcome our new employee.",
"commentCount": -1,
"createDate": 1329428515848,
"creator": {
"firstName": "user1",
"fullName": "user1 user1 user1",
"id": 710009,
"images": [
{
"image": {
"id": 1610085,
"resource": "",
"size": 1757,
"published": 0,
"updated": 1323457040026,
"fileName": null,
"mimeType": "jpg",
"author": null,
"uri": "/image/user_portrait?img_id=1610085&t=1323457040026",
"height": 66,
"width": 66
},
"sizeType": "large"
},
{
"image": {
"id": 1610087,
"resource": "",
"size": 827,
"published": 0,
"updated": 1323457039950,
"fileName": null,
"mimeType": "jpg",
"author": null,
"uri": "/image/user_portrait?img_id=1610087&t=1323457039950",
"height": 24,
"width": 24
},
"sizeType": "small"
},
{
"image": {
"id": 1610088,
"resource": "",
"size": 930,
"published": 0,
"updated": 1323457039983,
"fileName": null,
"mimeType": "jpg",
"author": null,
"uri": "/image/user_portrait?img_id=1610088&t=1323457039983",
"height": 32,
"width": 32
},
"sizeType": "medium1"
},
{
"image": {
"id": 1610089,
"resource": "",
"size": 1492,
"published": 0,
"updated": 1323457040001,
"fileName": null,
"mimeType": "jpg",
"author": null,
"uri": "/image/user_portrait?img_id=1610089&t=1323457040001",
"height": 60,
"width": 60
},
"sizeType": "medium2"
}
],
"jobTitle": "",
"lastName": "user1",
"screenName": "user1"
},
"editCount": 0,
"externalPost": false,
"hasAttachments": false,
"id": 1200019,
"lastModifiedDate": 1329428515848,
"lastModifier": {
"firstName": "user1",
"fullName": "user1 user1 user1",
"id": 710009,
"images": [
{
"image": {
"id": 1610085,
"resource": "",
"size": 1757,
"published": 0,
"updated": 1323457040026,
"fileName": null,
"mimeType": "jpg",
"author": null,
"uri": "/image/user_portrait?img_id=1610085&t=1323457040026",
"height": 66,
"width": 66
},
"sizeType": "large"
},
{
"image": {
"id": 1610087,
"resource": "",
"size": 827,
"published": 0,
"updated": 1323457039950,
"fileName": null,
"mimeType": "jpg",
"author": null,
"uri": "/image/user_portrait?img_id=1610087&t=1323457039950",
"height": 24,
"width": 24
},
"sizeType": "small"
},
{
"image": {
"id": 1610088,
"resource": "",
"size": 930,
"published": 0,
"updated": 1323457039983,
"fileName": null,
"mimeType": "jpg",
"author": null,
"uri": "/image/user_portrait?img_id=1610088&t=1323457039983",
"height": 32,
"width": 32
},
"sizeType": "medium1"
},
{
"image": {
"id": 1610089,
"resource": "",
"size": 1492,
"published": 0,
"updated": 1323457040001,
"fileName": null,
"mimeType": "jpg",
"author": null,
"uri": "/image/user_portrait?img_id=1610089&t=1323457040001",
"height": 60,
"width": 60
},
"sizeType": "medium2"
}
],
"jobTitle": "",
"lastName": "user1",
"screenName": "user1"
},
"lastTransactionTime": 1329428515848,
"lastTransactionType": "",
"lastTransactionUser": null,
"permissions": [
{
"principal": {
"id": 710009,
"resource": "http://quad.cisco.com/schema/1.0/user",
"firstName": "user1",
"lastName": "user1",
"fullName": "user1 user1 user1",
"screenName": "user1",
"images": [
{
"image": {
"id": 1610085,
"resource": "",
"size": 1757,
"published": 0,
"updated": 1323457040026,
"fileName": null,
"mimeType": "jpg",
"author": null,
"uri": "/image/user_portrait?img_id=1610085&t=1323457040026",
"height": 66,
"width": 66
},
"sizeType": "large"
},
{
"image": {
"id": 1610087,
"resource": "",
"size": 827,
"published": 0,
"updated": 1323457039950,
"fileName": null,
"mimeType": "jpg",
"author": null,
"uri": "/image/user_portrait?img_id=1610087&t=1323457039950",
"height": 24,
"width": 24
},
"sizeType": "small"
},
{
"image": {
"id": 1610088,
"resource": "",
"size": 930,
"published": 0,
"updated": 1323457039983,
"fileName": null,
"mimeType": "jpg",
"author": null,
"uri": "/image/user_portrait?img_id=1610088&t=1323457039983",
"height": 32,
"width": 32
},
"sizeType": "medium1"
},
{
"image": {
"id": 1610089,
"resource": "",
"size": 1492,
"published": 0,
"updated": 1323457040001,
"fileName": null,
"mimeType": "jpg",
"author": null,
"uri": "/image/user_portrait?img_id=1610089&t=1323457040001",
"height": 60,
"width": 60
},
"sizeType": "medium2"
}
],
"startWorkHour": 0,
"endWorkHour": 0,
"timeZone": "America/Los_Angeles",
"jobTitle": "",
"friendlyJobTitle": null,
"addresses": null,
"emails": null,
"phones": null,
"tags": null
},
"permissionFlags": {
"view": true,
"edit": true,
"comment": true,
"share": true,
"authorize": true
}
}
],
"publicPost": false,
"resource": "http://quad.cisco.com/schema/1.0/post",
"rootMessageId": 1910539,
"state": "ACTIVE",
"summary": "Please welcome our new employee.",
"tags": [],
"title": "New Employee",
"type": "TEXT",
"version": 1
}
}
],
"serverMessages": null
}
Delete a Post
To delete a post, you update the post and set the state to "DELETED".
Authentication Required
Supported since version 2.5
PUT /api/quad/rest/posts/1100023 HTTP/1.0
Host: quad-server
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0.1) Gecko/20100101 Firefox/8.0.1
Accept: application/json
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Content-Type: application/json; charset=UTF-8
Authorization: OAuth realm="http%3A%2F%2Fquad-server%2Fquadopen%2Fapi%2Frest%2Fposts%2F1100023",
oauth_signature_method="HMAC-SHA1",oauth_version="1.0",
oauth_nonce="Pxmvap",oauth_timestamp="1326237119",
oauth_consumer_key="7db9a0ca1a64d825b9d6967a16b53fec3367c515",
oauth_token="9e77a4d3-1d66-90a3-e27b-b7b2cb57404d",
oauth_signature="u39chfdmQZNPhXyU3uGSC1QKxk4%3D"
Content-Length: 26
Cookie: JSESSIONID=E5102E57E6F58DB873B0DC2EA8D40A13.ds-web-1.ds-sasg.comjvm
{
"state": "DELETED"
}
HTTP/1.1 204 No Content Date: Thu, 16 Feb 2012 22:08:04 GMT Server: Apache WWW-Authenticate: Basic realm="http://quad-server" Content-Length: 0 Connection: close Content-Type: text/plain; charset=UTF-8
Retrieve a Post
Returns details about the specified post. You can filter the response to only include specified fields by using the fields query string parameter. Otherwise, the entire post object is returned.
Authentication Required
Supported since version 2.5
GET /api/quad/rest/users/@me/posts?fields=id HTTP/1.1 Host: localhost User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120314 Firefox/10.0.3 Accept: application/json Accept-Encoding: gzip, deflate Authorization: OAuth realm="http%3A%2F%2Flocalhost%2Fquadopen%2Fapi%2Frest%2Fusers%2F%40me%2Fposts", oauth_signature_method="HMAC-SHA1",oauth_version="1.0",oauth_nonce="D2p3M6",oauth_timestamp="1334073026", oauth_consumer_key="12535437fecf5dc682d7f498dda39c704af40694",oauth_token="8dbfa2a4-c516-cafe-a696-56eb336a4a8d", oauth_signature="WCv9Gn7E%2FAwxG%2FXwQjA%2BtilYSFI%3D" Cookie: JSESSIONID=3BDE33A45ADA32A20995D356A1EE25AB.localhost.cisco.comjvm; JSESSIONID=26610C33D1923CAED358D3F49611F2B1.localhost.cisco.comjvm; GUEST_LANGUAGE_ID=en_US; COOKIE_SUPPORT=true
HTTP/1.1 200 OK
Date: Tue, 10 Apr 2012 15:50:26 GMT
Server: Apache
x-quad-count: 5
Content-Encoding: gzip
Content-Length: 156
Content-Type: application/json;charset=UTF-8
{
"statusCode":200,
"startIndex":0,
"itemsPerPage":5,
"totalResults":5,
"filtered":false,
"sorted":false,
"entry":
[
{"data":{"id":300016}},
{"data":{"id":300004}},
{"data":{"id":300002}},
{"data":{"id":300001}},
{"data":{"id":1}}
],
"serverMessages":null
}
Get metadata back on your posts
Returns the metadata of your posts. You must specify either favorite or like, follow is not supported.
Authentication Required
Supported since version 2.5
GET /api/quad/rest/users/@me/posts?meta=like,favorite HTTP/1.1 Host: localhost User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120314 Firefox/10.0.3 Accept: application/json Accept-Encoding: gzip, deflate Authorization: OAuth realm="http%3A%2F%2Flocalhost%2Fquadopen%2Fapi%2Frest%2Fusers%2F%40me%2Fposts", oauth_signature_method="HMAC-SHA1",oauth_version="1.0",oauth_nonce="id9N2A",oauth_timestamp="1334081604", oauth_consumer_key="5a4a28a53fed48750bef69fc8536bbbcc66c8570",oauth_token="ba88e071-3c71-be61-18df-ceb1d6ab45f6", oauth_signature="%2FtxkB04oDjz6Jq260%2B15EUUksA0%3D" Cookie: JSESSIONID=341C7FAC7AC66F54A6EFD6158C6328DE.localhost.cisco.comjvm; JSESSIONID=2427998A0ACD2C0AA25693E7BEE0DD16.localhost.cisco.comjvm; GUEST_LANGUAGE_ID=en_US; COOKIE_SUPPORT=true
HTTP/1.1 200 OK
Date: Tue, 10 Apr 2012 18:13:24 GMT
Server: Apache
x-quad-count: 5
Content-Encoding: gzip
Content-Length: 2295
Content-Type: application/json;charset=UTF-8
{
"statusCode":200,
"startIndex":0,
"itemsPerPage":5,
"totalResults":5,
"filtered":false,
"sorted":false,
"entry":
[
{
"data":
{
"attachments":[],
"body":"All QA testers must test all possible ways of access/configuring/executing a page.
This includes obscure examples that have numbers and special characters in the input.",
"commentCount":1,
"createDate":1333992446000,
"creator":
{
"firstName":"John",
"fullName":"John Doe",
"id":3810004,
"images":[],
"jobTitle":"",
"lastName":"Doe",
"screenName":"jdoe"
},
"editCount":0,
"externalPost":false,
"hasAttachments":false,
"id":300016,
"lastModifiedDate":1333992446000,
"lastModifier":
{
"firstName":"John",
"fullName":"John Doe",
"id":3810004,
"images":[],
"jobTitle":"",
"lastName":"Doe",
"screenName":"jdoe"
},
"lastTransactionTime":0,
"lastTransactionType":"",
"lastTransactionUser":null,
"permissions":
[
{
"principal":
{
"id":3810126,
"resource":"http://quad.cisco.com/schema/1.0/community",
"creator":
{
"id":10257,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"Test",
"lastName":"Test",
"fullName":"Test Test",
"screenName":"test",
"images":[],
"startWorkHour":-1,
"endWorkHour":-1,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":"",
"addresses":[],
"emails":
[
{
"id":0,
"resource":"http://quad.cisco.com/schema/1.0/email",
"address":"test@cisco.com",
"primary":true
}
],
"phones":[],
"tags":[]
},
"name":"Testing",
"description":"This community is here to discuss testing methods.",
"shortName":"/testing",
"type":"open",
"category":
{
"id":1210044,
"resource":"http://quad.cisco.com/schema/1.0/communitycategory",
"name":"General",
"description":"This is an all-purpose category that requires no approval",
"creator":
{
"id":10198,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"",
"lastName":"",
"fullName":" ",
"screenName":"10198",
"images":[],
"startWorkHour":-1,
"endWorkHour":-1,
"timeZone":"America/Los_Angeles",
"jobTitle":"","friendlyJobTitle":"",
"addresses":[],
"emails":
[
{
"id":0,"resource":"http://quad.cisco.com/schema/1.0/email",
"address":"default@cisco.com",
"primary":true
}
],
"phones":[],
"tags":[]
},
"approvalRequired":false,
"modifiedDate":1329935801723,
"generalCategory":true,
"questions":[],
"images":null
},
"state":"live",
"userCount":3,
"stateChangedDate":1333988814110,
"liveDate":1333988814110,
"questionAnswers":null,
"tags":
[
{
"id":3810226,
"resource":"http://quad.cisco.com/schema/1.0/tag",
"name":"qa",
"type":null
},
{
"id":3810224,
"resource":"http://quad.cisco.com/schema/1.0/tag",
"name":"testing",
"type":null
}
],
"images":
[
{
"image":
{
"id":1210046,
"resource":"",
"size":949,
"published":0,
"updated":1329935801760,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210046",
"height":31,
"width":31
},
"sizeType":"medium1"
},
{
"image":
{
"id":1210045,
"resource":"",
"size":853,
"published":0,
"updated":1329935801744,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210045",
"height":24,
"width":24
},
"sizeType":"small"
},
{
"image":
{
"id":1210048,
"resource":"",
"size":2613,
"published":0,
"updated":1329935801822,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210048",
"height":103,
"width":103
},
"sizeType":"large"
},
{
"image":
{
"id":1210047,
"resource":"",
"size":1392,
"published":0,
"updated":1329935801778,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210047",
"height":59,
"width":59
},
"sizeType":"medium2"
}
]
},
"permissionFlags":
{
"view":true,
"edit":true,
"comment":true,
"share":true,
"authorize":false
}
},
{
"principal":
{
"id":3810004,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"John",
"lastName":"Doe",
"fullName":"John Doe",
"screenName":"jdoe",
"images":[],
"startWorkHour":0,
"endWorkHour":0,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":null,
"addresses":null,
"emails":null,
"phones":null,
"tags":null
},
"permissionFlags":
{
"view":true,
"edit":true,
"comment":true,
"share":true,
"authorize":true
}
}
],
"publicPost":false,
"resource":"http://quad.cisco.com/schema/1.0/post",
"rootMessageId":3810825,
"state":"ACTIVE",
"summary":"All QA testers must test all possible ways of access/configuring/executing a page. This includes obscure examples that have numbers and special characters in the input.",
"tags":[],
"title":"QA Procedures",
"type":"TEXT",
"version":1
},
"meta":
{
"likeId":"user:10257,
post:300016",
"likeRelationship":"liking",
"favoriteId":"",
"favoriteRelationship":"none"
}
},
{
"data":
{
"attachments":[],
"body":"This is the first post to my library for the test user.",
"commentCount":0,
"createDate":1333988459000,
"creator":
{
"firstName":"Test",
"fullName":"Test Test",
"id":10257,"images":[],
"jobTitle":"",
"lastName":"Test",
"screenName":"test"
},
"editCount":0,
"externalPost":false,
"hasAttachments":false,
"id":300004,
"lastModifiedDate":1333988459000,
"lastModifier":
{
"firstName":"Test",
"fullName":"Test Test",
"id":10257,
"images":[],
"jobTitle":"",
"lastName":"Test",
"screenName":"test"
},
"lastTransactionTime":0,
"lastTransactionType":"",
"lastTransactionUser":null,
"permissions":
[
{
"principal":
{
"id":10257,
"resource":"http://quad.cisco.com/schema/1.0/user","manager":null,
"firstName":"Test",
"lastName":"Test",
"fullName":"Test Test",
"screenName":"test",
"images":[],
"startWorkHour":0,
"endWorkHour":0,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":null,
"addresses":null,
"emails":null,
"phones":null,
"tags":null
},
"permissionFlags":
{
"view":true,
"edit":true,
"comment":true,
"share":true,
"authorize":true
}
}
],
"publicPost":false,
"resource":"http://quad.cisco.com/schema/1.0/post",
"rootMessageId":3810360,
"state":"ACTIVE",
"summary":"This is the first post to my library for the test user.",
"tags":[],
"title":"First",
"type":"TEXT",
"version":1
},
"meta":
{
"likeId":"",
"likeRelationship":"none",
"favoriteId":"",
"favoriteRelationship":"none"
}
},
{
"data":
{
"attachments":[],
"body":"All must follow this community.",
"commentCount":5,
"createDate":1333988174000,
"creator":
{
"firstName":"Test",
"fullName":"Test Test",
"id":10257,
"images":[],
"jobTitle":"",
"lastName":"Test",
"screenName":"test"
},
"editCount":0,
"externalPost":false,
"hasAttachments":false,
"id":300002,
"lastModifiedDate":1333988174000,
"lastModifier":
{
"firstName":"Test",
"fullName":"Test Test",
"id":10257,
"images":[],
"jobTitle":"",
"lastName":"Test",
"screenName":"test"
},
"lastTransactionTime":0,
"lastTransactionType":"",
"lastTransactionUser":null,
"permissions":
[
{
"principal":
{
"id":3810243,
"resource":"http://quad.cisco.com/schema/1.0/community",
"creator":
{
"id":10257,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"Test",
"lastName":"Test",
"fullName":"Test Test",
"screenName":"test",
"images":[],
"startWorkHour":-1,
"endWorkHour":-1,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":"",
"addresses":[],
"emails":
[
{
"id":0,
"resource":"http://quad.cisco.com/schema/1.0/email",
"address":"test@cisco.com",
"primary":true
}
],
"phones":[],
"tags":[]
},
"name":"Regulations",
"description":"All must follow the regulations group.",
"shortName":"/regulations",
"type":"open",
"category":
{
"id":1210044,
"resource":"http://quad.cisco.com/schema/1.0/communitycategory",
"name":"General",
"description":"This is an all-purpose category that requires no approval",
"creator":
{
"id":10198,
"resource":"http://quad.cisco.com/schema/1.0/user","manager":null,
"firstName":"",
"lastName":"",
"fullName":" ",
"screenName":"10198",
"images":[],
"startWorkHour":-1,
"endWorkHour":-1,
"timeZone":"America/Los_Angeles",
"jobTitle":"","friendlyJobTitle":"",
"addresses":[],
"emails":
[
{
"id":0,
"resource":"http://quad.cisco.com/schema/1.0/email",
"address":"default@cisco.com",
"primary":true
}
],
"phones":[],
"tags":[]
},
"approvalRequired":false,
"modifiedDate":1329935801723,
"generalCategory":true,
"questions":[],
"images":null
},
"state":"live",
"userCount":5,
"stateChangedDate":1333988806002,
"liveDate":1333988806002,
"questionAnswers":null,
"tags":
[
{
"id":3810340,
"resource":"http://quad.cisco.com/schema/1.0/tag",
"name":"regulation",
"type":null
}
],
"images":
[
{
"image":
{
"id":1210046,
"resource":"",
"size":949,
"published":0,
"updated":1329935801760,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210046",
"height":31,
"width":31
},
"sizeType":"medium1"
},
{
"image":
{
"id":1210045,
"resource":"",
"size":853,
"published":0,
"updated":1329935801744,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210045",
"height":24,
"width":24
},
"sizeType":"small"
},
{
"image":
{
"id":1210048,
"resource":"",
"size":2613,
"published":0,
"updated":1329935801822,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210048",
"height":103,"width":103
},
"sizeType":"large"
},
{
"image":
{
"id":1210047,
"resource":"",
"size":1392,
"published":0,
"updated":1329935801778,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210047",
"height":59,"width":59
},
"sizeType":"medium2"
}
]
},
"permissionFlags":
{
"view":true,
"edit":true,
"comment":true,
"share":false,
"authorize":false
}
},
{
"principal":
{
"id":10257,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"Test",
"lastName":"Test",
"fullName":"Test Test",
"screenName":"test",
"images":[],
"startWorkHour":0,
"endWorkHour":0,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":null,
"addresses":null,
"emails":null,
"phones":null,
"tags":null
},
"permissionFlags":
{
"view":true,
"edit":true,
"comment":true,
"share":true,
"authorize":true
}
}
],
"publicPost":false,
"resource":"http://quad.cisco.com/schema/1.0/post",
"rootMessageId":3810345,
"state":"ACTIVE",
"summary":"All must follow this community.",
"tags":[],
"title":"Must follow",
"type":"TEXT",
"version":1
},
"meta":
{
"likeId":"user:10257,
post:300002",
"likeRelationship":"liking",
"favoriteId":"user:10257,post:300002",
"favoriteRelationship":"favoriting"
}
},
{
"data":
{
"attachments":[],
"body":"This community will only be used for what it is intended to be. Also, this is the first post.",
"commentCount":0,
"createDate":1333987993000,
"creator":
{
"firstName":"Test",
"fullName":"Test Test",
"id":10257,
"images":[],
"jobTitle":"",
"lastName":"Test",
"screenName":"test"
},
"editCount":0,
"externalPost":false,
"hasAttachments":false,
"id":300001,
"lastModifiedDate":1333987993000,
"lastModifier":
{
"firstName":"Test",
"fullName":"Test Test",
"id":10257,
"images":[],
"jobTitle":"",
"lastName":"Test",
"screenName":"test"
},
"lastTransactionTime":0,
"lastTransactionType":"",
"lastTransactionUser":null,
"permissions":
[
{
"principal":
{
"id":10257,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"Test",
"lastName":"Test",
"fullName":"Test Test",
"screenName":"test",
"images":[],
"startWorkHour":0,
"endWorkHour":0,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":null,
"addresses":null,
"emails":null,
"phones":null,
"tags":null
},
"permissionFlags":
{
"view":true,
"edit":true,
"comment":true,
"share":true,
"authorize":true
}
},
{
"principal":
{
"id":3810126,
"resource":"http://quad.cisco.com/schema/1.0/community",
"creator":
{
"id":10257,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"Test",
"lastName":"Test",
"fullName":"Test Test",
"screenName":"test",
"images":[],
"startWorkHour":-1,
"endWorkHour":-1,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":"",
"addresses":[],
"emails":
[
{
"id":0,
"resource":"http://quad.cisco.com/schema/1.0/email",
"address":"test@cisco.com",
"primary":true
}
],
"phones":[],
"tags":[]
},
"name":"Testing",
"description":"This community is here to discuss testing methods.",
"shortName":"/testing",
"type":"open",
"category":
{
"id":1210044,
"resource":"http://quad.cisco.com/schema/1.0/communitycategory",
"name":"General",
"description":"This is an all-purpose category that requires no approval",
"creator":
{
"id":10198,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"",
"lastName":"",
"fullName":" ",
"screenName":"10198",
"images":[],
"startWorkHour":-1,
"endWorkHour":-1,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":"",
"addresses":[],
"emails":
[
{
"id":0,
"resource":"http://quad.cisco.com/schema/1.0/email",
"address":"default@cisco.com",
"primary":true
}
],
"phones":[],
"tags":[]
},
"approvalRequired":false,
"modifiedDate":1329935801723,
"generalCategory":true,
"questions":[],
"images":null},
"state":"live",
"userCount":3,
"stateChangedDate":1333988814110,
"liveDate":1333988814110,
"questionAnswers":null,
"tags":
[
{
"id":3810226,
"resource":"http://quad.cisco.com/schema/1.0/tag",
"name":"qa",
"type":null
},
{
"id":3810224,
"resource":"http://quad.cisco.com/schema/1.0/tag",
"name":"testing",
"type":null
}
],
"images":
[
{
"image":
{
"id":1210046,
"resource":"",
"size":949,
"published":0,
"updated":1329935801760,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210046",
"height":31,
"width":31
},
"sizeType":"medium1"
},
{
"image":
{
"id":1210045,
"resource":"",
"size":853,
"published":0,
"updated":1329935801744,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210045",
"height":24,"width":24
},
"sizeType":"small"
},
{
"image":
{
"id":1210048,
"resource":"",
"size":2613,
"published":0,
"updated":1329935801822,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210048",
"height":103,
"width":103
},
"sizeType":"large"
},
{
"image":
{
"id":1210047,
"resource":"",
"size":1392,
"published":0,
"updated":1329935801778,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210047",
"height":59,
"width":59
},
"sizeType":"medium2"
}
]
},
"permissionFlags":
{
"view":true,
"edit":true,
"comment":true,
"share":false,
"authorize":false
}
}
],
"publicPost":false,
"resource":"http://quad.cisco.com/schema/1.0/post",
"rootMessageId":3810232,
"state":"ACTIVE",
"summary":"This community will only be used for what it is intended to be. Also, this is the first post.",
"tags":[],
"title":"Rules",
"type":"TEXT",
"version":1
},
"meta":
{
"likeId":"",
"likeRelationship":"none",
"favoriteId":"",
"favoriteRelationship":"none"
}
},
{
"data":
{
"attachments":[],
"body":"<p><strong>Welcome to Quad!</strong><br/><br/>We have created this first post in your Watch List to help you get started. This is where all the posts you create and interact with will display.<br/> <br/>Here are some ways you can start collaborating and sharing information with others:<br/><br/> - New Post: Create and share posts,and communicate with colleagues in real time.<br/><br/><br/> - My View: Customize and personalize your home page to focus on what's important.<br/><br/><br/> - My Profile: Share your ideas and expertise,and stay connected with your professional network.<br/><br/><br/> - People: Find and connect with others.<br/><br/><br/> - Communities: Collaborate with others,share best practices,and connect with experts.<br/><br/><br/> - Library: View and manage your posts,videos,and documents.</p>","commentCount":0,"createDate":1329329016000,"creator":{"firstName":"System","fullName":"System Administrator","id":10269,"images":[],"jobTitle":"Quad System Administrator","lastName":"Administrator","screenName":"ciscosysadmin"},"editCount":0,"externalPost":false,"hasAttachments":false,"id":1,"lastModifiedDate":1329329016000,"lastModifier":{"firstName":"System","fullName":"System Administrator","id":10269,"images":[],"jobTitle":"Quad System Administrator","lastName":"Administrator","screenName":"ciscosysadmin"},"lastTransactionTime":0,"lastTransactionType":"","lastTransactionUser":null,"permissions":[{"principal":{"id":10257,"resource":"http://quad.cisco.com/schema/1.0/user","manager":null,"firstName":"Test","lastName":"Test","fullName":"Test Test","screenName":"test","images":[],"startWorkHour":0,"endWorkHour":0,"timeZone":"America/Los_Angeles","jobTitle":"","friendlyJobTitle":null,"addresses":null,"emails":null,"phones":null,"tags":null},"permissionFlags":{"view":true,"edit":true,"comment":true,"share":true,"authorize":true}},{"principal":{"id":10269,"resource":"http://quad.cisco.com/schema/1.0/user","manager":null,"firstName":"System","lastName":"Administrator","fullName":"System Administrator","screenName":"ciscosysadmin","images":[],"startWorkHour":0,"endWorkHour":0,"timeZone":"America/Los_Angeles","jobTitle":"Quad System Administrator","friendlyJobTitle":null,"addresses":null,"emails":null,"phones":null,"tags":null},"permissionFlags":{"view":true,"edit":true,"comment":true,"share":true,"authorize":true}}],"publicPost":false,"resource":"http://quad.cisco.com/schema/1.0/post","rootMessageId":10281,"state":"ACTIVE","summary":"<p><strong>Welcome to Quad!</strong><br/><br/>We have created this first post in your Watch List to help you get started. This is where all the pos...",
"tags":[],
"title":"Welcome",
"type":"TEXT",
"version":1
},
"meta":
{
"likeId":"",
"likeRelationship":"none",
"favoriteId":"",
"favoriteRelationship":"none"
}
}
],
"serverMessages":null
}
Get sorted list of your posts
Gets a sorted list of your posts. You can specify which field and which way to sort, ascending or descending.
Authentication Required
Supported since version 2.5
GET /api/quad/rest/users/@me/posts?sortOrder=ascending&sortBy=id HTTP/1.1 Host: localhost User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120314 Firefox/10.0.3 Accept: application/json Accept-Encoding: gzip, deflate Authorization: OAuth realm="http%3A%2F%2Flocalhost%2Fquadopen%2Fapi%2Frest%2Fusers%2F%40me%2Fposts", oauth_signature_method="HMAC-SHA1",oauth_version="1.0",oauth_nonce="lg09xO",oauth_timestamp="1334073338", oauth_consumer_key="12535437fecf5dc682d7f498dda39c704af40694",oauth_token="8dbfa2a4-c516-cafe-a696-56eb336a4a8d", oauth_signature="8CQhdxWza99xJjegpSUD1h2BtTY%3D" Cookie: JSESSIONID=3BDE33A45ADA32A20995D356A1EE25AB.localhost.cisco.comjvm; JSESSIONID=26610C33D1923CAED358D3F49611F2B1.localhost.cisco.comjvm; GUEST_LANGUAGE_ID=en_US; COOKIE_SUPPORT=true
HTTP/1.1 200 OK
Date: Tue, 10 Apr 2012 15:55:38 GMT
Server: Apache
x-quad-count: 5
Content-Encoding: gzip
Content-Length: 2209
Content-Type: application/json;charset=UTF-8
{
"statusCode":200,
"startIndex":0,
"itemsPerPage":5,
"totalResults":5,
"filtered":false,
"sorted":false,
"entry":
[
{
"data":
{
"attachments":[],
"body":"All QA testers must test all possible ways of access/configuring/executing a page. This includes obscure examples that have numbers and special characters in the input.",
"commentCount":1,
"createDate":1333992446000,
"creator":
{
"firstName":"John",
"fullName":"John Doe",
"id":3810004,
"images":[],
"jobTitle":"",
"lastName":"Doe",
"screenName":"jdoe"
},
"editCount":0,
"externalPost":false,
"hasAttachments":false,
"id":300016,
"lastModifiedDate":1333992446000,
"lastModifier":
{
"firstName":"John",
"fullName":"John Doe",
"id":3810004,
"images":[],
"jobTitle":"",
"lastName":"Doe",
"screenName":"jdoe"
},
"lastTransactionTime":0,
"lastTransactionType":"",
"lastTransactionUser":null,
"permissions":
[
{
"principal":
{
"id":3810126,
"resource":"http://quad.cisco.com/schema/1.0/community",
"creator":
{
"id":10257,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,"firstName":"Test","lastName":"Test",
"fullName":"Test Test",
"screenName":"test",
"images":[],
"startWorkHour":-1,
"endWorkHour":-1,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":"",
"addresses":[],
"emails":
[
{
"id":0,
"resource":"http://quad.cisco.com/schema/1.0/email",
"address":"test@cisco.com",
"primary":true
}
],
"phones":[],
"tags":[]
},
"name":"Testing",
"description":"This community is here to discuss testing methods.",
"shortName":"/testing",
"type":"open",
"category":
{
"id":1210044,
"resource":"http://quad.cisco.com/schema/1.0/communitycategory",
"name":"General",
"description":"This is an all-purpose category that requires no approval",
"creator":
{
"id":10198,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"",
"lastName":"",
"fullName":" ",
"screenName":"10198",
"images":[],
"startWorkHour":-1,
"endWorkHour":-1,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":"",
"addresses":[],
"emails":
[
{
"id":0,
"resource":"http://quad.cisco.com/schema/1.0/email",
"address":"default@cisco.com",
"primary":true
}
],
"phones":[],
"tags":[]
},
"approvalRequired":false,
"modifiedDate":1329935801723,
"generalCategory":true,
"questions":[],
"images":null
},
"state":"live",
"userCount":3,
"stateChangedDate":1333988814110,
"liveDate":1333988814110,
"questionAnswers":null,
"tags":
[
{
"id":3810226,
"resource":"http://quad.cisco.com/schema/1.0/tag",
"name":"qa",
"type":null
},
{
"id":3810224,
"resource":"http://quad.cisco.com/schema/1.0/tag",
"name":"testing",
"type":null
}
],
"images":
[
{
"image":
{
"id":1210046,
"resource":"",
"size":949,
"published":0,
"updated":1329935801760,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210046",
"height":31,
"width":31
},
"sizeType":"medium1"
},
{
"image":
{
"id":1210045,
"resource":"",
"size":853,
"published":0,
"updated":1329935801744,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210045",
"height":24,
"width":24
},
"sizeType":"small"
},
{
"image":
{
"id":1210048,
"resource":"",
"size":2613,
"published":0,
"updated":1329935801822,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210048",
"height":103,
"width":103
},
"sizeType":"large"
},
{
"image":
{
"id":1210047,
"resource":"",
"size":1392,
"published":0,
"updated":1329935801778,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210047",
"height":59,"width":59
},
"sizeType":"medium2"
}
]
},
"permissionFlags":
{
"view":true,
"edit":true,
"comment":true,
"share":true,
"authorize":false
}
},
{
"principal":
{
"id":3810004,
"resource":"http://quad.cisco.com/schema/1.0/user","manager":null,
"firstName":"John",
"lastName":"Doe",
"fullName":"John Doe",
"screenName":"jdoe",
"images":[],
"startWorkHour":0,
"endWorkHour":0,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":null,
"addresses":null,
"emails":null,
"phones":null,
"tags":null
},
"permissionFlags":
{
"view":true,
"edit":true,
"comment":true,
"share":true,
"authorize":true
}
}
],
"publicPost":false,
"resource":"http://quad.cisco.com/schema/1.0/post",
"rootMessageId":3810825,
"state":"ACTIVE",
"summary":"All QA testers must test all possible ways of access/configuring/executing a page. This includes obscure examples that have numbers and special characters in the input.",
"tags":[],
"title":"QA Procedures","type":"TEXT","version":1
}
},
{
"data":
{
"attachments":[],
"body":"This is the first post to my library for the test user.",
"commentCount":0,
"createDate":1333988459000,
"creator":
{
"firstName":"Test",
"fullName":"Test Test",
"id":10257,
"images":[],
"jobTitle":"",
"lastName":"Test",
"screenName":"test"
},
"editCount":0,
"externalPost":false,
"hasAttachments":false,
"id":300004,
"lastModifiedDate":1333988459000,
"lastModifier":
{
"firstName":"Test",
"fullName":"Test Test",
"id":10257,
"images":[],
"jobTitle":"",
"lastName":"Test",
"screenName":"test"
},"lastTransactionTime":0,
"lastTransactionType":"",
"lastTransactionUser":null,
"permissions":
[
{
"principal":
{
"id":10257,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"Test",
"lastName":"Test",
"fullName":"Test Test",
"screenName":"test",
"images":[],
"startWorkHour":0,
"endWorkHour":0,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":null,
"addresses":null,
"emails":null,
"phones":null,
"tags":null
},
"permissionFlags":
{
"view":true,
"edit":true,
"comment":true,
"share":true,
"authorize":true
}
}
],
"publicPost":false,
"resource":"http://quad.cisco.com/schema/1.0/post",
"rootMessageId":3810360,
"state":"ACTIVE",
"summary":"This is the first post to my library for the test user.",
"tags":[],
"title":"First",
"type":"TEXT",
"version":1
}
},
{
"data":
{
"attachments":[],
"body":"All must follow this community.",
"commentCount":5,
"createDate":1333988174000,
"creator":
{
"firstName":"Test",
"fullName":"Test Test",
"id":10257,
"images":[],
"jobTitle":"",
"lastName":"Test",
"screenName":"test"
},
"editCount":0,
"externalPost":false,
"hasAttachments":false,
"id":300002,
"lastModifiedDate":1333988174000,
"lastModifier":
{
"firstName":"Test",
"fullName":"Test Test",
"id":10257,
"images":[],
"jobTitle":"",
"lastName":"Test",
"screenName":"test"
},
"lastTransactionTime":0,
"lastTransactionType":"",
"lastTransactionUser":null,
"permissions":
[
{
"principal":
{
"id":10257,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"Test",
"lastName":"Test",
"fullName":"Test Test",
"screenName":"test",
"images":[],
"startWorkHour":0,
"endWorkHour":0,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":null,
"addresses":null,
"emails":null,
"phones":null,
"tags":null
},
"permissionFlags":
{
"view":true,
"edit":true,
"comment":true,
"share":true,
"authorize":true
}
},
{
"principal":
{
"id":3810243,
"resource":"http://quad.cisco.com/schema/1.0/community",
"creator":
{
"id":10257,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"Test",
"lastName":"Test",
"fullName":"Test Test",
"screenName":"test",
"images":[],"startWorkHour":-1,
"endWorkHour":-1,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":"",
"addresses":[],
"emails":
[
{
"id":0,
"resource":"http://quad.cisco.com/schema/1.0/email",
"address":"test@cisco.com",
"primary":true
}
],
"phones":[],
"tags":[]
},
"name":"Regulations",
"description":"All must follow the regulations group.",
"shortName":"/regulations",
"type":"open",
"category":
{
"id":1210044,
"resource":"http://quad.cisco.com/schema/1.0/communitycategory",
"name":"General",
"description":"This is an all-purpose category that requires no approval",
"creator":
{
"id":10198,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"",
"lastName":"",
"fullName":" ",
"screenName":"10198",
"images":[],
"startWorkHour":-1,
"endWorkHour":-1,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":"",
"addresses":[],
"emails":
[
{
"id":0,
"resource":"http://quad.cisco.com/schema/1.0/email",
"address":"default@cisco.com",
"primary":true}],
"phones":[],
"tags":[]
}
]
"approvalRequired":false,
"modifiedDate":1329935801723,
"generalCategory":true,
"questions":[],
"images":null
},
"state":"live",
"userCount":5,
"stateChangedDate":1333988806002,
"liveDate":1333988806002,
"questionAnswers":null,
"tags":
[
{
"id":3810340,
"resource":"http://quad.cisco.com/schema/1.0/tag",
"name":"regulation",
"type":null
}
],
"images":
[
{
"image":
{"id":1210046,
"resource":"",
"size":949,
"published":0,
"updated":1329935801760,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210046",
"height":31,"width":31},"sizeType":"medium1"
},
{
"image":
{
"id":1210045,
"resource":"",
"size":853,
"published":0,
"updated":1329935801744,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210045",
"height":24,"width":24},"sizeType":"small"
},
{
"image":
{
"id":1210048,
"resource":"",
"size":2613,
"published":0,
"updated":1329935801822,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210048",
"height":103,
"width":103
},
"sizeType":"large"
},
{
"image":
{
"id":1210047,
"resource":"",
"size":1392,
"published":0,
"updated":1329935801778,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210047",
"height":59,
"width":59
},
"sizeType":"medium2"
}
]
},
"permissionFlags":
{
"view":true,
"edit":true,
"comment":true,
"share":false,
"authorize":false
}
}
],
"publicPost":false,
"resource":"http://quad.cisco.com/schema/1.0/post",
"rootMessageId":3810345,
"state":"ACTIVE",
"summary":"All must follow this community.",
"tags":[],
"title":"Must follow",
"type":"TEXT",
"version":1
}
},
{
"data":
{
"attachments":[],
"body":"This community will only be used for what it is intended to be. Also, this is the first post.",
"commentCount":0,
"createDate":1333987993000,
"creator":
{
"firstName":"Test",
"fullName":"Test Test",
"id":10257,"images":[],
"jobTitle":"",
"lastName":"Test",
"screenName":"test"
},
"editCount":0,
"externalPost":false,
"hasAttachments":false,
"id":300001,
"lastModifiedDate":1333987993000,
"lastModifier":
{
"firstName":"Test",
"fullName":"Test Test",
"id":10257,
"images":[],
"jobTitle":"",
"lastName":"Test",
"screenName":"test"
},
"lastTransactionTime":0,
"lastTransactionType":"",
"lastTransactionUser":null,
"permissions":
[
{
"principal":
{
"id":10257,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"Test",
"lastName":"Test",
"fullName":"Test Test",
"screenName":"test",
"images":[],
"startWorkHour":0,
"endWorkHour":0,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":null,
"addresses":null,
"emails":null,
"phones":null,
"tags":null
},
"permissionFlags":
{
"view":true,
"edit":true,
"comment":true,
"share":true,
"authorize":true
}
},
{
"principal":
{
"id":3810126,
"resource":"http://quad.cisco.com/schema/1.0/community",
"creator":
{
"id":10257,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"Test",
"lastName":"Test",
"fullName":"Test Test",
"screenName":"test",
"images":[],
"startWorkHour":-1,
"endWorkHour":-1,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":"",
"addresses":[],
"emails":
[
{
"id":0,
"resource":"http://quad.cisco.com/schema/1.0/email",
"address":"test@cisco.com","primary":true}],
"phones":[],
"tags":[]
},
"name":
"Testing",
"description":"This community is here to discuss testing methods.",
"shortName":"/testing",
"type":"open",
"category":
{
"id":1210044,
"resource":"http://quad.cisco.com/schema/1.0/communitycategory",
"name":"General",
"description":"This is an all-purpose category that requires no approval",
"creator":
{
"id":10198,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"",
"lastName":"",
"fullName":" ",
"screenName":"10198",
"images":[],
"startWorkHour":-1,
"endWorkHour":-1,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":"",
"addresses":[],
"emails":
[
{
"id":0,
"resource":"http://quad.cisco.com/schema/1.0/email",
"address":"default@cisco.com",
"primary":true
}
],
"phones":[],
"tags":[]
},
"approvalRequired":false,
"modifiedDate":1329935801723,
"generalCategory":true,
"questions":[],
"images":null
},
"state":"live",
"userCount":3,
"stateChangedDate":1333988814110,
"liveDate":1333988814110,
"questionAnswers":null,
"tags":
[
{
"id":3810226,
"resource":"http://quad.cisco.com/schema/1.0/tag",
"name":"qa",
"type":null
},
{
"id":3810224,
"resource":"http://quad.cisco.com/schema/1.0/tag",
"name":"testing","type":null
}
],
"images":
[
{
"image":
{
"id":1210046,
"resource":"",
"size":949,
"published":0,
"updated":1329935801760,
"fileName":null,"mimeType":
"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210046",
"height":31,
"width":31
},
"sizeType":"medium1"
},
{
"image":
{
"id":1210045,
"resource":"",
"size":853,
"published":0,
"updated":1329935801744,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210045",
"height":24,"width":24},
"sizeType":"small"
},
{
"image":
{
"id":1210048,
"resource":"",
"size":2613,
"published":0,
"updated":1329935801822,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210048",
"height":103,"width":103},"sizeType":"large"
},
{
"image":
{
"id":1210047,
"resource":"",
"size":1392,
"published":0,
"updated":1329935801778,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210047",
"height":59,"width":59
},
"sizeType":"medium2"
}
]
},
"permissionFlags":
{
"view":true,
"edit":true,
"comment":true,
"share":false,
"authorize":false
}
}
],
"publicPost":false,
"resource":"http://quad.cisco.com/schema/1.0/post",
"rootMessageId":3810232,
"state":"ACTIVE",
"summary":"This community will only be used for what it is intended to be. Also, this is the first post.",
"tags":[],
"title":"Rules",
"type":"TEXT",
"version":1
}
},
{
"data":
{
"attachments":[],
"body":"<p><strong>Welcome to Quad!</strong><br/><br/>We have created this first post in your Watch List to help you get started. This is where all the posts you create and interact with will display.<br/> <br/>Here are some ways you can start collaborating and sharing information with others:<br/><br/> - New Post: Create and share posts,and communicate with colleagues in real time.<br/><br/><br/> - My View: Customize and personalize your home page to focus on what's important.<br/><br/><br/> - My Profile: Share your ideas and expertise,and stay connected with your professional network.<br/><br/><br/> - People: Find and connect with others.<br/><br/><br/> - Communities: Collaborate with others,share best practices,and connect with experts.<br/><br/><br/> - Library: View and manage your posts,videos,and documents.</p>",
"commentCount":0,
"createDate":1329329016000,
"creator":
{
"firstName":"System",
"fullName":"System Administrator",
"id":10269,
"images":[],
"jobTitle":"Quad System Administrator",
"lastName":"Administrator",
"screenName":"ciscosysadmin"
},"editCount":0,
"externalPost":false,
"hasAttachments":false,
"id":1,
"lastModifiedDate":1329329016000,
"lastModifier":
{
"firstName":"System",
"fullName":"System Administrator",
"id":10269,"images":[],
"jobTitle":"Quad System Administrator",
"lastName":"Administrator",
"screenName":"ciscosysadmin"
},
"lastTransactionTime":0,
"lastTransactionType":"",
"lastTransactionUser":null,
"permissions":
[
{
"principal":
{
"id":10269,"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"System",
"lastName":"Administrator",
"fullName":"System Administrator",
"screenName":"ciscosysadmin",
"images":[],
"startWorkHour":0,
"endWorkHour":0,
"timeZone":"America/Los_Angeles",
"jobTitle":"Quad System Administrator",
"friendlyJobTitle":null,
"addresses":null,
"emails":null,
"phones":null,"
tags":null
},
"permissionFlags":
{
"view":true,
"edit":true,
"comment":true,
"share":true,
"authorize":true
}
},
{
"principal":
{
"id":10257,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"Test",
"lastName":"Test",
"fullName":"Test Test",
"screenName":"test",
"images":[],
"startWorkHour":0,
"endWorkHour":0,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":null,
"addresses":null,
"emails":null,
"phones":null,
"tags":null
},
"permissionFlags":
{
"view":true,
"edit":true,
"comment":true,
"share":true,
"authorize":true
}
}
],
"publicPost":false,
"resource":"http://quad.cisco.com/schema/1.0/post",
"rootMessageId":10281,
"state":"ACTIVE",
"summary":"<p><strong>Welcome to Quad!</strong><br/><br/>We have created this first post in your Watch List to help you get started. This is where all the pos...",
"tags":[],
"title":"Welcome",
"type":"TEXT",
"version":1
}
}
],
"serverMessages":null
}
Get your posts from starting index
Gets all of your post starting at a index. If there are 5 posts and a starting index of 3, two will be returned. Note this is zero based, which means the starting index is 0.
Authentication Required
Supported since version 2.5
GET /api/quad/rest/users/@me/posts?startIndex=3&count=1 HTTP/1.1 Host: localhost User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120314 Firefox/10.0.3 Accept: application/json Accept-Encoding: gzip, deflate Authorization: OAuth realm="http%3A%2F%2Flocalhost%2Fquadopen%2Fapi%2Frest%2Fusers%2F%40me%2Fposts", oauth_signature_method="HMAC-SHA1",oauth_version="1.0",oauth_nonce="GeNOTT",oauth_timestamp="1334073969", oauth_consumer_key="12535437fecf5dc682d7f498dda39c704af40694",oauth_token="8dbfa2a4-c516-cafe-a696-56eb336a4a8d", oauth_signature="cBZalO7x%2BvsEn21LMFB4ezheHVc%3D" Cookie: JSESSIONID=3BDE33A45ADA32A20995D356A1EE25AB.localhost.cisco.comjvm; JSESSIONID=26610C33D1923CAED358D3F49611F2B1.localhost.cisco.comjvm; GUEST_LANGUAGE_ID=en_US; COOKIE_SUPPORT=true
HTTP/1.1 200 OK
Date: Tue, 10 Apr 2012 16:06:09 GMT
Server: Apache
x-quad-count: 1
Content-Encoding: gzip
Content-Length: 1180
Content-Type: application/json;charset=UTF-8
{
"statusCode":200,
"startIndex":3,
"itemsPerPage":1,
"totalResults":1,
"filtered":false,
"sorted":false,
"entry":
[
{
"data":
{
"attachments":[],
"body":"This community will only be used for what it is intended to be. Also, this is the first post.",
"commentCount":0,
"createDate":1333987993000,
"creator":
{
"firstName":"Test",
"fullName":"Test Test",
"id":10257,
"images":[],
"jobTitle":"",
"lastName":"Test",
"screenName":"test"
},
"editCount":0,
"externalPost":false,
"hasAttachments":false,
"id":300001,
"lastModifiedDate":1333987993000,
"lastModifier":
{
"firstName":"Test",
"fullName":"Test Test",
"id":10257,
"images":[],
"jobTitle":"",
"lastName":"Test",
"screenName":"test"
},
"lastTransactionTime":0,
"lastTransactionType":"",
"lastTransactionUser":null,
"permissions":
[
{
"principal":
{
"id":3810126,
"resource":"http://quad.cisco.com/schema/1.0/community",
"creator":
{
"id":10257,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"Test",
"lastName":"Test",
"fullName":"Test Test",
"screenName":"test",
"images":[],
"startWorkHour":-1,
"endWorkHour":-1,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":"",
"addresses":[],
"emails":
[
{
"id":0,
"resource":"http://quad.cisco.com/schema/1.0/email",
"address":"test@cisco.com",
"primary":true}],
"phones":[],
"tags":[]
},
"name":"Testing",
"description":"This community is here to discuss testing methods.",
"shortName":"/testing",
"type":"open",
"category":
{
"id":1210044,
"resource":"http://quad.cisco.com/schema/1.0/communitycategory",
"name":"General",
"description":"This is an all-purpose category that requires no approval",
"creator":
{
"id":10198,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"",
"lastName":"",
"fullName":" ",
"screenName":"10198",
"images":[],
"startWorkHour":-1,
"endWorkHour":-1,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":"",
"addresses":[],
"emails":
[
{
"id":0,
"resource":"http://quad.cisco.com/schema/1.0/email",
"address":"default@cisco.com","primary":true
}
],
"phones":[],
"tags":[]
},
"approvalRequired":false,
"modifiedDate":1329935801723,
"generalCategory":true,
"questions":[],
"images":null
},
"state":"live",
"userCount":3,
"stateChangedDate":1333988814110,
"liveDate":1333988814110,
"questionAnswers":null,
"tags":
[
{
"id":3810226,
"resource":"http://quad.cisco.com/schema/1.0/tag",
"name":"qa",
"type":null
},
{
"id":3810224,
"resource":"http://quad.cisco.com/schema/1.0/tag",
"name":"testing",
"type":null
}
],
"images":
[
{
"image":
{
"id":1210046,
"resource":"",
"size":949,
"published":0,
"updated":1329935801760,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210046",
"height":31,
"width":31
},
"sizeType":"medium1"
},
{
"image":
{
"id":1210045,
"resource":"",
"size":853,
"published":0,
"updated":1329935801744,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210045",
"height":24,
"width":24
},
"sizeType":"small"
},
{
"image":
{
"id":1210048,
"resource":"",
"size":2613,
"published":0,
"updated":1329935801822,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210048",
"height":103,
"width":103
},
"sizeType":"large"
},
{
"image":
{
"id":1210047,
"resource":"",
"size":1392,
"published":0,
"updated":1329935801778,
"fileName":null,
"mimeType":"jpg",
"author":null,
"uri":"/image/image_gallery?img_id=1210047",
"height":59,
"width":59
},
"sizeType":"medium2"
}
]
},
"permissionFlags":
{
"view":true,
"edit":true,
"comment":true,
"share":false,
"authorize":false
}
},
{
"principal":
{
"id":10257,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"Test",
"lastName":"Test",
"fullName":"Test Test",
"screenName":"test",
"images":[],
"startWorkHour":0,
"endWorkHour":0,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":null,
"addresses":null,
"emails":null,
"phones":null,
"tags":null
},
"permissionFlags":
{
"view":true,
"edit":true,
"comment":true,
"share":true,
"authorize":true
}
}
],
"publicPost":false,
"resource":"http://quad.cisco.com/schema/1.0/post",
"rootMessageId":3810232,
"state":"ACTIVE",
"summary":"This community will only be used for what it is intended to be. Also, this is the first post.",
"tags":[],
"title":"Rules",
"type":"TEXT",
"version":1
}
}
],
"serverMessages":null
}
Get a specified user's last micropost
Returns a users last micropost.
Authentication Required
Supported since version 2.5
GET /api/quad/rest/users/3810053/posts/@status/ HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120314 Firefox/10.0.3
Accept: application/json
Accept-Encoding: gzip, deflate
Authorization: OAuth realm="http%3A%2F%2Flocalhost%2Fquadopen%2Fapi%2Frest%2Fusers%2F3810053%2Fposts%2F%40status%2F",
oauth_signature_method="HMAC-SHA1",oauth_version="1.0",oauth_nonce="QwF4DH",oauth_timestamp="1334071504",
oauth_consumer_key="12535437fecf5dc682d7f498dda39c704af40694",oauth_token="8dbfa2a4-c516-cafe-a696-56eb336a4a8d",
oauth_signature="VE1wjnhUH9N%2BYdjFZimQc2U7Fqo%3D"
Cookie: JSESSIONID=3BDE33A45ADA32A20995D356A1EE25AB.localhost.cisco.comjvm;
JSESSIONID=26610C33D1923CAED358D3F49611F2B1.localhost.cisco.comjvm;
GUEST_LANGUAGE_ID=en_US; COOKIE_SUPPORT=true
HTTP/1.1 200 OK
Date: Tue, 10 Apr 2012 15:25:04 GMT
Server: Apache
Content-Encoding: gzip
Content-Length: 602
Content-Type: application/json;charset=UTF-8
{
"statusCode":200,
"startIndex":0,
"itemsPerPage":1,
"totalResults":0,
"filtered":false,
"sorted":false,
"entry":
[
{
"data":
{
"attachments":[],
"body":"Art is never finished, only abandoned.",
"commentCount":0,
"createDate":1333989351418,
"creator":
{
"firstName":"Leonardo",
"fullName":"Leonardo De Vinci",
"id":3810053,
"images":[],
"jobTitle":"",
"lastName":"De Vinci",
"screenName":"leo"
},
"editCount":0,
"externalPost":false,
"hasAttachments":false,
"id":300007,
"lastModifiedDate":1333989351418,
"lastModifier":
{
"firstName":"Leonardo",
"fullName":"Leonardo De Vinci",
"id":3810053,
"images":[],
"jobTitle":"",
"lastName":"De Vinci",
"screenName":"leo"
},
"lastTransactionTime":1333989351418,
"lastTransactionType":"",
"lastTransactionUser":null,
"permissions":
[
{
"principal":
{
"id":3810053,
"resource":"http://quad.cisco.com/schema/1.0/user",
"manager":null,
"firstName":"Leonardo",
"lastName":"De Vinci",
"fullName":"Leonardo De Vinci",
"screenName":"leo",
"images":[],
"startWorkHour":0,
"endWorkHour":0,
"timeZone":"America/Los_Angeles",
"jobTitle":"",
"friendlyJobTitle":null,
"addresses":null,
"emails":null,
"phones":null,
"tags":null
},
"permissionFlags":
{
"view":true,
"edit":true,
"comment":true,
"share":true,
"authorize":true
}
}
],
"publicPost":true,
"resource":"http://quad.cisco.com/schema/1.0/post",
"rootMessageId":3810529,
"state":"ACTIVE",
"summary":"Art is never finished, only abandoned.",
"tags":[],
"title":"Art is never finished, only abandoned.",
"type":"MICRO",
"version":1
}
}
],
"serverMessages":null
}
