Skip to content

Commit 4393f63

Browse files
docs: correct LinkedIn search response shapes
Co-Authored-By: Adil <adil@lix-it.com>
1 parent 6982934 commit 4393f63

1 file changed

Lines changed: 19 additions & 32 deletions

File tree

source/includes/_linkedin.md

Lines changed: 19 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,8 @@ print(response.json())
5656
5757
```json
5858
{
59-
"searchResponse": {
60-
"people": [ Person ],
61-
"paging": { "count": 25, "start": 0, "total": 1000 },
62-
},
59+
"people": [ Person ],
60+
"paging": { "count": 25, "start": 0, "total": 1000 }
6361
}
6462
```
6563

@@ -116,10 +114,8 @@ print(response.json())
116114
117115
```json
118116
{
119-
"searchResponse": {
120-
"people": [ JobPosting ],
121-
"paging": { "count": 10, "start": 0, "total": 1000 },
122-
},
117+
"jobPostings": [ JobPosting ],
118+
"paging": { "count": 10, "start": 0, "total": 1000 }
123119
}
124120
```
125121

@@ -246,10 +242,11 @@ print(response.json())
246242
247243
```json
248244
{
249-
"searchResponse": {
250-
"posts": [ Post ],
251-
"paging": { "count": 10, "start": 0, "total": 1000 },
252-
},
245+
"posts": [ Post ],
246+
"paging": { "count": 10, "start": 0, "total": 1000 },
247+
"meta": {
248+
"sequenceId": "jAkFkdjfi19kFdf"
249+
}
253250
}
254251
```
255252

@@ -306,10 +303,8 @@ print(response.json())
306303
307304
```json
308305
{
309-
"searchResponse": {
310-
"posts": [ Org ],
311-
"paging": { "count": 10, "start": 0, "total": 1000 },
312-
},
306+
"orgs": [ Org ],
307+
"paging": { "count": 10, "start": 0, "total": 1000 }
313308
}
314309
```
315310

@@ -366,10 +361,8 @@ print(response.json())
366361
367362
```json
368363
{
369-
"searchResponse": {
370-
"people": [ Person ],
371-
"paging": { "count": 25, "start": 0, "total": 2500 },
372-
},
364+
"people": [ Person ],
365+
"paging": { "count": 25, "start": 0, "total": 2500 },
373366
"meta": {
374367
"sequenceId": "jAkFkdjfi19kFdf"
375368
}
@@ -491,10 +484,8 @@ print(response.json())
491484
492485
```json
493486
{
494-
"searchResponse": {
495-
"people": [ Organisation ],
496-
"paging": { "count": 25, "start": 0, "total": 2500 },
497-
},
487+
"organisations": [ Organisation ],
488+
"paging": { "count": 25, "start": 0, "total": 2500 },
498489
"meta": {
499490
"sequenceId": "jAkFkdjfi19kFdf"
500491
}
@@ -553,10 +544,8 @@ print(response.json())
553544
554545
```json
555546
{
556-
"searchResponse": {
557-
"people": [ Person ],
558-
"paging": { "count": 25, "start": 0, "total": 250 },
559-
},
547+
"people": [ Person ],
548+
"paging": { "count": 25, "start": 0, "total": 250 },
560549
"meta": {
561550
"sequenceId": "jAkFkdjfi19kFdf"
562551
}
@@ -615,10 +604,8 @@ print(response.json())
615604
616605
```json
617606
{
618-
"searchResponse": {
619-
"people": [ Organisation ],
620-
"paging": { "count": 25, "start": 0, "total": 250 },
621-
},
607+
"organisations": [ Organisation ],
608+
"paging": { "count": 25, "start": 0, "total": 250 },
622609
"meta": {
623610
"sequenceId": "jAkFkdjfi19kFdf"
624611
}

0 commit comments

Comments
 (0)