Skip to content

Instantly share code, notes, and snippets.

@DavidYKay
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidYKay/3e149b570c25c757c81c to your computer and use it in GitHub Desktop.
Save DavidYKay/3e149b570c25c757c81c to your computer and use it in GitHub Desktop.
------------------------------------------------------------
updateComments:(person:(firstName)
------------------------------------------------------------
Result: Behaves a lot like the updateComments call. Person object comes back empty.
URL: https://api.linkedin.com/v1/companies/1694/updates:(updateComments:(person:(firstName)))
Response:
{
"cookies": {
"lidc": {
"path": "\/",
"domain": ".linkedin.com",
"expires": "2014-07-16T18:39:04Z",
"version": 0,
"value": "\"b=VB04:g=79:u=28:i=1405457585:t=1405535944:s=1558747914\""
}
},
"trace-redirects": [
"https:\/\/api.linkedin.com\/v1\/companies\/1694\/updates:(updateComments:(person:(firstName)))"
],
"request-time": 2309,
"status": 200,
"headers": {
"x-li-fabric": "prod-lva1",
"server": "Apache-Coyote\/1.1",
"content-encoding": "gzip",
"content-type": "application\/json;charset=UTF-8",
"date": "Tue, 15 Jul 2014 21:06:12 GMT",
"vary": "*",
"x-li-format": "json",
"x-li-request-id": "X03HVZSEYT",
"transfer-encoding": "chunked",
"x-li-pop": "PROD-ELA4",
"x-li-uuid": "ZM1DEYxiW4xGUpMo\/c92zg==",
"connection": "keep-alive"
},
"body": {
"_count": 14,
"_start": 0,
"_total": 15,
"values": [
{
"updateComments": {
"_total": 0
}
},
{
"updateComments": {
"_total": 5,
"values": [
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
}
]
}
},
{
"updateComments": {
"_total": 5,
"values": [
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
}
]
}
},
{
"updateComments": {
"_total": 7,
"values": [
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
}
]
}
},
{
"updateComments": {
"_total": 5,
"values": [
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
}
]
}
},
{
"updateComments": {
"_total": 10,
"values": [
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
}
]
}
},
{
"updateComments": {
"_total": 10,
"values": [
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
"lastName": "private",
"firstName": "private",
"id": "private"
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
}
]
}
},
{
"updateComments": {
"_total": 6,
"values": [
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
"lastName": "private",
"firstName": "private",
"id": "private"
}
}
]
}
},
{
"updateComments": {
"_total": 4,
"values": [
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
}
]
}
},
{
"updateComments": {
"_total": 3,
"values": [
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
}
]
}
},
{
"updateComments": {
"_total": 3,
"values": [
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
"lastName": "private",
"firstName": "private",
"id": "private"
}
}
]
}
},
{
"updateComments": {
"_total": 7,
"values": [
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
}
}
]
}
},
{
"updateComments": {
"_total": 4,
"values": [
{
"person": {
"lastName": "private",
"firstName": "private",
"id": "private"
}
},
{
"person": {
}
},
{
"person": {
}
},
{
"person": {
"lastName": "private",
"firstName": "private",
"id": "private"
}
}
]
}
},
{
"updateComments": {
"_total": 2,
"values": [
{
"person": {
}
},
{
"person": {
}
}
]
}
}
]
}
}
------------------------------------------------------------
As suggested in the docs:
:(id,category,creator:(id,first-name,last-name),title,summary,creation-timestamp,site-group-post-url,comments,likes)
------------------------------------------------------------
Result: Errors completely (misnamed fields)
URL: https://api.linkedin.com/v1/companies/1694/updates:(id,category,creator:(id,first-name,last-name),title,summary,creation-timestamp,site-group-post-url,comments,likes)
Response: HTTP 400
------------------------------------------------------------
JUST comments
:(updateComments)
------------------------------------------------------------
Result: Works, but person objects are empty
URL: https://api.linkedin.com/v1/companies/1694/updates:(updateComments)
Response:
{
"cookies": {
"lidc": {
"path": "\/",
"domain": ".linkedin.com",
"expires": "2014-07-16T18:39:04Z",
"version": 0,
"value": "\"b=VB04:g=79:u=28:i=1405457585:t=1405535944:s=1558747914\""
}
},
"trace-redirects": [
"https:\/\/api.linkedin.com\/v1\/companies\/1694\/updates:(updateComments)"
],
"request-time": 2428,
"status": 200,
"headers": {
"x-li-fabric": "prod-lva1",
"server": "Apache-Coyote\/1.1",
"content-encoding": "gzip",
"content-type": "application\/json;charset=UTF-8",
"date": "Tue, 15 Jul 2014 21:05:41 GMT",
"vary": "*",
"x-li-format": "json",
"x-li-request-id": "CHFSKGP3NH",
"transfer-encoding": "chunked",
"x-li-pop": "PROD-ELA4",
"x-li-uuid": "8kV\/zDVGpahumzO3yy9AlQ==",
"connection": "keep-alive"
},
"body": {
"_count": 14,
"_start": 0,
"_total": 15,
"values": [
{
"updateComments": {
"_total": 0
}
},
{
"updateComments": {
"_total": 5,
"values": [
{
"comment": "Good!!!!",
"id": 5.8943345382214e+18,
"person": {
},
"sequenceNumber": 0,
"timestamp": 1405318865353
},
{
"comment": "Way to go Randall! Great article Jackie :)",
"id": 5.8935621397292e+18,
"person": {
},
"sequenceNumber": 1,
"timestamp": 1405134711202
},
{
"comment": "Yes for choosing Gary Player!",
"id": 5.8934912961815e+18,
"person": {
},
"sequenceNumber": 2,
"timestamp": 1405117820784
},
{
"comment": "Iam so happy about.contact also my country cause we the best in africa.I don't miss coca all the day \n",
"id": 5.893462489668e+18,
"person": {
},
"sequenceNumber": 3,
"timestamp": 1405110952777
},
{
"comment": "Nice but you should contact Gary Player for your \"Healthy Choice\" program...",
"id": 5.8934483360647e+18,
"person": {
},
"sequenceNumber": 4,
"timestamp": 1405107578295
}
]
}
},
{
"updateComments": {
"_total": 5,
"values": [
{
"comment": "I for one think you should start investing on people who will develop,integrate new ideas and skills people who are willing to change our country as for the economy, people who are keen,hungry for success, self driven , enthusiastic, people who thing about the future and its challenges , people who will stand up a fight for a better future and thats the youth give us a chance and see we won't move the world for the coming generation to have a life worth living for , give us a chance to put into practice our knowledge and skills our power and abilitys",
"id": 5.893452684329e+18,
"person": {
},
"sequenceNumber": 0,
"timestamp": 1405108615000
},
{
"comment": "the best soft drink ever on heart .... just a Gold Mine ... nice and fresh ... they can afford to pay salary do charity make people smile ... this is like a company should be .... Thank you Coca Cola inc.",
"id": 5.8933124575055e+18,
"person": {
},
"sequenceNumber": 1,
"timestamp": 1405075182320
},
{
"comment": "Thinking with Coca Cola.",
"id": 5.8931019286483e+18,
"person": {
},
"sequenceNumber": 2,
"timestamp": 1405024988329
},
{
"comment": "If you want to make a real difference you need to change your focus from being, one that is only company focused, to one that is actually concerned for those that are in need. If you genuinely want to assist those in need you need to act appropriately, then you will win consumers hearts and support... Eventually from a business perspective their share of wallet!",
"id": 5.893056944545e+18,
"person": {
},
"sequenceNumber": 3,
"timestamp": 1405014263284
},
{
"comment": "Adapt your approach from being Coca-Cola focused to one that is focused on the needs of your initiative and the assistance of those in need.",
"id": 5.893053417366e+18,
"person": {
},
"sequenceNumber": 4,
"timestamp": 1405013422338
}
]
}
},
{
"updateComments": {
"_total": 7,
"values": [
{
"comment": "I want to train I want to work I am searchhhhhhing for an oppourtunity one chance one choice",
"id": 5.8930184714485e+18,
"person": {
},
"sequenceNumber": 0,
"timestamp": 1405005090582
},
{
"comment": "Glad to see another corporate following the Nestle Youth Employment Initiative - we need to start engaging with our future",
"id": 5.8927980496206e+18,
"person": {
},
"sequenceNumber": 1,
"timestamp": 1404952537923
},
{
"comment": "Apprenticeship has been since Biblical times, it amazes me how little it is implemented in current times...",
"id": 5.8926343819562e+18,
"person": {
},
"sequenceNumber": 2,
"timestamp": 1404913519431
},
{
"comment": "Thanks for this very useful information. I believe that this system can be creatively adjusted to suite the different types of industries so as to reduce the high rates of unemployment.",
"id": 5.8926322991361e+18,
"person": {
},
"sequenceNumber": 3,
"timestamp": 1404913021730
},
{
"comment": "Have known Irial for years... He has always been there to help others grow their career at Coca-Cola...",
"id": 5.89242419712e+18,
"person": {
},
"sequenceNumber": 4,
"timestamp": 1404863404543
},
{
"comment": "We are proud to be part of Coke:)",
"id": 5.8923387973618e+18,
"person": {
},
"sequenceNumber": 5,
"timestamp": 1404843046338
},
{
"comment": "Champion initiative of the societal responsibility of TCCC",
"id": 5.892328163115e+18,
"person": {
},
"sequenceNumber": 6,
"timestamp": 1404840508252
}
]
}
},
{
"updateComments": {
"_total": 5,
"values": [
{
"comment": "Putting the name of a person on each bottle of coke is a great idea,cause this makes it very personel.",
"id": 5.8922967498459e+18,
"person": {
},
"sequenceNumber": 0,
"timestamp": 1404833020127
},
{
"comment": "Emotional intelligence at it's finest!",
"id": 5.8902169694996e+18,
"person": {
},
"sequenceNumber": 1,
"timestamp": 1404337162329
},
{
"comment": "coke music is classical\n",
"id": 5.890176388304e+18,
"person": {
},
"sequenceNumber": 2,
"timestamp": 1404327485158
},
{
"comment": "I like the music,with Coca Cola Company.",
"id": 5.8901380072557e+18,
"person": {
},
"sequenceNumber": 3,
"timestamp": 1404318335964
},
{
"comment": "Music Connects Instantly !",
"id": 5.8901346891334e+18,
"person": {
},
"sequenceNumber": 4,
"timestamp": 1404317545043
}
]
}
},
{
"updateComments": {
"_total": 10,
"values": [
{
"comment": "well said azher",
"id": 5.8935145173038e+18,
"person": {
},
"sequenceNumber": 0,
"timestamp": 1405123357131
},
{
"comment": "thats great, everyone should get a second chance..ths thnk will change n stop sch people frm repeatng sch activities",
"id": 5.8935047335025e+18,
"person": {
},
"sequenceNumber": 1,
"timestamp": 1405121024491
},
{
"comment": "@Tom. I have a criminal history, are you saying that I shouldn't be allowed to work because of my past? Even if I'm more qualified than someone with a clean background? Well that just sounds like bad business to me. This type of program helps to keep ex cons from becoming institutionalized and committing repeat offences. \nTake a good look at yourself before you judge someone else sir. You will find that you are not perfect, nor is anyone else.",
"id": 5.8931455550932e+18,
"person": {
},
"sequenceNumber": 2,
"timestamp": 1405035391293
},
{
"comment": "A talent pool of criminals? Millions of unemployed and they're considering felons? They deserve what they asked for! Complete idiots.......... Pull my investments, looks like another political PR move that should be made to pay for their silly attempts at PC. ",
"id": 5.8927195029441e+18,
"person": {
},
"sequenceNumber": 3,
"timestamp": 1404933810938
},
{
"comment": "Interesting....to say the least. ",
"id": 5.8911720855223e+18,
"person": {
},
"sequenceNumber": 4,
"timestamp": 1404564880853
},
{
"comment": "It depends on what they served time for.",
"id": 5.890091038609e+18,
"person": {
},
"sequenceNumber": 5,
"timestamp": 1404307136205
},
{
"comment": "Atleast someone is considering this deprived and most cursed part of society",
"id": 5.8900413650725e+18,
"person": {
},
"sequenceNumber": 6,
"timestamp": 1404295295389
},
{
"comment": "Hey",
"id": 5.8899912513773e+18,
"person": {
},
"sequenceNumber": 7,
"timestamp": 1404283345075
},
{
"comment": "I think this is awesome!",
"id": 5.8898603998173e+18,
"person": {
},
"sequenceNumber": 8,
"timestamp": 1404252150195
},
{
"comment": "This initiative is very inspiring!",
"id": 5.8898393773365e+18,
"person": {
},
"sequenceNumber": 9,
"timestamp": 1404247138295
}
]
}
},
{
"updateComments": {
"_total": 10,
"values": [
{
"comment": "We are not allowed to have music in the warehouse because of safety concerns. Music does make you more productive and keeps you focused on your own work and less likely to stop and talk to others. I would love for my employees to listen to music while picking.",
"id": 5.8919283774886e+18,
"person": {
},
"sequenceNumber": 0,
"timestamp": 1404745191930
},
{
"comment": "As an avid music lover, I think this is a great source of inspiration for the workday!",
"id": 5.8899198723008e+18,
"person": {
},
"sequenceNumber": 1,
"timestamp": 1404266329612
},
{
"comment": "absolutely!\n",
"id": 5.8897676182099e+18,
"person": {
},
"sequenceNumber": 2,
"timestamp": 1404230026773
},
{
"timestamp": 1404220914422,
"comment": "Always have music going... not too loud to distract me, but loud enough to drown out some of the other noise around me. ",
"sequenceNumber": 3,
"person": {
"lastName": "private",
"firstName": "private",
"id": "private"
},
"id": 5.889729390367e+18
},
{
"comment": "oh yes, that is right! music is such a big inspiration...keeps me going.",
"id": 5.8896512713711e+18,
"person": {
},
"sequenceNumber": 4,
"timestamp": 1404202287524
},
{
"comment": "Change the new design Ice silk car seats cover for your loving car~~ http:\/\/www.aliexpress.com\/store\/835424",
"id": 5.8895827885538e+18,
"person": {
},
"sequenceNumber": 5,
"timestamp": 1404185963298
},
{
"comment": "yea music is awesome to listen to while you work...as long as you like the music. if you're forced to listen to some thing you hate on a job site, it can be extremely counter productive.",
"id": 5.8895682335513e+18,
"person": {
},
"sequenceNumber": 6,
"timestamp": 1404182491671
},
{
"comment": " Hello, this is Cindy, do you need any promotion gifts, can be put inside the food package! welcome to contact with me: cindy!qz-xt.com",
"id": 5.8895663695355e+18,
"person": {
},
"sequenceNumber": 7,
"timestamp": 1404182047157
},
{
"comment": "It's nice that some companies still care about employee happiness",
"id": 5.8895218185696e+18,
"person": {
},
"sequenceNumber": 8,
"timestamp": 1404171426168
},
{
"comment": "I have studied the impact of music on the subconscience and it having a direct affect on the conscience mind. Frequencies and rhythms are a wonderful thing of nature and very influential if used the right way.",
"id": 5.8895100465717e+18,
"person": {
},
"sequenceNumber": 9,
"timestamp": 1404168616909
}
]
}
},
{
"updateComments": {
"_total": 6,
"values": [
{
"comment": "Change the new design Ice silk car seats cover for your loving car~~ http:\/\/www.aliexpress.com\/store\/835424",
"id": 5.8895830904975e+18,
"person": {
},
"sequenceNumber": 0,
"timestamp": 1404186035123
},
{
"comment": "esta bien interesante",
"id": 5.8892409748775e+18,
"person": {
},
"sequenceNumber": 1,
"timestamp": 1404104467952
},
{
"comment": "any required properties rent\/sale plz contact mr sunil kumar emai. sunilkumar6372@gmail.com (location gurgaon)",
"id": 5.8889775040682e+18,
"person": {
},
"sequenceNumber": 2,
"timestamp": 1404041652018
},
{
"comment": "hi this sunil kumar my own bissners properties plz contact me any required in only gurgaon",
"id": 5.8888862570014e+18,
"person": {
},
"sequenceNumber": 3,
"timestamp": 1404019897574
},
{
"comment": "hi i have to join with u",
"id": 5.8882997343297e+18,
"person": {
},
"sequenceNumber": 4,
"timestamp": 1403880057317
},
{
"timestamp": 1403794086051,
"comment": "You want to get ahead, build a career - it's who you know. Relationships matter. ",
"sequenceNumber": 5,
"person": {
"lastName": "private",
"firstName": "private",
"id": "private"
},
"id": 5.8879391377046e+18
}
]
}
},
{
"updateComments": {
"_total": 4,
"values": [
{
"comment": "Yea lets all plz join hands and do dat!",
"id": 5.8925607886227e+18,
"person": {
},
"sequenceNumber": 0,
"timestamp": 1404895970493
},
{
"comment": "Change the new design Ice silk car seats cover for your loving car~~ http:\/\/www.aliexpress.com\/store\/835424",
"id": 5.8895831285482e+18,
"person": {
},
"sequenceNumber": 1,
"timestamp": 1404186043872
},
{
"comment": "this summer~~~~",
"id": 5.8870335424787e+18,
"person": {
},
"sequenceNumber": 2,
"timestamp": 1403578174085
},
{
"comment": "Are we seeing the appearance of medicated Coke e.g. Seltzercola? You guys already have distribution network in place.",
"id": 5.8868871487701e+18,
"person": {
},
"sequenceNumber": 3,
"timestamp": 1403543269342
}
]
}
},
{
"updateComments": {
"_total": 3,
"values": [
{
"comment": "Wow i have search about this photo,the information with it,is amazing with good memories at Argentina",
"id": 5.8871581359106e+18,
"person": {
},
"sequenceNumber": 0,
"timestamp": 1403607877711
},
{
"comment": "fantastic~~~~~~~",
"id": 5.887033682602e+18,
"person": {
},
"sequenceNumber": 1,
"timestamp": 1403578207403
},
{
"comment": "Congratulations on the win yesterday. Messi shot was awesome!!!!!!",
"id": 5.8864867762934e+18,
"person": {
},
"sequenceNumber": 2,
"timestamp": 1403447815976
}
]
}
},
{
"updateComments": {
"_total": 3,
"values": [
{
"comment": "Patricia Malaver, i like your comment. That was so brilliant of you. It is always said \" our success springs from togetherness and support from each other\" and having a fruitful competition amongst your team.\nThank you for that.",
"id": 5.8857257490837e+18,
"person": {
},
"sequenceNumber": 0,
"timestamp": 1403266370079
},
{
"comment": "no need coca cola...we drink trina now!",
"id": 5.8854442766613e+18,
"person": {
},
"sequenceNumber": 1,
"timestamp": 1403199261824
},
{
"timestamp": 1403190221634,
"comment": "\"If You Want To Go Fast, Go Alone. If You Want To Go Far, Go Together\u201d",
"sequenceNumber": 2,
"person": {
"lastName": "private",
"firstName": "private",
"id": "private"
},
"id": 5.8854063593604e+18
}
]
}
},
{
"updateComments": {
"_total": 7,
"values": [
{
"comment": "Way to go Coca-Cola, you made me smile, you are strategically changing the way to teach the youth and I'm smiling and jumping up and down with what I just saw. WOW. Thank You, Chris Dunn",
"id": 5.8858246485993e+18,
"person": {
},
"sequenceNumber": 0,
"timestamp": 1403289951608
},
{
"comment": "like coca cola",
"id": 5.8852766159775e+18,
"person": {
},
"sequenceNumber": 1,
"timestamp": 1403159291529
},
{
"comment": "That's great",
"id": 5.8851924614956e+18,
"person": {
},
"sequenceNumber": 2,
"timestamp": 1403139224411
},
{
"comment": "Super it took my own cost to download your pitiful coke thing. Market share vs profits? Who cares we can do so much more. Kirk",
"id": 5.8851825399953e+18,
"person": {
},
"sequenceNumber": 3,
"timestamp": 1403136858940
},
{
"comment": "Awesome!",
"id": 5.8851694201872e+18,
"person": {
},
"sequenceNumber": 4,
"timestamp": 1403133730935
},
{
"comment": "great design , look like a music box",
"id": 5.8851563052655e+18,
"person": {
},
"sequenceNumber": 5,
"timestamp": 1403130606700
},
{
"comment": "Woww!!",
"id": 5.8851560309413e+18,
"person": {
},
"sequenceNumber": 6,
"timestamp": 1403130538688
}
]
}
},
{
"updateComments": {
"_total": 4,
"values": [
{
"timestamp": 1405108326808,
"comment": "Sorry that I missed it as well. I had a question I wanted to ask about how the company plans to market Coca-Cola Life which is set to be introduced in the fall.",
"sequenceNumber": 0,
"person": {
"lastName": "private",
"firstName": "private",
"id": "private"
},
"id": 5.8934514653091e+18
},
{
"comment": "Missed this too. Is there a link for the twitter transcript?",
"id": 5.8851230857613e+18,
"person": {
},
"sequenceNumber": 1,
"timestamp": 1403122683945
},
{
"comment": "Bummed that I missed this. When will a transcript of chat be availabe?",
"id": 5.8848356859778e+18,
"person": {
},
"sequenceNumber": 2,
"timestamp": 1403054164958
},
{
"timestamp": 1403023585201,
"comment": "It was great! Thanks for sharing",
"sequenceNumber": 3,
"person": {
"lastName": "private",
"firstName": "private",
"id": "private"
},
"id": 5.8847074355029e+18
}
]
}
},
{
"updateComments": {
"_total": 2,
"values": [
{
"comment": "Change the new design Ice silk car seats cover for your loving car~~ http:\/\/www.aliexpress.com\/store\/835424",
"id": 5.8895832517182e+18,
"person": {
},
"sequenceNumber": 0,
"timestamp": 1404186073843
},
{
"comment": "We need more companies doing investments like this !! Congratulations to the Coca-Cola company!",
"id": 5.8843498646906e+18,
"person": {
},
"sequenceNumber": 1,
"timestamp": 1402938335232
}
]
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment