linkedin-v2 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +10 -0
  3. data/CONTRIBUTING.md +1 -0
  4. data/Gemfile +8 -0
  5. data/LICENSE +22 -0
  6. data/README.md +224 -0
  7. data/Rakefile +19 -0
  8. data/lib/linked_in/access_token.rb +24 -0
  9. data/lib/linked_in/api.rb +108 -0
  10. data/lib/linked_in/api_resource.rb +180 -0
  11. data/lib/linked_in/communications.rb +40 -0
  12. data/lib/linked_in/configuration.rb +41 -0
  13. data/lib/linked_in/connection.rb +35 -0
  14. data/lib/linked_in/errors.rb +73 -0
  15. data/lib/linked_in/jobs.rb +11 -0
  16. data/lib/linked_in/mash.rb +68 -0
  17. data/lib/linked_in/media.rb +13 -0
  18. data/lib/linked_in/oauth2.rb +223 -0
  19. data/lib/linked_in/organizations.rb +217 -0
  20. data/lib/linked_in/people.rb +151 -0
  21. data/lib/linked_in/raise_error.rb +28 -0
  22. data/lib/linked_in/search.rb +70 -0
  23. data/lib/linked_in/share_and_social_stream.rb +143 -0
  24. data/lib/linked_in/version.rb +3 -0
  25. data/lib/linkedin-v2.rb +52 -0
  26. data/linkedin-v2.gemspec +39 -0
  27. data/pkg/linkedin-oauth2-2.0.0.gem +0 -0
  28. data/spec/linked_in/api/api_spec.rb +41 -0
  29. data/spec/linked_in/api/communications_spec.rb +13 -0
  30. data/spec/linked_in/api/jobs_spec.rb +33 -0
  31. data/spec/linked_in/api/organizations_spec.rb +54 -0
  32. data/spec/linked_in/api/people_spec.rb +191 -0
  33. data/spec/linked_in/api/search_spec.rb +71 -0
  34. data/spec/linked_in/api/share_and_social_stream_spec.rb +87 -0
  35. data/spec/linked_in/configuration_spec.rb +46 -0
  36. data/spec/linked_in/connection_spec.rb +10 -0
  37. data/spec/linked_in/module_loading_spec.rb +23 -0
  38. data/spec/linked_in/oauth/access_token_spec.rb +27 -0
  39. data/spec/linked_in/oauth/auth_code_spec.rb +86 -0
  40. data/spec/linked_in/oauth/credentials_spec.rb +96 -0
  41. data/spec/linked_in/oauth/get_access_token_spec.rb +108 -0
  42. data/spec/spec_helper.rb +16 -0
  43. data/spec/vcr_cassettes/access_token_success.yml +99 -0
  44. data/spec/vcr_cassettes/bad_code.yml +99 -0
  45. data/spec/vcr_cassettes/organization_data.yml +51 -0
  46. data/spec/vcr_cassettes/people_picture_urls.yml +52 -0
  47. data/spec/vcr_cassettes/people_profile_connections_fields.yml +52 -0
  48. data/spec/vcr_cassettes/people_profile_connections_other.yml +52 -0
  49. data/spec/vcr_cassettes/people_profile_connections_self.yml +52 -0
  50. data/spec/vcr_cassettes/people_profile_fields_complex.yml +52 -0
  51. data/spec/vcr_cassettes/people_profile_fields_simple.yml +52 -0
  52. data/spec/vcr_cassettes/people_profile_lang_spanish.yml +53 -0
  53. data/spec/vcr_cassettes/people_profile_multiple_fields.yml +52 -0
  54. data/spec/vcr_cassettes/people_profile_multiple_uids.yml +52 -0
  55. data/spec/vcr_cassettes/people_profile_multiple_uids_and_urls.yml +52 -0
  56. data/spec/vcr_cassettes/people_profile_multiple_urls.yml +52 -0
  57. data/spec/vcr_cassettes/people_profile_new_connections_fields.yml +52 -0
  58. data/spec/vcr_cassettes/people_profile_new_connections_other.yml +52 -0
  59. data/spec/vcr_cassettes/people_profile_new_connections_self.yml +52 -0
  60. data/spec/vcr_cassettes/people_profile_other_uid.yml +57 -0
  61. data/spec/vcr_cassettes/people_profile_other_url.yml +54 -0
  62. data/spec/vcr_cassettes/people_profile_own.yml +57 -0
  63. data/spec/vcr_cassettes/people_profile_own_secure.yml +53 -0
  64. data/spec/vcr_cassettes/people_profile_skills.yml +52 -0
  65. data/spec/vcr_cassettes/unavailable.yml +99 -0
  66. metadata +285 -0
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v2/me/connections?modified=new&modified-since=1388534400000&projection=(%5B%22id%22,%20%22industry%22%5D)
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Li-Format:
11
+ - json
12
+ Authorization:
13
+ - Bearer AQVM91zzF-bLiOfCsTi8ktxnq99l-tW9meri8F9ZEWAuHf5g1bO_Pa4p0nFwKvZ7VFdSERAnJZq3eNOq6BzDPFNIyGIy50s-7HkLq2hE5uy6HrAQrsMAQR_qZxnBrSD11g_M2sF5XB5fUHZOXEQFgFaXB0M19VUAsvsz3yg-7zMI7w9Zn_DYTLO1e2W9VEZrOgVmRNt1XBIT_pdQO7pQkKv4702yJTrIBOuhZWNLZRClPHd2RRhPf2SJeTkodbnL4xSvzcyEPpLaTPyZIVJnBcsAzYFiG_pJtyGs7x-iWbUZsYgnUVSy8Wg-5eqmvze5tuZdICIP0PJ0AVMNGOxRRiLOEh8MSg
14
+ User-Agent:
15
+ - Faraday v0.10.1
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 404
23
+ message: Not Found
24
+ headers:
25
+ X-Restli-Gateway-Error:
26
+ - 'true'
27
+ Content-Type:
28
+ - application/json
29
+ Date:
30
+ - Tue, 01 May 2018 14:17:38 GMT
31
+ X-Li-Fabric:
32
+ - prod-lva1
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ X-Li-Pop:
38
+ - prod-edc2
39
+ X-Li-Proto:
40
+ - http/1.1
41
+ Set-Cookie:
42
+ - lidc="b=VB96:g=1148:u=15:i=1525184258:t=1525268970:s=AQEbKiX38Wd1TL5kfyYniOxQdy73nOc8"
43
+ X-Li-Route-Key:
44
+ - '"b=VB96:g=1148:u=15:i=1525184258:t=1525268970:s=AQEbKiX38Wd1TL5kfyYniOxQdy73nOc8"'
45
+ X-Li-Uuid:
46
+ - JP8ZkQCLKhUwrcr6iCsAAA==
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"serviceErrorCode":0,"message":"Resource me does not exist","status":404}'
50
+ http_version:
51
+ recorded_at: Tue, 01 May 2018 14:17:38 GMT
52
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v2/people/id=MpkAFJTlPY/connections?modified=new&modified-since=1388534400000
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Li-Format:
11
+ - json
12
+ Authorization:
13
+ - Bearer AQVM91zzF-bLiOfCsTi8ktxnq99l-tW9meri8F9ZEWAuHf5g1bO_Pa4p0nFwKvZ7VFdSERAnJZq3eNOq6BzDPFNIyGIy50s-7HkLq2hE5uy6HrAQrsMAQR_qZxnBrSD11g_M2sF5XB5fUHZOXEQFgFaXB0M19VUAsvsz3yg-7zMI7w9Zn_DYTLO1e2W9VEZrOgVmRNt1XBIT_pdQO7pQkKv4702yJTrIBOuhZWNLZRClPHd2RRhPf2SJeTkodbnL4xSvzcyEPpLaTPyZIVJnBcsAzYFiG_pJtyGs7x-iWbUZsYgnUVSy8Wg-5eqmvze5tuZdICIP0PJ0AVMNGOxRRiLOEh8MSg
14
+ User-Agent:
15
+ - Faraday v0.10.1
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 404
23
+ message: Not Found
24
+ headers:
25
+ X-Restli-Gateway-Error:
26
+ - 'true'
27
+ Content-Type:
28
+ - application/json
29
+ Date:
30
+ - Tue, 01 May 2018 14:17:38 GMT
31
+ X-Li-Fabric:
32
+ - prod-lva1
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ X-Li-Pop:
38
+ - prod-ech2
39
+ X-Li-Proto:
40
+ - http/1.1
41
+ Set-Cookie:
42
+ - lidc="b=VB96:g=1148:u=15:i=1525184258:t=1525268970:s=AQEbKiX38Wd1TL5kfyYniOxQdy73nOc8"
43
+ X-Li-Route-Key:
44
+ - '"b=VB96:g=1148:u=15:i=1525184258:t=1525268970:s=AQEbKiX38Wd1TL5kfyYniOxQdy73nOc8"'
45
+ X-Li-Uuid:
46
+ - xlC9egCLKhVAHA4w2SoAAA==
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"serviceErrorCode":0,"message":"Resource people does not exist","status":404}'
50
+ http_version:
51
+ recorded_at: Tue, 01 May 2018 14:17:38 GMT
52
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v2/me/connections?modified=new&modified-since=1388534400000
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Li-Format:
11
+ - json
12
+ Authorization:
13
+ - Bearer AQVM91zzF-bLiOfCsTi8ktxnq99l-tW9meri8F9ZEWAuHf5g1bO_Pa4p0nFwKvZ7VFdSERAnJZq3eNOq6BzDPFNIyGIy50s-7HkLq2hE5uy6HrAQrsMAQR_qZxnBrSD11g_M2sF5XB5fUHZOXEQFgFaXB0M19VUAsvsz3yg-7zMI7w9Zn_DYTLO1e2W9VEZrOgVmRNt1XBIT_pdQO7pQkKv4702yJTrIBOuhZWNLZRClPHd2RRhPf2SJeTkodbnL4xSvzcyEPpLaTPyZIVJnBcsAzYFiG_pJtyGs7x-iWbUZsYgnUVSy8Wg-5eqmvze5tuZdICIP0PJ0AVMNGOxRRiLOEh8MSg
14
+ User-Agent:
15
+ - Faraday v0.10.1
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 404
23
+ message: Not Found
24
+ headers:
25
+ X-Restli-Gateway-Error:
26
+ - 'true'
27
+ Content-Type:
28
+ - application/json
29
+ Date:
30
+ - Tue, 01 May 2018 14:17:37 GMT
31
+ X-Li-Fabric:
32
+ - prod-lva1
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ X-Li-Pop:
38
+ - prod-ech2
39
+ X-Li-Proto:
40
+ - http/1.1
41
+ Set-Cookie:
42
+ - lidc="b=VB96:g=1148:u=15:i=1525184257:t=1525268970:s=AQF2lD6fKpyz8FQtLsc_SOX3nnWs8FVQ"
43
+ X-Li-Route-Key:
44
+ - '"b=VB96:g=1148:u=15:i=1525184257:t=1525268970:s=AQF2lD6fKpyz8FQtLsc_SOX3nnWs8FVQ"'
45
+ X-Li-Uuid:
46
+ - UTyeZQCLKhXQEO+C2CoAAA==
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"serviceErrorCode":0,"message":"Resource me does not exist","status":404}'
50
+ http_version:
51
+ recorded_at: Tue, 01 May 2018 14:17:37 GMT
52
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v2/people/id=MpkAFJTlPY
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Li-Format:
11
+ - json
12
+ Authorization:
13
+ - Bearer AQVM91zzF-bLiOfCsTi8ktxnq99l-tW9meri8F9ZEWAuHf5g1bO_Pa4p0nFwKvZ7VFdSERAnJZq3eNOq6BzDPFNIyGIy50s-7HkLq2hE5uy6HrAQrsMAQR_qZxnBrSD11g_M2sF5XB5fUHZOXEQFgFaXB0M19VUAsvsz3yg-7zMI7w9Zn_DYTLO1e2W9VEZrOgVmRNt1XBIT_pdQO7pQkKv4702yJTrIBOuhZWNLZRClPHd2RRhPf2SJeTkodbnL4xSvzcyEPpLaTPyZIVJnBcsAzYFiG_pJtyGs7x-iWbUZsYgnUVSy8Wg-5eqmvze5tuZdICIP0PJ0AVMNGOxRRiLOEh8MSg
14
+ User-Agent:
15
+ - Faraday v0.10.1
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Content-Type:
26
+ - application/json
27
+ X-Restli-Protocol-Version:
28
+ - 1.0.0
29
+ Date:
30
+ - Tue, 01 May 2018 14:17:32 GMT
31
+ X-Li-Fabric:
32
+ - prod-lva1
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ X-Li-Pop:
38
+ - prod-edc2
39
+ X-Li-Proto:
40
+ - http/1.1
41
+ Set-Cookie:
42
+ - lidc="b=VB96:g=1148:u=15:i=1525184252:t=1525268970:s=AQGZJyzXGzBLW__bJlkB3Y6bgsVA2ePG"
43
+ X-Li-Route-Key:
44
+ - '"b=VB96:g=1148:u=15:i=1525184252:t=1525268970:s=AQGZJyzXGzBLW__bJlkB3Y6bgsVA2ePG"'
45
+ X-Li-Uuid:
46
+ - KZBzN/+KKhUg84mFiCsAAA==
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"industryName":{"localized":{"en_US":"Public Relations"},"preferredLocale":{"country":"US","language":"en"}},"localizedLastName":"Santos
50
+ del Nariz","lastName":{"localized":{"en_US":"Santos del Nariz"},"preferredLocale":{"country":"US","language":"en"}},"vanityName":"miguel-santos-del-nariz","positions":{"1231524997":{"startMonthYear":{"year":2014},"companyName":{"localized":{"en_US":"Ceres
51
+ Logic"},"preferredLocale":{"country":"US","language":"en"}},"title":{"localized":{"en_US":"Social
52
+ Media Specialist"},"preferredLocale":{"country":"US","language":"en"}}},"1069560016":{"startMonthYear":{"year":2009},"endMonthYear":{"year":2014},"companyName":{"localized":{"en_US":"Winletric"},"preferredLocale":{"country":"US","language":"en"}},"title":{"localized":{"en_US":"Warehouse
53
+ Manager"},"preferredLocale":{"country":"US","language":"en"}}}},"pictureInfo":{"croppedImage":"urn:li:media:/gcrc/dms/image/C4E03AQEmhyl0HXzfGQ/profile-displayphoto-shrink_800_800/0?e=1530370800&v=beta&t=zMfwglNKbkAmht-GBlpjIRxeAY6dJpt1qGKybfAS08k","masterImage":"urn:li:media:/gcrc/dms/image/C4E00AQFBxXq_zXDwiw/profile-originalphoto-shrink_900_1200/0?e=1530370800&v=beta&t=UakxZUCdo7oT2_UzgpAxJmmyOgm6dQ3xnHlOGImCV8o","photoFilterEditInfo":{"bottomLeft":{"x":-6.178632484870436E-17,"y":1.0},"saturation":0.0,"brightness":0.0,"vignette":0.0,"photoFilterType":"ORIGINAL","bottomRight":{"x":1.0,"y":1.0},"topLeft":{"x":-6.178632484870436E-17,"y":0.0},"contrast":0.0,"topRight":{"x":1.0,"y":0.0}}},"firstName":{"localized":{"en_US":"Miguel"},"preferredLocale":{"country":"US","language":"en"}},"profilePicture":{"displayImage":"urn:li:digitalmediaAsset:C4E03AQEmhyl0HXzfGQ","created":1505332528742,"lastModified":1505332528742,"photoFilterEditInfo":{"bottomLeft":{"x":-6.178632484870436E-17,"y":1.0},"saturation":0.0,"brightness":0.0,"vignette":0.0,"photoFilterType":"ORIGINAL","bottomRight":{"x":1.0,"y":1.0},"topLeft":{"x":-6.178632484870436E-17,"y":0.0},"contrast":0.0,"topRight":{"x":1.0,"y":0.0}}},"industryId":"urn:li:industry:4","location":{"countryCode":"us","postalCode":"04768","userSelectedGeoPlaceCode":"5-2-0-2-29","standardizedLocationUrn":"urn:li:standardizedLocationKey:(us,04768)"},"id":"MpkAFJTlPY","lastModified":1524678302559,"headline":{"localized":{"en_US":"Social
54
+ Media Specialist at Ceres Logic"},"preferredLocale":{"country":"US","language":"en"}},"localizedFirstName":"Miguel"}'
55
+ http_version:
56
+ recorded_at: Tue, 01 May 2018 14:17:32 GMT
57
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v2/people/url=www.linkedin.com%2Fin%2Fmiguel-santos-del-nariz
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Li-Format:
11
+ - json
12
+ Authorization:
13
+ - Bearer AQVM91zzF-bLiOfCsTi8ktxnq99l-tW9meri8F9ZEWAuHf5g1bO_Pa4p0nFwKvZ7VFdSERAnJZq3eNOq6BzDPFNIyGIy50s-7HkLq2hE5uy6HrAQrsMAQR_qZxnBrSD11g_M2sF5XB5fUHZOXEQFgFaXB0M19VUAsvsz3yg-7zMI7w9Zn_DYTLO1e2W9VEZrOgVmRNt1XBIT_pdQO7pQkKv4702yJTrIBOuhZWNLZRClPHd2RRhPf2SJeTkodbnL4xSvzcyEPpLaTPyZIVJnBcsAzYFiG_pJtyGs7x-iWbUZsYgnUVSy8Wg-5eqmvze5tuZdICIP0PJ0AVMNGOxRRiLOEh8MSg
14
+ User-Agent:
15
+ - Faraday v0.10.1
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 500
23
+ message: Server Error
24
+ headers:
25
+ Content-Type:
26
+ - application/json
27
+ X-Linkedin-Error-Response:
28
+ - 'true'
29
+ X-Restli-Gateway-Error:
30
+ - 'false'
31
+ X-Restli-Protocol-Version:
32
+ - 1.0.0
33
+ X-Li-Fabric:
34
+ - prod-lva1
35
+ Transfer-Encoding:
36
+ - chunked
37
+ Connection:
38
+ - keep-alive
39
+ X-Li-Pop:
40
+ - prod-ech2
41
+ X-Li-Proto:
42
+ - http/1.1
43
+ Set-Cookie:
44
+ - lidc="b=VB96:g=1148:u=15:i=1525184253:t=1525268970:s=AQHWrEq2JHwj3dd7UAHa4EhM8uQgM9bq"
45
+ X-Li-Route-Key:
46
+ - '"b=VB96:g=1148:u=15:i=1525184253:t=1525268970:s=AQHWrEq2JHwj3dd7UAHa4EhM8uQgM9bq"'
47
+ X-Li-Uuid:
48
+ - wYoWUv+KKhXwusxg2CoAAA==
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"message":"INTERNAL SERVER ERROR","status":500}'
52
+ http_version:
53
+ recorded_at: Tue, 01 May 2018 14:17:33 GMT
54
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v2/me
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Li-Format:
11
+ - json
12
+ Authorization:
13
+ - Bearer AQVM91zzF-bLiOfCsTi8ktxnq99l-tW9meri8F9ZEWAuHf5g1bO_Pa4p0nFwKvZ7VFdSERAnJZq3eNOq6BzDPFNIyGIy50s-7HkLq2hE5uy6HrAQrsMAQR_qZxnBrSD11g_M2sF5XB5fUHZOXEQFgFaXB0M19VUAsvsz3yg-7zMI7w9Zn_DYTLO1e2W9VEZrOgVmRNt1XBIT_pdQO7pQkKv4702yJTrIBOuhZWNLZRClPHd2RRhPf2SJeTkodbnL4xSvzcyEPpLaTPyZIVJnBcsAzYFiG_pJtyGs7x-iWbUZsYgnUVSy8Wg-5eqmvze5tuZdICIP0PJ0AVMNGOxRRiLOEh8MSg
14
+ User-Agent:
15
+ - Faraday v0.10.1
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Content-Type:
26
+ - application/json
27
+ X-Restli-Protocol-Version:
28
+ - 1.0.0
29
+ Date:
30
+ - Tue, 01 May 2018 14:17:30 GMT
31
+ X-Li-Fabric:
32
+ - prod-lva1
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ X-Li-Pop:
38
+ - prod-edc2
39
+ X-Li-Proto:
40
+ - http/1.1
41
+ Set-Cookie:
42
+ - lidc="b=VB96:g=1148:u=15:i=1525184250:t=1525268970:s=AQFUIAjH0CTuwIxnukDiLgSr9dRNaWYn"
43
+ X-Li-Route-Key:
44
+ - '"b=VB96:g=1148:u=15:i=1525184250:t=1525268970:s=AQFUIAjH0CTuwIxnukDiLgSr9dRNaWYn"'
45
+ X-Li-Uuid:
46
+ - L3hNt/6KKhUg5NVqiSsAAA==
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"industryName":{"localized":{"en_US":"Public Relations"},"preferredLocale":{"country":"US","language":"en"}},"localizedLastName":"Santos
50
+ del Nariz","lastName":{"localized":{"en_US":"Santos del Nariz"},"preferredLocale":{"country":"US","language":"en"}},"vanityName":"miguel-santos-del-nariz","positions":{"1231524997":{"startMonthYear":{"year":2014},"companyName":{"localized":{"en_US":"Ceres
51
+ Logic"},"preferredLocale":{"country":"US","language":"en"}},"title":{"localized":{"en_US":"Social
52
+ Media Specialist"},"preferredLocale":{"country":"US","language":"en"}}},"1069560016":{"startMonthYear":{"year":2009},"endMonthYear":{"year":2014},"companyName":{"localized":{"en_US":"Winletric"},"preferredLocale":{"country":"US","language":"en"}},"title":{"localized":{"en_US":"Warehouse
53
+ Manager"},"preferredLocale":{"country":"US","language":"en"}}}},"pictureInfo":{"croppedImage":"urn:li:media:/gcrc/dms/image/C4E03AQEmhyl0HXzfGQ/profile-displayphoto-shrink_800_800/0?e=1530370800&v=beta&t=zMfwglNKbkAmht-GBlpjIRxeAY6dJpt1qGKybfAS08k","masterImage":"urn:li:media:/gcrc/dms/image/C4E00AQFBxXq_zXDwiw/profile-originalphoto-shrink_900_1200/0?e=1530370800&v=beta&t=UakxZUCdo7oT2_UzgpAxJmmyOgm6dQ3xnHlOGImCV8o","created":1505332528742,"lastModified":1505332528742},"firstName":{"localized":{"en_US":"Miguel"},"preferredLocale":{"country":"US","language":"en"}},"profilePicture":{"displayImage":"urn:li:digitalmediaAsset:C4E03AQEmhyl0HXzfGQ","created":1505332528742,"lastModified":1505332528742,"originalImage":"urn:li:digitalmediaAsset:C4E04AQFBxXq_zXDwiw","photoFilterEditInfo":{"bottomLeft":{"x":-6.178632484870436E-17,"y":1.0},"saturation":0.0,"brightness":0.0,"vignette":0.0,"photoFilterType":"ORIGINAL","bottomRight":{"x":1.0,"y":1.0},"topLeft":{"x":-6.178632484870436E-17,"y":0.0},"contrast":0.0,"topRight":{"x":1.0,"y":0.0}}},"industryId":"urn:li:industry:4","location":{"countryCode":"us","postalCode":"04768","userSelectedGeoPlaceCode":"5-2-0-2-29","standardizedLocationUrn":"urn:li:standardizedLocationKey:(us,04768)"},"id":"MpkAFJTlPY","lastModified":1524678302559,"headline":{"localized":{"en_US":"Social
54
+ Media Specialist at Ceres Logic"},"preferredLocale":{"country":"US","language":"en"}},"localizedFirstName":"Miguel"}'
55
+ http_version:
56
+ recorded_at: Tue, 01 May 2018 14:17:30 GMT
57
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,53 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v2/me?secure=true
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Li-Format:
11
+ - json
12
+ Authorization:
13
+ - Bearer AQVM91zzF-bLiOfCsTi8ktxnq99l-tW9meri8F9ZEWAuHf5g1bO_Pa4p0nFwKvZ7VFdSERAnJZq3eNOq6BzDPFNIyGIy50s-7HkLq2hE5uy6HrAQrsMAQR_qZxnBrSD11g_M2sF5XB5fUHZOXEQFgFaXB0M19VUAsvsz3yg-7zMI7w9Zn_DYTLO1e2W9VEZrOgVmRNt1XBIT_pdQO7pQkKv4702yJTrIBOuhZWNLZRClPHd2RRhPf2SJeTkodbnL4xSvzcyEPpLaTPyZIVJnBcsAzYFiG_pJtyGs7x-iWbUZsYgnUVSy8Wg-5eqmvze5tuZdICIP0PJ0AVMNGOxRRiLOEh8MSg
14
+ User-Agent:
15
+ - Faraday v0.10.1
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 403
23
+ message: Forbidden
24
+ headers:
25
+ X-Restli-Gateway-Error:
26
+ - 'true'
27
+ Content-Type:
28
+ - application/json
29
+ Date:
30
+ - Tue, 01 May 2018 14:17:31 GMT
31
+ X-Li-Fabric:
32
+ - prod-lva1
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ X-Li-Pop:
38
+ - prod-edc2
39
+ X-Li-Proto:
40
+ - http/1.1
41
+ Set-Cookie:
42
+ - lidc="b=VB96:g=1148:u=15:i=1525184251:t=1525268970:s=AQEoE7zF-KSVxUk_E2-53By07dmMVN5i"
43
+ X-Li-Route-Key:
44
+ - '"b=VB96:g=1148:u=15:i=1525184251:t=1525268970:s=AQEoE7zF-KSVxUk_E2-53By07dmMVN5i"'
45
+ X-Li-Uuid:
46
+ - 7gc+2P6KKhWA5gqpiisAAA==
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"serviceErrorCode":100,"message":"Unpermitted fields present in PARAMETER:
50
+ Data Processing Exception while processing fields [/secure]","status":403}'
51
+ http_version:
52
+ recorded_at: Tue, 01 May 2018 14:17:31 GMT
53
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v2/me/skills
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Li-Format:
11
+ - json
12
+ Authorization:
13
+ - Bearer AQVM91zzF-bLiOfCsTi8ktxnq99l-tW9meri8F9ZEWAuHf5g1bO_Pa4p0nFwKvZ7VFdSERAnJZq3eNOq6BzDPFNIyGIy50s-7HkLq2hE5uy6HrAQrsMAQR_qZxnBrSD11g_M2sF5XB5fUHZOXEQFgFaXB0M19VUAsvsz3yg-7zMI7w9Zn_DYTLO1e2W9VEZrOgVmRNt1XBIT_pdQO7pQkKv4702yJTrIBOuhZWNLZRClPHd2RRhPf2SJeTkodbnL4xSvzcyEPpLaTPyZIVJnBcsAzYFiG_pJtyGs7x-iWbUZsYgnUVSy8Wg-5eqmvze5tuZdICIP0PJ0AVMNGOxRRiLOEh8MSg
14
+ User-Agent:
15
+ - Faraday v0.10.1
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 404
23
+ message: Not Found
24
+ headers:
25
+ X-Restli-Gateway-Error:
26
+ - 'true'
27
+ Content-Type:
28
+ - application/json
29
+ Date:
30
+ - Tue, 01 May 2018 14:17:39 GMT
31
+ X-Li-Fabric:
32
+ - prod-lva1
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ X-Li-Pop:
38
+ - prod-edc2
39
+ X-Li-Proto:
40
+ - http/1.1
41
+ Set-Cookie:
42
+ - lidc="b=VB96:g=1148:u=15:i=1525184259:t=1525268970:s=AQFOr3awBhcmG6xWgA8mYBk-4nYB3avb"
43
+ X-Li-Route-Key:
44
+ - '"b=VB96:g=1148:u=15:i=1525184259:t=1525268970:s=AQFOr3awBhcmG6xWgA8mYBk-4nYB3avb"'
45
+ X-Li-Uuid:
46
+ - hO4tuwCLKhXgGHumiisAAA==
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"serviceErrorCode":0,"message":"Resource me does not exist","status":404}'
50
+ http_version:
51
+ recorded_at: Tue, 01 May 2018 14:17:39 GMT
52
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,99 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.linkedin.com/uas/oauth2/accessToken
6
+ body:
7
+ encoding: UTF-8
8
+ string: client_id=dummy_client_id&client_secret=dummy_client_secret&code=dummy_code&grant_type=authorization_code&raise_errors=true&redirect_uri=http%3A%2F%2Flvh.me%3A5000
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.10.1
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 503
21
+ message: Service Unavailable
22
+ headers:
23
+ Server:
24
+ - Apache-Coyote/1.1
25
+ P3p:
26
+ - CP="CAO CUR ADM DEV PSA PSD OUR"
27
+ Vary:
28
+ - Accept-Encoding
29
+ Content-Type:
30
+ - application/json;charset=UTF-8
31
+ Content-Language:
32
+ - en-US
33
+ Content-Length:
34
+ - '249'
35
+ Date:
36
+ - Tue, 01 May 2018 14:17:44 GMT
37
+ X-Fs-Uuid:
38
+ - 88cc2025028b2a1580055102952b0000
39
+ Strict-Transport-Security:
40
+ - max-age=2592000
41
+ X-Content-Type-Options:
42
+ - nosniff
43
+ X-Xss-Protection:
44
+ - 1; mode=block
45
+ Content-Security-Policy:
46
+ - 'default-src *; connect-src ''self'' static.licdn.com media.licdn.com static-exp1.licdn.com
47
+ static-exp2.licdn.com media-exp1.licdn.com media-exp2.licdn.com https://media-src.linkedin.com/media/
48
+ wss://www.linkedin.com s.c.lnkd.licdn.com m.c.lnkd.licdn.com; img-src data:
49
+ blob: *; font-src data: *; style-src ''unsafe-inline'' ''self'' static-src.linkedin.com
50
+ *.licdn.com; script-src ''report-sample'' ''unsafe-inline'' ''unsafe-eval''
51
+ ''self'' platform.linkedin.com spdy.linkedin.com static-src.linkedin.com *.ads.linkedin.com
52
+ *.licdn.com; object-src ''none''; media-src blob: *; frame-ancestors ''self'';
53
+ report-uri https://www.linkedin.com/lite/contentsecurity?f=lg'
54
+ X-Li-Fabric:
55
+ - prod-lva1
56
+ Set-Cookie:
57
+ - _lipt=deleteMe; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
58
+ - bcookie="v=2&5eca1067-c9fc-4253-8d4f-abbe4451dac5"; domain=.linkedin.com;
59
+ Path=/; Expires=Fri, 01-May-2020 01:55:17 GMT
60
+ - bscookie="v=1&20180501141745e57780ac-449e-466a-8bcb-e5ea469fb1c3AQGX-05lzF_l_d-0ceYHTr37MavN83VR";
61
+ domain=.www.linkedin.com; Path=/; Secure; Expires=Fri, 01-May-2020 01:55:17
62
+ GMT; HttpOnly
63
+ - lang="v=2&lang=en-us"; Version=1; Domain=linkedin.com; Path=/
64
+ - leo_auth_token="GST:8GtYWBFOqlyItGxn4jtMtDiuSmP2qpcnxPpypIFWWFDf2HI1Ddok45:1525184265:3ac0521bc247a538a4f7e4511df26dea1905c307";
65
+ Version=1; Max-Age=1799; Expires=Tue, 01-May-2018 14:47:44 GMT; Path=/
66
+ - lidc="b=VB45:g=1405:u=1:i=1525184265:t=1525270665:s=AQG1O3Vt-0sVbfCquDXQL5c1R8vBSGRj";
67
+ Expires=Wed, 02 May 2018 14:17:45 GMT; domain=.linkedin.com; Path=/
68
+ - s_leo_auth_token="delete me"; Version=1; Max-Age=0; Expires=Thu, 01-Jan-1970
69
+ 00:00:10 GMT; Path=/
70
+ - sl="delete me"; Version=1; Domain=.www.linkedin.com; Max-Age=0; Expires=Thu,
71
+ 01-Jan-1970 00:00:10 GMT; Path=/
72
+ - sl="delete me"; Version=1; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:10 GMT;
73
+ Path=/
74
+ - visit="v=1&G"; Version=1; Max-Age=63072000; Expires=Thu, 30-Apr-2020 14:17:45
75
+ GMT; Path=/
76
+ X-Li-Proto:
77
+ - http/1.1
78
+ - http/1.1
79
+ Pragma:
80
+ - no-cache
81
+ Expires:
82
+ - Thu, 01 Jan 1970 00:00:00 GMT
83
+ Cache-Control:
84
+ - no-cache, no-store
85
+ Connection:
86
+ - keep-alive
87
+ X-Li-Pop:
88
+ - prod-ech2
89
+ X-Li-Uuid:
90
+ - j4R5JAKLKhUQs5wqlisAAA==
91
+ body:
92
+ encoding: ASCII-8BIT
93
+ string: '{"error_description":"the authorization server is currently unable
94
+ to handle the request : RestException{_response=RestResponse[headers={Content-Length=9511,
95
+ Content-Type=application/json, X-RestLi-Error-Response=true, X-RestLi-Protocol-Version=2.0.0}cookies=[],status=404,entityLength=9511]}
96
+ ","error":"temporarily_unavailable"}'
97
+ http_version:
98
+ recorded_at: Tue, 01 May 2018 14:17:45 GMT
99
+ recorded_with: VCR 3.0.3