linkedin2 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +2 -0
- data/.gitignore +2 -0
- data/.rspec +2 -2
- data/.travis.yml +1 -1
- data/README.md +3 -3
- data/Rakefile +1 -1
- data/lib/linkedin/api.rb +16 -0
- data/lib/linkedin/api/authentication.rb +5 -7
- data/lib/linkedin/api/companies.rb +16 -10
- data/lib/linkedin/api/invitation.rb +39 -0
- data/lib/linkedin/api/messaging.rb +24 -0
- data/lib/linkedin/api/network_updates.rb +5 -9
- data/lib/linkedin/api/people.rb +18 -0
- data/lib/linkedin/client.rb +34 -72
- data/lib/linkedin/configuration.rb +26 -11
- data/lib/linkedin/credentials.rb +27 -0
- data/lib/linkedin/errors.rb +45 -0
- data/lib/linkedin/faraday_middleware.rb +6 -4
- data/lib/linkedin/faraday_middleware/credentials_request.rb +31 -0
- data/lib/linkedin/faraday_middleware/{linkedin_error_response.rb → error_response.rb} +2 -10
- data/lib/linkedin/faraday_middleware/format_request.rb +17 -0
- data/lib/linkedin/faraday_middleware/user_agent_request.rb +10 -0
- data/lib/linkedin/fields.rb +58 -0
- data/lib/linkedin/industries.rb +199 -0
- data/lib/linkedin/response.rb +19 -0
- data/lib/linkedin/version.rb +1 -1
- data/lib/linkedin2.rb +11 -19
- data/linkedin.gemspec +16 -7
- data/spec/api/companies_spec.rb +8 -9
- data/spec/api/groups_spec.rb +3 -4
- data/spec/api/jobs_spec.rb +2 -3
- data/spec/api/network_updates_spec.rb +9 -15
- data/spec/api/{profiles_spec.rb → people_spec.rb} +11 -13
- data/spec/faraday_middleware/{linkedin_error_response_spec.rb → error_response_spec.rb} +8 -21
- data/spec/fixtures/requests/companies.yml +25 -15
- data/spec/fixtures/requests/invalid.yml +7 -7
- data/spec/fixtures/requests/network_updates.yml +12 -12
- data/spec/fixtures/requests/people.yml +380 -0
- data/spec/spec_helper.rb +18 -19
- data/spec/support/coverage.rb +14 -0
- data/spec/support/vcr.rb +9 -0
- data/spec/test_app.yml +3 -2
- metadata +119 -38
- data/lib/linkedin/api/industries.rb +0 -171
- data/lib/linkedin/api/permissions.rb +0 -42
- data/lib/linkedin/api/profiles.rb +0 -71
- data/lib/linkedin/error.rb +0 -29
- data/lib/linkedin/faraday_middleware/linkedin_format_request.rb +0 -26
- data/lib/linkedin/industry.rb +0 -33
- data/spec/fixtures/requests/profiles.yml +0 -201
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.linkedin.com/v1/people
|
5
|
+
uri: https://api.linkedin.com/v1/people/~
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -12,7 +12,7 @@ http_interactions:
|
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 401
|
15
|
-
message:
|
15
|
+
message:
|
16
16
|
headers:
|
17
17
|
server:
|
18
18
|
- Apache-Coyote/1.1
|
@@ -48,11 +48,11 @@ http_interactions:
|
|
48
48
|
"status": 401,
|
49
49
|
"timestamp": 1379777767455
|
50
50
|
}
|
51
|
-
http_version:
|
51
|
+
http_version:
|
52
52
|
recorded_at: Sat, 21 Sep 2013 15:36:08 GMT
|
53
53
|
- request:
|
54
54
|
method: get
|
55
|
-
uri: https://api.linkedin.com/v1/people/~?oauth2_access_token=AQXjfyOrBFhWJIkcBXi1ubzLZQhQc2CVGoXdgo2I6wirbJejAwhXDIYu-3gnADeNVeRey_m9jvohTG9rAjFhzakL7UkTbXIBC_GlwTHhhUWHTXzWdRgtVu-al9BQ3bDGCkbsaiCJySOkUn5YFPJE-7eFkA5MwZi_4PJZoep0D80yI8svMkk
|
55
|
+
uri: https://api.linkedin.com/v1/people/~?oauth2_access_token=AQXjfyOrBFhWJIkcBXi1ubzLZQhQc2CVGoXdgo2I6wirbJejAwhXDIYu-3gnADeNVeRey_m9jvohTG9rAjFhzakL7UkTbXIBC_GlwTHhhUWHTXzWdRgtVu-al9BQ3bDGCkbsaiCJySOkUn5YFPJE-7eFkA5MwZi_4PJZoep0D80yI8svMkk
|
56
56
|
body:
|
57
57
|
encoding: US-ASCII
|
58
58
|
string: ''
|
@@ -62,9 +62,9 @@ http_interactions:
|
|
62
62
|
response:
|
63
63
|
status:
|
64
64
|
code: 200
|
65
|
-
message:
|
65
|
+
message:
|
66
66
|
headers:
|
67
|
-
|
67
|
+
Server:
|
68
68
|
- Apache-Coyote/1.1
|
69
69
|
x-li-request-id:
|
70
70
|
- 0V741GCJOT
|
@@ -99,6 +99,6 @@ http_interactions:
|
|
99
99
|
"lastName": "Testjordan",
|
100
100
|
"siteStandardProfileRequest": {"url": "http://www.linkedin.com/profile/view?id=292221312&authType=name&authToken=lTbb&trk=api*a3296321*s3370311*"}
|
101
101
|
}
|
102
|
-
http_version:
|
102
|
+
http_version:
|
103
103
|
recorded_at: Sun, 13 Oct 2013 18:48:56 GMT
|
104
104
|
recorded_with: VCR 2.5.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.linkedin.com/v1/people/~/network/updates?oauth2_access_token=AQUJwEF40pJUbVxsW_mujQ3QCiXvlTnMFk55SlfVPYRcAPdsn1oE1Hm8Ldlc61o57k96i04ufG81KFdPJIOSJswXsGyZ0tk9IMZea8sfNXMGMnZgikQJUQPkmRVYVw9BP1qH9tp7hJF32DQtzkBB_NE8xPASPVgXVWbbntChGyYqqDvF1p8
|
5
|
+
uri: https://api.linkedin.com/v1/people/~/network/updates?oauth2_access_token=AQUJwEF40pJUbVxsW_mujQ3QCiXvlTnMFk55SlfVPYRcAPdsn1oE1Hm8Ldlc61o57k96i04ufG81KFdPJIOSJswXsGyZ0tk9IMZea8sfNXMGMnZgikQJUQPkmRVYVw9BP1qH9tp7hJF32DQtzkBB_NE8xPASPVgXVWbbntChGyYqqDvF1p8
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -12,7 +12,7 @@ http_interactions:
|
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
15
|
-
message:
|
15
|
+
message:
|
16
16
|
headers:
|
17
17
|
server:
|
18
18
|
- Apache-Coyote/1.1
|
@@ -495,11 +495,11 @@ http_interactions:
|
|
495
495
|
}
|
496
496
|
]
|
497
497
|
}
|
498
|
-
http_version:
|
498
|
+
http_version:
|
499
499
|
recorded_at: Sun, 13 Oct 2013 23:16:44 GMT
|
500
500
|
- request:
|
501
501
|
method: get
|
502
|
-
uri: https://api.linkedin.com/v1/people/~/network/updates/key=PROF-18939563-5794095336964247552-*1?oauth2_access_token=AQUJwEF40pJUbVxsW_mujQ3QCiXvlTnMFk55SlfVPYRcAPdsn1oE1Hm8Ldlc61o57k96i04ufG81KFdPJIOSJswXsGyZ0tk9IMZea8sfNXMGMnZgikQJUQPkmRVYVw9BP1qH9tp7hJF32DQtzkBB_NE8xPASPVgXVWbbntChGyYqqDvF1p8
|
502
|
+
uri: https://api.linkedin.com/v1/people/~/network/updates/key=PROF-18939563-5794095336964247552-*1?oauth2_access_token=AQUJwEF40pJUbVxsW_mujQ3QCiXvlTnMFk55SlfVPYRcAPdsn1oE1Hm8Ldlc61o57k96i04ufG81KFdPJIOSJswXsGyZ0tk9IMZea8sfNXMGMnZgikQJUQPkmRVYVw9BP1qH9tp7hJF32DQtzkBB_NE8xPASPVgXVWbbntChGyYqqDvF1p8
|
503
503
|
body:
|
504
504
|
encoding: US-ASCII
|
505
505
|
string: ''
|
@@ -509,7 +509,7 @@ http_interactions:
|
|
509
509
|
response:
|
510
510
|
status:
|
511
511
|
code: 200
|
512
|
-
message:
|
512
|
+
message:
|
513
513
|
headers:
|
514
514
|
server:
|
515
515
|
- Apache-Coyote/1.1
|
@@ -613,11 +613,11 @@ http_interactions:
|
|
613
613
|
"values": [{"name": "person/skills"}]
|
614
614
|
}
|
615
615
|
}
|
616
|
-
http_version:
|
616
|
+
http_version:
|
617
617
|
recorded_at: Sun, 13 Oct 2013 23:18:45 GMT
|
618
618
|
- request:
|
619
619
|
method: get
|
620
|
-
uri: https://api.linkedin.com/v1/people/~/network/updates/key=PROF-18939563-5794095336964247552-*1/update-comments?oauth2_access_token=AQUJwEF40pJUbVxsW_mujQ3QCiXvlTnMFk55SlfVPYRcAPdsn1oE1Hm8Ldlc61o57k96i04ufG81KFdPJIOSJswXsGyZ0tk9IMZea8sfNXMGMnZgikQJUQPkmRVYVw9BP1qH9tp7hJF32DQtzkBB_NE8xPASPVgXVWbbntChGyYqqDvF1p8
|
620
|
+
uri: https://api.linkedin.com/v1/people/~/network/updates/key=PROF-18939563-5794095336964247552-*1/update-comments?oauth2_access_token=AQUJwEF40pJUbVxsW_mujQ3QCiXvlTnMFk55SlfVPYRcAPdsn1oE1Hm8Ldlc61o57k96i04ufG81KFdPJIOSJswXsGyZ0tk9IMZea8sfNXMGMnZgikQJUQPkmRVYVw9BP1qH9tp7hJF32DQtzkBB_NE8xPASPVgXVWbbntChGyYqqDvF1p8
|
621
621
|
body:
|
622
622
|
encoding: US-ASCII
|
623
623
|
string: ''
|
@@ -627,7 +627,7 @@ http_interactions:
|
|
627
627
|
response:
|
628
628
|
status:
|
629
629
|
code: 200
|
630
|
-
message:
|
630
|
+
message:
|
631
631
|
headers:
|
632
632
|
server:
|
633
633
|
- Apache-Coyote/1.1
|
@@ -684,11 +684,11 @@ http_interactions:
|
|
684
684
|
"timestamp": 1381706181420
|
685
685
|
}]
|
686
686
|
}
|
687
|
-
http_version:
|
687
|
+
http_version:
|
688
688
|
recorded_at: Sun, 13 Oct 2013 23:18:53 GMT
|
689
689
|
- request:
|
690
690
|
method: get
|
691
|
-
uri: https://api.linkedin.com/v1/people/~/network/updates/key=PROF-18939563-5794095336964247552-*1/likes?oauth2_access_token=AQUJwEF40pJUbVxsW_mujQ3QCiXvlTnMFk55SlfVPYRcAPdsn1oE1Hm8Ldlc61o57k96i04ufG81KFdPJIOSJswXsGyZ0tk9IMZea8sfNXMGMnZgikQJUQPkmRVYVw9BP1qH9tp7hJF32DQtzkBB_NE8xPASPVgXVWbbntChGyYqqDvF1p8
|
691
|
+
uri: https://api.linkedin.com/v1/people/~/network/updates/key=PROF-18939563-5794095336964247552-*1/likes?oauth2_access_token=AQUJwEF40pJUbVxsW_mujQ3QCiXvlTnMFk55SlfVPYRcAPdsn1oE1Hm8Ldlc61o57k96i04ufG81KFdPJIOSJswXsGyZ0tk9IMZea8sfNXMGMnZgikQJUQPkmRVYVw9BP1qH9tp7hJF32DQtzkBB_NE8xPASPVgXVWbbntChGyYqqDvF1p8
|
692
692
|
body:
|
693
693
|
encoding: US-ASCII
|
694
694
|
string: ''
|
@@ -698,7 +698,7 @@ http_interactions:
|
|
698
698
|
response:
|
699
699
|
status:
|
700
700
|
code: 200
|
701
|
-
message:
|
701
|
+
message:
|
702
702
|
headers:
|
703
703
|
server:
|
704
704
|
- Apache-Coyote/1.1
|
@@ -738,6 +738,6 @@ http_interactions:
|
|
738
738
|
"lastName": "Testjordan"
|
739
739
|
}}]
|
740
740
|
}
|
741
|
-
http_version:
|
741
|
+
http_version:
|
742
742
|
recorded_at: Sun, 13 Oct 2013 23:19:02 GMT
|
743
743
|
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,380 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.linkedin.com/v1/people/~?oauth2_access_token=AQUJwEF40pJUbVxsW_mujQ3QCiXvlTnMFk55SlfVPYRcAPdsn1oE1Hm8Ldlc61o57k96i04ufG81KFdPJIOSJswXsGyZ0tk9IMZea8sfNXMGMnZgikQJUQPkmRVYVw9BP1qH9tp7hJF32DQtzkBB_NE8xPASPVgXVWbbntChGyYqqDvF1p8
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.8
|
12
|
+
X-Li-Format:
|
13
|
+
- json
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message:
|
18
|
+
headers:
|
19
|
+
server:
|
20
|
+
- Apache-Coyote/1.1
|
21
|
+
x-li-request-id:
|
22
|
+
- 03M2HIZ5ZZ
|
23
|
+
vary:
|
24
|
+
- "*"
|
25
|
+
x-li-format:
|
26
|
+
- json
|
27
|
+
content-type:
|
28
|
+
- application/json;charset=UTF-8
|
29
|
+
date:
|
30
|
+
- Sun, 13 Oct 2013 22:48:35 GMT
|
31
|
+
x-li-fabric:
|
32
|
+
- PROD-ELA4
|
33
|
+
access-control-allow-origin:
|
34
|
+
- https://www.linkedin.com
|
35
|
+
age:
|
36
|
+
- '0'
|
37
|
+
transfer-encoding:
|
38
|
+
- chunked
|
39
|
+
connection:
|
40
|
+
- keep-alive
|
41
|
+
x-li-pop:
|
42
|
+
- PROD-ELA4
|
43
|
+
x-li-uuid:
|
44
|
+
- mBWfxe/MLBPwzEjFASsAAA==
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: |-
|
48
|
+
{
|
49
|
+
"firstName": "Josh",
|
50
|
+
"headline": "Test Engineer at LinkedIn2 Gem",
|
51
|
+
"lastName": "Testjordan",
|
52
|
+
"siteStandardProfileRequest": {"url": "http://www.linkedin.com/profile/view?id=292221312&authType=name&authToken=lTbb&trk=api*a3296321*s3370311*"}
|
53
|
+
}
|
54
|
+
http_version:
|
55
|
+
recorded_at: Sun, 13 Oct 2013 22:48:40 GMT
|
56
|
+
- request:
|
57
|
+
method: get
|
58
|
+
uri: https://api.linkedin.com/v1/people/id=Fy5e5a4mqr?oauth2_access_token=AQUJwEF40pJUbVxsW_mujQ3QCiXvlTnMFk55SlfVPYRcAPdsn1oE1Hm8Ldlc61o57k96i04ufG81KFdPJIOSJswXsGyZ0tk9IMZea8sfNXMGMnZgikQJUQPkmRVYVw9BP1qH9tp7hJF32DQtzkBB_NE8xPASPVgXVWbbntChGyYqqDvF1p8
|
59
|
+
body:
|
60
|
+
encoding: US-ASCII
|
61
|
+
string: ''
|
62
|
+
headers:
|
63
|
+
User-Agent:
|
64
|
+
- Faraday v0.8.8
|
65
|
+
X-Li-Format:
|
66
|
+
- json
|
67
|
+
response:
|
68
|
+
status:
|
69
|
+
code: 200
|
70
|
+
message:
|
71
|
+
headers:
|
72
|
+
server:
|
73
|
+
- Apache-Coyote/1.1
|
74
|
+
x-li-request-id:
|
75
|
+
- K70EU26VBI
|
76
|
+
vary:
|
77
|
+
- "*"
|
78
|
+
x-li-format:
|
79
|
+
- json
|
80
|
+
content-type:
|
81
|
+
- application/json;charset=UTF-8
|
82
|
+
date:
|
83
|
+
- Sun, 13 Oct 2013 22:48:36 GMT
|
84
|
+
x-li-fabric:
|
85
|
+
- PROD-ELA4
|
86
|
+
access-control-allow-origin:
|
87
|
+
- https://www.linkedin.com
|
88
|
+
age:
|
89
|
+
- '0'
|
90
|
+
transfer-encoding:
|
91
|
+
- chunked
|
92
|
+
connection:
|
93
|
+
- keep-alive
|
94
|
+
x-li-pop:
|
95
|
+
- PROD-ELA4
|
96
|
+
x-li-uuid:
|
97
|
+
- sLbq6O/MLBMQaCG8uSoAAA==
|
98
|
+
body:
|
99
|
+
encoding: UTF-8
|
100
|
+
string: |-
|
101
|
+
{
|
102
|
+
"firstName": "Sir Richard",
|
103
|
+
"headline": "Chairman,Virgin Group.",
|
104
|
+
"lastName": "B.",
|
105
|
+
"siteStandardProfileRequest": {"url": "http://www.linkedin.com/profile/view?id=293623781&authType=name&authToken=Y22Y&trk=api*a3296321*s3370311*"}
|
106
|
+
}
|
107
|
+
http_version:
|
108
|
+
recorded_at: Sun, 13 Oct 2013 22:48:41 GMT
|
109
|
+
- request:
|
110
|
+
method: get
|
111
|
+
uri: https://api.linkedin.com/v1/people/~/connections?oauth2_access_token=AQUJwEF40pJUbVxsW_mujQ3QCiXvlTnMFk55SlfVPYRcAPdsn1oE1Hm8Ldlc61o57k96i04ufG81KFdPJIOSJswXsGyZ0tk9IMZea8sfNXMGMnZgikQJUQPkmRVYVw9BP1qH9tp7hJF32DQtzkBB_NE8xPASPVgXVWbbntChGyYqqDvF1p8
|
112
|
+
body:
|
113
|
+
encoding: US-ASCII
|
114
|
+
string: ''
|
115
|
+
headers:
|
116
|
+
User-Agent:
|
117
|
+
- Faraday v0.8.8
|
118
|
+
response:
|
119
|
+
status:
|
120
|
+
code: 200
|
121
|
+
message:
|
122
|
+
headers:
|
123
|
+
server:
|
124
|
+
- Apache-Coyote/1.1
|
125
|
+
x-li-request-id:
|
126
|
+
- DKYIS1K51I
|
127
|
+
vary:
|
128
|
+
- "*"
|
129
|
+
x-li-format:
|
130
|
+
- json
|
131
|
+
content-type:
|
132
|
+
- application/json;charset=UTF-8
|
133
|
+
date:
|
134
|
+
- Sun, 13 Oct 2013 22:50:18 GMT
|
135
|
+
x-li-fabric:
|
136
|
+
- PROD-ELA4
|
137
|
+
access-control-allow-origin:
|
138
|
+
- https://www.linkedin.com
|
139
|
+
age:
|
140
|
+
- '2'
|
141
|
+
transfer-encoding:
|
142
|
+
- chunked
|
143
|
+
connection:
|
144
|
+
- keep-alive
|
145
|
+
x-li-pop:
|
146
|
+
- PROD-ELA4
|
147
|
+
x-li-uuid:
|
148
|
+
- yIk8xgfNLBMQblmOAisAAA==
|
149
|
+
body:
|
150
|
+
encoding: UTF-8
|
151
|
+
string: |-
|
152
|
+
{
|
153
|
+
"_total": 2,
|
154
|
+
"values": [
|
155
|
+
{
|
156
|
+
"apiStandardProfileRequest": {
|
157
|
+
"headers": {
|
158
|
+
"_total": 1,
|
159
|
+
"values": [{
|
160
|
+
"name": "x-li-auth-token",
|
161
|
+
"value": "name:24s3"
|
162
|
+
}]
|
163
|
+
},
|
164
|
+
"url": "http://api.linkedin.com/v1/people/4eTIydMs1T"
|
165
|
+
},
|
166
|
+
"firstName": "Bob",
|
167
|
+
"headline": "Guy at EverTrue",
|
168
|
+
"id": "4eTIydMs1T",
|
169
|
+
"industry": "Leisure, Travel & Tourism",
|
170
|
+
"lastName": "Breznak",
|
171
|
+
"location": {
|
172
|
+
"country": {"code": "us"},
|
173
|
+
"name": "Greater Boston Area"
|
174
|
+
},
|
175
|
+
"pictureUrl": "http://m.c.lnkd.licdn.com/mpr/mprx/0_zR-8K5tqrNEyhBCYz0APKFGVrqDrGlCYcx60KFPQftJhjzvOMjGuObFeOJSfTn_tq4rYx8SQ5fvK",
|
176
|
+
"siteStandardProfileRequest": {"url": "http://www.linkedin.com/profile/view?id=28903483&authType=name&authToken=24s3&trk=api*a3296321*s3370311*"}
|
177
|
+
},
|
178
|
+
{
|
179
|
+
"apiStandardProfileRequest": {
|
180
|
+
"headers": {
|
181
|
+
"_total": 1,
|
182
|
+
"values": [{
|
183
|
+
"name": "x-li-auth-token",
|
184
|
+
"value": "name:Dack"
|
185
|
+
}]
|
186
|
+
},
|
187
|
+
"url": "http://api.linkedin.com/v1/people/mbAZ4HR8RV"
|
188
|
+
},
|
189
|
+
"firstName": "Josh",
|
190
|
+
"headline": "No-bullshit Software Engineer",
|
191
|
+
"id": "mbAZ4HR8RV",
|
192
|
+
"industry": "Computer Software",
|
193
|
+
"lastName": "Jordan",
|
194
|
+
"location": {
|
195
|
+
"country": {"code": "us"},
|
196
|
+
"name": "Greater Boston Area"
|
197
|
+
},
|
198
|
+
"pictureUrl": "http://m.c.lnkd.licdn.com/mpr/mprx/0_tK6jMqPfpQ370lofKczaMnrmy_kxjqUfrB-CMBig_LK7GKu7On9AccBPtmX8Y1siPPXinrgl7GAr",
|
199
|
+
"siteStandardProfileRequest": {"url": "http://www.linkedin.com/profile/view?id=18939563&authType=name&authToken=Dack&trk=api*a3296321*s3370311*"}
|
200
|
+
}
|
201
|
+
]
|
202
|
+
}
|
203
|
+
http_version:
|
204
|
+
recorded_at: Sun, 13 Oct 2013 22:50:23 GMT
|
205
|
+
- request:
|
206
|
+
method: get
|
207
|
+
uri: https://api.linkedin.com/v1/people/~:(id,first-name,last-name,maiden-name,formatted-name,phonetic-first-name,phonetic-last-name,formatted-phonetic-name,headline,industry,distance,current-share,num-connections,num-connections-capped,summary,specialties,picture-url,site-standard-profile-request,public-profile-url,location:(name,country:(code)),positions:(id,title,summary,start-date,end-date,is-current,id,name,universal-name,email-domains,company-type,ticker,website-url,industries,status,logo-url,square-logo-url,blog-rss-url,twitter-id,employee-count-range,specialties,description,stock-exchange,founded-year,end-year,num-followers,locations:(description,is-headquarters,is-active,address:(street1,street2,city,state,postal-code,country-code,region-code),contact-info:(phone1,phone2,fax))),api-standard-profile-request:(url,headers),relation-to-viewer:(num-related-connections,related-connections:(id,first-name,last-name,maiden-name,formatted-name,phonetic-first-name,phonetic-last-name,formatted-phonetic-name,headline,industry,distance,current-share,num-connections,num-connections-capped,summary,specialties,picture-url,site-standard-profile-request,public-profile-url,location:(name,country:(code)),positions:(id,title,summary,start-date,end-date,is-current,id,name,universal-name,email-domains,company-type,ticker,website-url,industries,status,logo-url,square-logo-url,blog-rss-url,twitter-id,employee-count-range,specialties,description,stock-exchange,founded-year,end-year,num-followers,locations:(description,is-headquarters,is-active,address:(street1,street2,city,state,postal-code,country-code,region-code),contact-info:(phone1,phone2,fax))),api-standard-profile-request:(url,headers))))?oauth2_access_token=AQUJwEF40pJUbVxsW_mujQ3QCiXvlTnMFk55SlfVPYRcAPdsn1oE1Hm8Ldlc61o57k96i04ufG81KFdPJIOSJswXsGyZ0tk9IMZea8sfNXMGMnZgikQJUQPkmRVYVw9BP1qH9tp7hJF32DQtzkBB_NE8xPASPVgXVWbbntChGyYqqDvF1p8
|
208
|
+
body:
|
209
|
+
encoding: US-ASCII
|
210
|
+
string: ''
|
211
|
+
headers:
|
212
|
+
User-Agent:
|
213
|
+
- Faraday v0.9.0
|
214
|
+
X-Li-Format:
|
215
|
+
- json
|
216
|
+
Accept-Encoding:
|
217
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
218
|
+
Accept:
|
219
|
+
- "*/*"
|
220
|
+
response:
|
221
|
+
status:
|
222
|
+
code: 401
|
223
|
+
message: Unauthorized
|
224
|
+
headers:
|
225
|
+
Server:
|
226
|
+
- Apache-Coyote/1.1
|
227
|
+
X-Li-Request-Id:
|
228
|
+
- M8T4IX7YFG
|
229
|
+
X-Li-Uuid:
|
230
|
+
- oKVSiBVMjhOAOCrklysAAA==
|
231
|
+
Date:
|
232
|
+
- Wed, 27 Aug 2014 13:49:48 GMT
|
233
|
+
Vary:
|
234
|
+
- "*"
|
235
|
+
X-Li-Format:
|
236
|
+
- json
|
237
|
+
Content-Type:
|
238
|
+
- application/json;charset=UTF-8
|
239
|
+
X-Li-Fabric:
|
240
|
+
- PROD-ELA4
|
241
|
+
Transfer-Encoding:
|
242
|
+
- chunked
|
243
|
+
Connection:
|
244
|
+
- keep-alive
|
245
|
+
X-Li-Pop:
|
246
|
+
- PROD-ELA4
|
247
|
+
Set-Cookie:
|
248
|
+
- lidc="b=LB12:g=102:u=1:i=1409147199:t=1409233599:s=1902693391"; Expires=Thu,
|
249
|
+
28 Aug 2014 13:46:39 GMT; domain=.linkedin.com; Path=/
|
250
|
+
body:
|
251
|
+
encoding: UTF-8
|
252
|
+
string: |-
|
253
|
+
{
|
254
|
+
"errorCode": 0,
|
255
|
+
"message": "[unauthorized]. Expired access token.",
|
256
|
+
"requestId": "M8T4IX7YFG",
|
257
|
+
"status": 401,
|
258
|
+
"timestamp": 1409147388791
|
259
|
+
}
|
260
|
+
http_version:
|
261
|
+
recorded_at: Wed, 27 Aug 2014 13:49:48 GMT
|
262
|
+
- request:
|
263
|
+
method: get
|
264
|
+
uri: https://api.linkedin.com/v1/people/~/connections:(id,first-name,last-name,maiden-name,formatted-name,phonetic-first-name,phonetic-last-name,formatted-phonetic-name,headline,industry,distance,current-share,num-connections,num-connections-capped,summary,specialties,picture-url,site-standard-profile-request,public-profile-url,location:(name,country:(code)),positions:(id,title,summary,start-date,end-date,is-current,id,name,universal-name,email-domains,company-type,ticker,website-url,industries,status,logo-url,square-logo-url,blog-rss-url,twitter-id,employee-count-range,specialties,description,stock-exchange,founded-year,end-year,num-followers,locations:(description,is-headquarters,is-active,address:(street1,street2,city,state,postal-code,country-code,region-code),contact-info:(phone1,phone2,fax))),api-standard-profile-request:(url,headers),relation-to-viewer:(num-related-connections,related-connections:(id,first-name,last-name,maiden-name,formatted-name,phonetic-first-name,phonetic-last-name,formatted-phonetic-name,headline,industry,distance,current-share,num-connections,num-connections-capped,summary,specialties,picture-url,site-standard-profile-request,public-profile-url,location:(name,country:(code)),positions:(id,title,summary,start-date,end-date,is-current,id,name,universal-name,email-domains,company-type,ticker,website-url,industries,status,logo-url,square-logo-url,blog-rss-url,twitter-id,employee-count-range,specialties,description,stock-exchange,founded-year,end-year,num-followers,locations:(description,is-headquarters,is-active,address:(street1,street2,city,state,postal-code,country-code,region-code),contact-info:(phone1,phone2,fax))),api-standard-profile-request:(url,headers))))?oauth2_access_token=AQUJwEF40pJUbVxsW_mujQ3QCiXvlTnMFk55SlfVPYRcAPdsn1oE1Hm8Ldlc61o57k96i04ufG81KFdPJIOSJswXsGyZ0tk9IMZea8sfNXMGMnZgikQJUQPkmRVYVw9BP1qH9tp7hJF32DQtzkBB_NE8xPASPVgXVWbbntChGyYqqDvF1p8
|
265
|
+
body:
|
266
|
+
encoding: US-ASCII
|
267
|
+
string: ''
|
268
|
+
headers:
|
269
|
+
User-Agent:
|
270
|
+
- Faraday v0.9.0
|
271
|
+
X-Li-Format:
|
272
|
+
- json
|
273
|
+
Accept-Encoding:
|
274
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
275
|
+
Accept:
|
276
|
+
- "*/*"
|
277
|
+
response:
|
278
|
+
status:
|
279
|
+
code: 401
|
280
|
+
message: Unauthorized
|
281
|
+
headers:
|
282
|
+
Server:
|
283
|
+
- Apache-Coyote/1.1
|
284
|
+
X-Li-Request-Id:
|
285
|
+
- VLELPGEYIO
|
286
|
+
X-Li-Uuid:
|
287
|
+
- "+1FVqhVMjhOwMlWw+ioAAA=="
|
288
|
+
Date:
|
289
|
+
- Wed, 27 Aug 2014 13:49:48 GMT
|
290
|
+
Vary:
|
291
|
+
- "*"
|
292
|
+
X-Li-Format:
|
293
|
+
- json
|
294
|
+
Content-Type:
|
295
|
+
- application/json;charset=UTF-8
|
296
|
+
X-Li-Fabric:
|
297
|
+
- PROD-ELA4
|
298
|
+
Transfer-Encoding:
|
299
|
+
- chunked
|
300
|
+
Connection:
|
301
|
+
- keep-alive
|
302
|
+
X-Li-Pop:
|
303
|
+
- PROD-ELA4
|
304
|
+
Set-Cookie:
|
305
|
+
- lidc="b=LB12:g=102:u=1:i=1409147199:t=1409233599:s=1902693391"; Expires=Thu,
|
306
|
+
28 Aug 2014 13:46:39 GMT; domain=.linkedin.com; Path=/
|
307
|
+
body:
|
308
|
+
encoding: UTF-8
|
309
|
+
string: |-
|
310
|
+
{
|
311
|
+
"errorCode": 0,
|
312
|
+
"message": "[unauthorized]. Expired access token.",
|
313
|
+
"requestId": "VLELPGEYIO",
|
314
|
+
"status": 401,
|
315
|
+
"timestamp": 1409147389364
|
316
|
+
}
|
317
|
+
http_version:
|
318
|
+
recorded_at: Wed, 27 Aug 2014 13:49:48 GMT
|
319
|
+
- request:
|
320
|
+
method: post
|
321
|
+
uri: https://api.linkedin.com/v1/people/~/mailbox:(id,first-name,last-name,maiden-name,formatted-name,phonetic-first-name,phonetic-last-name,formatted-phonetic-name,headline,industry,distance,current-share,num-connections,num-connections-capped,summary,specialties,picture-url,site-standard-profile-request,public-profile-url,location:(name,country:(code)),positions:(id,title,summary,start-date,end-date,is-current,id,name,universal-name,email-domains,company-type,ticker,website-url,industries,status,logo-url,square-logo-url,blog-rss-url,twitter-id,employee-count-range,specialties,description,stock-exchange,founded-year,end-year,num-followers,locations:(description,is-headquarters,is-active,address:(street1,street2,city,state,postal-code,country-code,region-code),contact-info:(phone1,phone2,fax))),api-standard-profile-request:(url,headers),relation-to-viewer:(num-related-connections,related-connections:(id,first-name,last-name,maiden-name,formatted-name,phonetic-first-name,phonetic-last-name,formatted-phonetic-name,headline,industry,distance,current-share,num-connections,num-connections-capped,summary,specialties,picture-url,site-standard-profile-request,public-profile-url,location:(name,country:(code)),positions:(id,title,summary,start-date,end-date,is-current,id,name,universal-name,email-domains,company-type,ticker,website-url,industries,status,logo-url,square-logo-url,blog-rss-url,twitter-id,employee-count-range,specialties,description,stock-exchange,founded-year,end-year,num-followers,locations:(description,is-headquarters,is-active,address:(street1,street2,city,state,postal-code,country-code,region-code),contact-info:(phone1,phone2,fax))),api-standard-profile-request:(url,headers))))?oauth2_access_token=AQUJwEF40pJUbVxsW_mujQ3QCiXvlTnMFk55SlfVPYRcAPdsn1oE1Hm8Ldlc61o57k96i04ufG81KFdPJIOSJswXsGyZ0tk9IMZea8sfNXMGMnZgikQJUQPkmRVYVw9BP1qH9tp7hJF32DQtzkBB_NE8xPASPVgXVWbbntChGyYqqDvF1p8
|
322
|
+
body:
|
323
|
+
encoding: UTF-8
|
324
|
+
string: '{"recipients":{"values":[{"person":{"_path":"/people/recip1"}},{"person":{"_path":"/people/recip2"}}]},"subject":"subject","body":"body"}'
|
325
|
+
headers:
|
326
|
+
User-Agent:
|
327
|
+
- Faraday v0.9.0
|
328
|
+
Content-Type:
|
329
|
+
- application/json
|
330
|
+
X-Li-Format:
|
331
|
+
- json
|
332
|
+
Accept-Encoding:
|
333
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
334
|
+
Accept:
|
335
|
+
- "*/*"
|
336
|
+
response:
|
337
|
+
status:
|
338
|
+
code: 401
|
339
|
+
message: Unauthorized
|
340
|
+
headers:
|
341
|
+
Server:
|
342
|
+
- Apache-Coyote/1.1
|
343
|
+
X-Li-Request-Id:
|
344
|
+
- OSQF2HPVQQ
|
345
|
+
X-Li-Uuid:
|
346
|
+
- xNKmzRVMjhNAwZf1eysAAA==
|
347
|
+
Date:
|
348
|
+
- Wed, 27 Aug 2014 13:49:49 GMT
|
349
|
+
Vary:
|
350
|
+
- "*"
|
351
|
+
X-Li-Format:
|
352
|
+
- json
|
353
|
+
Content-Type:
|
354
|
+
- application/json;charset=UTF-8
|
355
|
+
X-Li-Fabric:
|
356
|
+
- PROD-ELA4
|
357
|
+
Set-Cookie:
|
358
|
+
- lidc="b=LB12:g=102:u=1:i=1409147199:t=1409233599:s=1902693391"; Expires=Thu,
|
359
|
+
28 Aug 2014 13:46:39 GMT; domain=.linkedin.com; Path=/
|
360
|
+
- lidc="b=LB12:g=102:u=1:i=1409147199:t=1409233599:s=1902693391"; Expires=Thu,
|
361
|
+
28 Aug 2014 13:46:39 GMT; domain=.linkedin.com; Path=/
|
362
|
+
Transfer-Encoding:
|
363
|
+
- chunked
|
364
|
+
Connection:
|
365
|
+
- keep-alive
|
366
|
+
X-Li-Pop:
|
367
|
+
- PROD-ELA4
|
368
|
+
body:
|
369
|
+
encoding: UTF-8
|
370
|
+
string: |-
|
371
|
+
{
|
372
|
+
"errorCode": 0,
|
373
|
+
"message": "[unauthorized]. Expired access token.",
|
374
|
+
"requestId": "OSQF2HPVQQ",
|
375
|
+
"status": 401,
|
376
|
+
"timestamp": 1409147389969
|
377
|
+
}
|
378
|
+
http_version:
|
379
|
+
recorded_at: Wed, 27 Aug 2014 13:49:49 GMT
|
380
|
+
recorded_with: VCR 2.9.2
|