linkedin-v2 0.1.3 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +4 -4
  3. data/lib/linked_in/api.rb +14 -8
  4. data/lib/linked_in/api_resource.rb +1 -1
  5. data/lib/linked_in/media.rb +47 -0
  6. data/lib/linked_in/organizations.rb +9 -0
  7. data/lib/linked_in/raise_error.rb +1 -2
  8. data/lib/linked_in/share_and_social_stream.rb +34 -4
  9. data/lib/linked_in/version.rb +1 -1
  10. data/linkedin-v2.gemspec +2 -1
  11. data/spec/linked_in/api/media_spec.rb +19 -0
  12. data/spec/vcr_cassettes/access_token_success.yml +19 -19
  13. data/spec/vcr_cassettes/bad_code.yml +18 -18
  14. data/spec/vcr_cassettes/organization_data.yml +7 -7
  15. data/spec/vcr_cassettes/people_picture_urls.yml +8 -8
  16. data/spec/vcr_cassettes/people_profile_connections_fields.yml +7 -7
  17. data/spec/vcr_cassettes/people_profile_connections_other.yml +8 -8
  18. data/spec/vcr_cassettes/people_profile_connections_self.yml +7 -7
  19. data/spec/vcr_cassettes/people_profile_fields_complex.yml +7 -7
  20. data/spec/vcr_cassettes/people_profile_fields_simple.yml +8 -8
  21. data/spec/vcr_cassettes/people_profile_lang_spanish.yml +7 -7
  22. data/spec/vcr_cassettes/people_profile_multiple_fields.yml +7 -7
  23. data/spec/vcr_cassettes/people_profile_multiple_uids.yml +8 -8
  24. data/spec/vcr_cassettes/people_profile_multiple_uids_and_urls.yml +7 -7
  25. data/spec/vcr_cassettes/people_profile_multiple_urls.yml +7 -7
  26. data/spec/vcr_cassettes/people_profile_new_connections_fields.yml +7 -7
  27. data/spec/vcr_cassettes/people_profile_new_connections_other.yml +8 -8
  28. data/spec/vcr_cassettes/people_profile_new_connections_self.yml +8 -8
  29. data/spec/vcr_cassettes/people_profile_other_uid.yml +8 -8
  30. data/spec/vcr_cassettes/people_profile_other_url.yml +7 -7
  31. data/spec/vcr_cassettes/people_profile_own.yml +8 -8
  32. data/spec/vcr_cassettes/people_profile_own_secure.yml +7 -7
  33. data/spec/vcr_cassettes/people_profile_skills.yml +7 -7
  34. data/spec/vcr_cassettes/unavailable.yml +19 -19
  35. metadata +24 -10
  36. data/pkg/linkedin-oauth2-2.0.0.gem +0 -0
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Authorization:
13
13
  - Bearer AQVM91zzF-bLiOfCsTi8ktxnq99l-tW9meri8F9ZEWAuHf5g1bO_Pa4p0nFwKvZ7VFdSERAnJZq3eNOq6BzDPFNIyGIy50s-7HkLq2hE5uy6HrAQrsMAQR_qZxnBrSD11g_M2sF5XB5fUHZOXEQFgFaXB0M19VUAsvsz3yg-7zMI7w9Zn_DYTLO1e2W9VEZrOgVmRNt1XBIT_pdQO7pQkKv4702yJTrIBOuhZWNLZRClPHd2RRhPf2SJeTkodbnL4xSvzcyEPpLaTPyZIVJnBcsAzYFiG_pJtyGs7x-iWbUZsYgnUVSy8Wg-5eqmvze5tuZdICIP0PJ0AVMNGOxRRiLOEh8MSg
14
14
  User-Agent:
15
- - Faraday v0.10.1
15
+ - Faraday v0.12.2
16
16
  Accept-Encoding:
17
17
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
18
  Accept:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  Content-Type:
28
28
  - application/json
29
29
  Date:
30
- - Tue, 01 May 2018 14:17:38 GMT
30
+ - Mon, 21 May 2018 18:34:06 GMT
31
31
  X-Li-Fabric:
32
32
  - prod-lva1
33
33
  Transfer-Encoding:
@@ -35,18 +35,18 @@ http_interactions:
35
35
  Connection:
36
36
  - keep-alive
37
37
  X-Li-Pop:
38
- - prod-ech2
38
+ - prod-edc2
39
39
  X-Li-Proto:
40
40
  - http/1.1
41
41
  Set-Cookie:
42
- - lidc="b=VB96:g=1148:u=15:i=1525184258:t=1525268970:s=AQEbKiX38Wd1TL5kfyYniOxQdy73nOc8"
42
+ - lidc="b=VB96:g=1172:u=20:i=1526927646:t=1527014039:s=AQH70OsvZigtL0Vvbzxes8DIaiz2upjx"
43
43
  X-Li-Route-Key:
44
- - '"b=VB96:g=1148:u=15:i=1525184258:t=1525268970:s=AQEbKiX38Wd1TL5kfyYniOxQdy73nOc8"'
44
+ - '"b=VB96:g=1172:u=20:i=1526927646:t=1527014039:s=AQH70OsvZigtL0Vvbzxes8DIaiz2upjx"'
45
45
  X-Li-Uuid:
46
- - xlC9egCLKhVAHA4w2SoAAA==
46
+ - LtFO15q8MBUgPkfW1CoAAA==
47
47
  body:
48
48
  encoding: UTF-8
49
49
  string: '{"serviceErrorCode":0,"message":"Resource people does not exist","status":404}'
50
50
  http_version:
51
- recorded_at: Tue, 01 May 2018 14:17:38 GMT
52
- recorded_with: VCR 3.0.3
51
+ recorded_at: Mon, 21 May 2018 18:34:07 GMT
52
+ recorded_with: VCR 4.0.0
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Authorization:
13
13
  - Bearer AQVM91zzF-bLiOfCsTi8ktxnq99l-tW9meri8F9ZEWAuHf5g1bO_Pa4p0nFwKvZ7VFdSERAnJZq3eNOq6BzDPFNIyGIy50s-7HkLq2hE5uy6HrAQrsMAQR_qZxnBrSD11g_M2sF5XB5fUHZOXEQFgFaXB0M19VUAsvsz3yg-7zMI7w9Zn_DYTLO1e2W9VEZrOgVmRNt1XBIT_pdQO7pQkKv4702yJTrIBOuhZWNLZRClPHd2RRhPf2SJeTkodbnL4xSvzcyEPpLaTPyZIVJnBcsAzYFiG_pJtyGs7x-iWbUZsYgnUVSy8Wg-5eqmvze5tuZdICIP0PJ0AVMNGOxRRiLOEh8MSg
14
14
  User-Agent:
15
- - Faraday v0.10.1
15
+ - Faraday v0.12.2
16
16
  Accept-Encoding:
17
17
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
18
  Accept:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  Content-Type:
28
28
  - application/json
29
29
  Date:
30
- - Tue, 01 May 2018 14:17:37 GMT
30
+ - Mon, 21 May 2018 18:34:06 GMT
31
31
  X-Li-Fabric:
32
32
  - prod-lva1
33
33
  Transfer-Encoding:
@@ -35,18 +35,18 @@ http_interactions:
35
35
  Connection:
36
36
  - keep-alive
37
37
  X-Li-Pop:
38
- - prod-ech2
38
+ - prod-edc2
39
39
  X-Li-Proto:
40
40
  - http/1.1
41
41
  Set-Cookie:
42
- - lidc="b=VB96:g=1148:u=15:i=1525184257:t=1525268970:s=AQF2lD6fKpyz8FQtLsc_SOX3nnWs8FVQ"
42
+ - lidc="b=VB96:g=1172:u=20:i=1526927646:t=1527014039:s=AQH70OsvZigtL0Vvbzxes8DIaiz2upjx"
43
43
  X-Li-Route-Key:
44
- - '"b=VB96:g=1148:u=15:i=1525184257:t=1525268970:s=AQF2lD6fKpyz8FQtLsc_SOX3nnWs8FVQ"'
44
+ - '"b=VB96:g=1172:u=20:i=1526927646:t=1527014039:s=AQH70OsvZigtL0Vvbzxes8DIaiz2upjx"'
45
45
  X-Li-Uuid:
46
- - UTyeZQCLKhXQEO+C2CoAAA==
46
+ - BXX9uZq8MBVggWfs1CoAAA==
47
47
  body:
48
48
  encoding: UTF-8
49
49
  string: '{"serviceErrorCode":0,"message":"Resource me does not exist","status":404}'
50
50
  http_version:
51
- recorded_at: Tue, 01 May 2018 14:17:37 GMT
52
- recorded_with: VCR 3.0.3
51
+ recorded_at: Mon, 21 May 2018 18:34:06 GMT
52
+ recorded_with: VCR 4.0.0
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Authorization:
13
13
  - Bearer AQVM91zzF-bLiOfCsTi8ktxnq99l-tW9meri8F9ZEWAuHf5g1bO_Pa4p0nFwKvZ7VFdSERAnJZq3eNOq6BzDPFNIyGIy50s-7HkLq2hE5uy6HrAQrsMAQR_qZxnBrSD11g_M2sF5XB5fUHZOXEQFgFaXB0M19VUAsvsz3yg-7zMI7w9Zn_DYTLO1e2W9VEZrOgVmRNt1XBIT_pdQO7pQkKv4702yJTrIBOuhZWNLZRClPHd2RRhPf2SJeTkodbnL4xSvzcyEPpLaTPyZIVJnBcsAzYFiG_pJtyGs7x-iWbUZsYgnUVSy8Wg-5eqmvze5tuZdICIP0PJ0AVMNGOxRRiLOEh8MSg
14
14
  User-Agent:
15
- - Faraday v0.10.1
15
+ - Faraday v0.12.2
16
16
  Accept-Encoding:
17
17
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
18
  Accept:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  X-Restli-Protocol-Version:
28
28
  - 1.0.0
29
29
  Date:
30
- - Tue, 01 May 2018 14:17:32 GMT
30
+ - Mon, 21 May 2018 18:34:01 GMT
31
31
  X-Li-Fabric:
32
32
  - prod-lva1
33
33
  Transfer-Encoding:
@@ -39,19 +39,19 @@ http_interactions:
39
39
  X-Li-Proto:
40
40
  - http/1.1
41
41
  Set-Cookie:
42
- - lidc="b=VB96:g=1148:u=15:i=1525184252:t=1525268970:s=AQGZJyzXGzBLW__bJlkB3Y6bgsVA2ePG"
42
+ - lidc="b=VB96:g=1172:u=20:i=1526927641:t=1527014039:s=AQFnfvd17C3wntwvnDGCCgAhGHxsNmrS"
43
43
  X-Li-Route-Key:
44
- - '"b=VB96:g=1148:u=15:i=1525184252:t=1525268970:s=AQGZJyzXGzBLW__bJlkB3Y6bgsVA2ePG"'
44
+ - '"b=VB96:g=1172:u=20:i=1526927641:t=1527014039:s=AQFnfvd17C3wntwvnDGCCgAhGHxsNmrS"'
45
45
  X-Li-Uuid:
46
- - KZBzN/+KKhUg84mFiCsAAA==
46
+ - I0OanJm8MBWQcFrp1CoAAA==
47
47
  body:
48
48
  encoding: UTF-8
49
49
  string: '{"industryName":{"localized":{"en_US":"Public Relations"},"preferredLocale":{"country":"US","language":"en"}},"localizedLastName":"Santos
50
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
51
  Logic"},"preferredLocale":{"country":"US","language":"en"}},"title":{"localized":{"en_US":"Social
52
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
53
+ Manager"},"preferredLocale":{"country":"US","language":"en"}}}},"pictureInfo":{"croppedImage":"urn:li:media:/gcrc/dms/image/C4E03AQEmhyl0HXzfGQ/profile-displayphoto-shrink_800_800/0?e=1532563200&v=beta&t=YgAaVHRcz-kCCjO0q4tLFqKCfagER0x4cba-AnuCFlY","masterImage":"urn:li:media:/gcrc/dms/image/C4E00AQFBxXq_zXDwiw/profile-originalphoto-shrink_900_1200/0?e=1527015600&v=beta&t=h4OmZxStzQ30Db1m1Qxe8h9Ll54_Z_eXZqYsBtfGia4","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
54
  Media Specialist at Ceres Logic"},"preferredLocale":{"country":"US","language":"en"}},"localizedFirstName":"Miguel"}'
55
55
  http_version:
56
- recorded_at: Tue, 01 May 2018 14:17:32 GMT
57
- recorded_with: VCR 3.0.3
56
+ recorded_at: Mon, 21 May 2018 18:34:01 GMT
57
+ recorded_with: VCR 4.0.0
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Authorization:
13
13
  - Bearer AQVM91zzF-bLiOfCsTi8ktxnq99l-tW9meri8F9ZEWAuHf5g1bO_Pa4p0nFwKvZ7VFdSERAnJZq3eNOq6BzDPFNIyGIy50s-7HkLq2hE5uy6HrAQrsMAQR_qZxnBrSD11g_M2sF5XB5fUHZOXEQFgFaXB0M19VUAsvsz3yg-7zMI7w9Zn_DYTLO1e2W9VEZrOgVmRNt1XBIT_pdQO7pQkKv4702yJTrIBOuhZWNLZRClPHd2RRhPf2SJeTkodbnL4xSvzcyEPpLaTPyZIVJnBcsAzYFiG_pJtyGs7x-iWbUZsYgnUVSy8Wg-5eqmvze5tuZdICIP0PJ0AVMNGOxRRiLOEh8MSg
14
14
  User-Agent:
15
- - Faraday v0.10.1
15
+ - Faraday v0.12.2
16
16
  Accept-Encoding:
17
17
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
18
  Accept:
@@ -37,18 +37,18 @@ http_interactions:
37
37
  Connection:
38
38
  - keep-alive
39
39
  X-Li-Pop:
40
- - prod-ech2
40
+ - prod-edc2
41
41
  X-Li-Proto:
42
42
  - http/1.1
43
43
  Set-Cookie:
44
- - lidc="b=VB96:g=1148:u=15:i=1525184253:t=1525268970:s=AQHWrEq2JHwj3dd7UAHa4EhM8uQgM9bq"
44
+ - lidc="b=VB96:g=1172:u=20:i=1526927642:t=1527014039:s=AQHHr3k2NymZYYLggEBOGWkjd-EZukzd"
45
45
  X-Li-Route-Key:
46
- - '"b=VB96:g=1148:u=15:i=1525184253:t=1525268970:s=AQHWrEq2JHwj3dd7UAHa4EhM8uQgM9bq"'
46
+ - '"b=VB96:g=1172:u=20:i=1526927642:t=1527014039:s=AQHHr3k2NymZYYLggEBOGWkjd-EZukzd"'
47
47
  X-Li-Uuid:
48
- - wYoWUv+KKhXwusxg2CoAAA==
48
+ - NUsjt5m8MBVQrG50SysAAA==
49
49
  body:
50
50
  encoding: UTF-8
51
51
  string: '{"message":"INTERNAL SERVER ERROR","status":500}'
52
52
  http_version:
53
- recorded_at: Tue, 01 May 2018 14:17:33 GMT
54
- recorded_with: VCR 3.0.3
53
+ recorded_at: Mon, 21 May 2018 18:34:02 GMT
54
+ recorded_with: VCR 4.0.0
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Authorization:
13
13
  - Bearer AQVM91zzF-bLiOfCsTi8ktxnq99l-tW9meri8F9ZEWAuHf5g1bO_Pa4p0nFwKvZ7VFdSERAnJZq3eNOq6BzDPFNIyGIy50s-7HkLq2hE5uy6HrAQrsMAQR_qZxnBrSD11g_M2sF5XB5fUHZOXEQFgFaXB0M19VUAsvsz3yg-7zMI7w9Zn_DYTLO1e2W9VEZrOgVmRNt1XBIT_pdQO7pQkKv4702yJTrIBOuhZWNLZRClPHd2RRhPf2SJeTkodbnL4xSvzcyEPpLaTPyZIVJnBcsAzYFiG_pJtyGs7x-iWbUZsYgnUVSy8Wg-5eqmvze5tuZdICIP0PJ0AVMNGOxRRiLOEh8MSg
14
14
  User-Agent:
15
- - Faraday v0.10.1
15
+ - Faraday v0.12.2
16
16
  Accept-Encoding:
17
17
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
18
  Accept:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  X-Restli-Protocol-Version:
28
28
  - 1.0.0
29
29
  Date:
30
- - Tue, 01 May 2018 14:17:30 GMT
30
+ - Mon, 21 May 2018 18:33:59 GMT
31
31
  X-Li-Fabric:
32
32
  - prod-lva1
33
33
  Transfer-Encoding:
@@ -39,19 +39,19 @@ http_interactions:
39
39
  X-Li-Proto:
40
40
  - http/1.1
41
41
  Set-Cookie:
42
- - lidc="b=VB96:g=1148:u=15:i=1525184250:t=1525268970:s=AQFUIAjH0CTuwIxnukDiLgSr9dRNaWYn"
42
+ - lidc="b=VB96:g=1172:u=20:i=1526927639:t=1527014039:s=AQFF3tE_rEXlxNHLXP4mAUnpECGyTyuo"
43
43
  X-Li-Route-Key:
44
- - '"b=VB96:g=1148:u=15:i=1525184250:t=1525268970:s=AQFUIAjH0CTuwIxnukDiLgSr9dRNaWYn"'
44
+ - '"b=VB96:g=1172:u=20:i=1526927639:t=1527014039:s=AQFF3tE_rEXlxNHLXP4mAUnpECGyTyuo"'
45
45
  X-Li-Uuid:
46
- - L3hNt/6KKhUg5NVqiSsAAA==
46
+ - M+8bBpm8MBVQMf3i1CoAAA==
47
47
  body:
48
48
  encoding: UTF-8
49
49
  string: '{"industryName":{"localized":{"en_US":"Public Relations"},"preferredLocale":{"country":"US","language":"en"}},"localizedLastName":"Santos
50
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
51
  Logic"},"preferredLocale":{"country":"US","language":"en"}},"title":{"localized":{"en_US":"Social
52
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
53
+ Manager"},"preferredLocale":{"country":"US","language":"en"}}}},"pictureInfo":{"croppedImage":"urn:li:media:/gcrc/dms/image/C4E03AQEmhyl0HXzfGQ/profile-displayphoto-shrink_800_800/0?e=1532563200&v=beta&t=YgAaVHRcz-kCCjO0q4tLFqKCfagER0x4cba-AnuCFlY","masterImage":"urn:li:media:/gcrc/dms/image/C4E00AQFBxXq_zXDwiw/profile-originalphoto-shrink_900_1200/0?e=1527015600&v=beta&t=h4OmZxStzQ30Db1m1Qxe8h9Ll54_Z_eXZqYsBtfGia4","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
54
  Media Specialist at Ceres Logic"},"preferredLocale":{"country":"US","language":"en"}},"localizedFirstName":"Miguel"}'
55
55
  http_version:
56
- recorded_at: Tue, 01 May 2018 14:17:30 GMT
57
- recorded_with: VCR 3.0.3
56
+ recorded_at: Mon, 21 May 2018 18:33:59 GMT
57
+ recorded_with: VCR 4.0.0
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Authorization:
13
13
  - Bearer AQVM91zzF-bLiOfCsTi8ktxnq99l-tW9meri8F9ZEWAuHf5g1bO_Pa4p0nFwKvZ7VFdSERAnJZq3eNOq6BzDPFNIyGIy50s-7HkLq2hE5uy6HrAQrsMAQR_qZxnBrSD11g_M2sF5XB5fUHZOXEQFgFaXB0M19VUAsvsz3yg-7zMI7w9Zn_DYTLO1e2W9VEZrOgVmRNt1XBIT_pdQO7pQkKv4702yJTrIBOuhZWNLZRClPHd2RRhPf2SJeTkodbnL4xSvzcyEPpLaTPyZIVJnBcsAzYFiG_pJtyGs7x-iWbUZsYgnUVSy8Wg-5eqmvze5tuZdICIP0PJ0AVMNGOxRRiLOEh8MSg
14
14
  User-Agent:
15
- - Faraday v0.10.1
15
+ - Faraday v0.12.2
16
16
  Accept-Encoding:
17
17
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
18
  Accept:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  Content-Type:
28
28
  - application/json
29
29
  Date:
30
- - Tue, 01 May 2018 14:17:31 GMT
30
+ - Mon, 21 May 2018 18:33:59 GMT
31
31
  X-Li-Fabric:
32
32
  - prod-lva1
33
33
  Transfer-Encoding:
@@ -39,15 +39,15 @@ http_interactions:
39
39
  X-Li-Proto:
40
40
  - http/1.1
41
41
  Set-Cookie:
42
- - lidc="b=VB96:g=1148:u=15:i=1525184251:t=1525268970:s=AQEoE7zF-KSVxUk_E2-53By07dmMVN5i"
42
+ - lidc="b=VB96:g=1172:u=20:i=1526927639:t=1527014039:s=AQFF3tE_rEXlxNHLXP4mAUnpECGyTyuo"
43
43
  X-Li-Route-Key:
44
- - '"b=VB96:g=1148:u=15:i=1525184251:t=1525268970:s=AQEoE7zF-KSVxUk_E2-53By07dmMVN5i"'
44
+ - '"b=VB96:g=1172:u=20:i=1526927639:t=1527014039:s=AQFF3tE_rEXlxNHLXP4mAUnpECGyTyuo"'
45
45
  X-Li-Uuid:
46
- - 7gc+2P6KKhWA5gqpiisAAA==
46
+ - EhBZKpm8MBWAHOVjdSsAAA==
47
47
  body:
48
48
  encoding: UTF-8
49
49
  string: '{"serviceErrorCode":100,"message":"Unpermitted fields present in PARAMETER:
50
50
  Data Processing Exception while processing fields [/secure]","status":403}'
51
51
  http_version:
52
- recorded_at: Tue, 01 May 2018 14:17:31 GMT
53
- recorded_with: VCR 3.0.3
52
+ recorded_at: Mon, 21 May 2018 18:33:59 GMT
53
+ recorded_with: VCR 4.0.0
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Authorization:
13
13
  - Bearer AQVM91zzF-bLiOfCsTi8ktxnq99l-tW9meri8F9ZEWAuHf5g1bO_Pa4p0nFwKvZ7VFdSERAnJZq3eNOq6BzDPFNIyGIy50s-7HkLq2hE5uy6HrAQrsMAQR_qZxnBrSD11g_M2sF5XB5fUHZOXEQFgFaXB0M19VUAsvsz3yg-7zMI7w9Zn_DYTLO1e2W9VEZrOgVmRNt1XBIT_pdQO7pQkKv4702yJTrIBOuhZWNLZRClPHd2RRhPf2SJeTkodbnL4xSvzcyEPpLaTPyZIVJnBcsAzYFiG_pJtyGs7x-iWbUZsYgnUVSy8Wg-5eqmvze5tuZdICIP0PJ0AVMNGOxRRiLOEh8MSg
14
14
  User-Agent:
15
- - Faraday v0.10.1
15
+ - Faraday v0.12.2
16
16
  Accept-Encoding:
17
17
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
18
  Accept:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  Content-Type:
28
28
  - application/json
29
29
  Date:
30
- - Tue, 01 May 2018 14:17:39 GMT
30
+ - Mon, 21 May 2018 18:34:08 GMT
31
31
  X-Li-Fabric:
32
32
  - prod-lva1
33
33
  Transfer-Encoding:
@@ -39,14 +39,14 @@ http_interactions:
39
39
  X-Li-Proto:
40
40
  - http/1.1
41
41
  Set-Cookie:
42
- - lidc="b=VB96:g=1148:u=15:i=1525184259:t=1525268970:s=AQFOr3awBhcmG6xWgA8mYBk-4nYB3avb"
42
+ - lidc="b=VB96:g=1172:u=20:i=1526927648:t=1527014039:s=AQFJz1E6LhBREEpyVTwL3BUCK1v6VMsD"
43
43
  X-Li-Route-Key:
44
- - '"b=VB96:g=1148:u=15:i=1525184259:t=1525268970:s=AQFOr3awBhcmG6xWgA8mYBk-4nYB3avb"'
44
+ - '"b=VB96:g=1172:u=20:i=1526927648:t=1527014039:s=AQFJz1E6LhBREEpyVTwL3BUCK1v6VMsD"'
45
45
  X-Li-Uuid:
46
- - hO4tuwCLKhXgGHumiisAAA==
46
+ - WI5lF5u8MBWggUJ7disAAA==
47
47
  body:
48
48
  encoding: UTF-8
49
49
  string: '{"serviceErrorCode":0,"message":"Resource me does not exist","status":404}'
50
50
  http_version:
51
- recorded_at: Tue, 01 May 2018 14:17:39 GMT
52
- recorded_with: VCR 3.0.3
51
+ recorded_at: Mon, 21 May 2018 18:34:08 GMT
52
+ recorded_with: VCR 4.0.0
@@ -8,7 +8,7 @@ http_interactions:
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
9
  headers:
10
10
  User-Agent:
11
- - Faraday v0.10.1
11
+ - Faraday v0.12.2
12
12
  Content-Type:
13
13
  - application/x-www-form-urlencoded
14
14
  Accept-Encoding:
@@ -31,11 +31,11 @@ http_interactions:
31
31
  Content-Language:
32
32
  - en-US
33
33
  Content-Length:
34
- - '249'
34
+ - '250'
35
35
  Date:
36
- - Tue, 01 May 2018 14:17:44 GMT
36
+ - Mon, 21 May 2018 18:34:12 GMT
37
37
  X-Fs-Uuid:
38
- - 88cc2025028b2a1580055102952b0000
38
+ - 70f4ba4e9cbc301530a927905a2b0000
39
39
  Strict-Transport-Security:
40
40
  - max-age=2592000
41
41
  X-Content-Type-Options:
@@ -55,23 +55,23 @@ http_interactions:
55
55
  - prod-lva1
56
56
  Set-Cookie:
57
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
58
+ - bcookie="v=2&53734286-2ff6-4775-8815-fb329908620f"; domain=.linkedin.com;
59
+ Path=/; Expires=Thu, 21-May-2020 06:11:45 GMT
60
+ - bscookie="v=1&201805211834135fe5a5cf-44d0-4436-8f0a-c872fcd931dcAQGDUaCE6UL5S3Rii7Hpf080T2rndw2V";
61
+ domain=.www.linkedin.com; Path=/; Secure; Expires=Thu, 21-May-2020 06:11:45
62
62
  GMT; HttpOnly
63
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=/
64
+ - leo_auth_token="GST:ZBKfsZrol-x9QKXHTYkddKM6Nuoe6ZMrcIkduMMlrtNRkRFbRQfQSF:1526927653:0814bcf68c5f7c1fee95187ee3d6278a384a0c5f";
65
+ Version=1; Max-Age=1799; Expires=Mon, 21-May-2018 19:04:12 GMT; Path=/
66
+ - lidc="b=VB13:g=1687:u=1:i=1526927653:t=1527014053:s=AQF5cIoIh2QDyMB69542xhzXMDBRDl3Q";
67
+ Expires=Tue, 22 May 2018 18:34:13 GMT; domain=.linkedin.com; Path=/
68
68
  - s_leo_auth_token="delete me"; Version=1; Max-Age=0; Expires=Thu, 01-Jan-1970
69
69
  00:00:10 GMT; Path=/
70
70
  - sl="delete me"; Version=1; Domain=.www.linkedin.com; Max-Age=0; Expires=Thu,
71
71
  01-Jan-1970 00:00:10 GMT; Path=/
72
72
  - sl="delete me"; Version=1; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:10 GMT;
73
73
  Path=/
74
- - visit="v=1&G"; Version=1; Max-Age=63072000; Expires=Thu, 30-Apr-2020 14:17:45
74
+ - visit="v=1&G"; Version=1; Max-Age=63072000; Expires=Wed, 20-May-2020 18:34:13
75
75
  GMT; Path=/
76
76
  X-Li-Proto:
77
77
  - http/1.1
@@ -85,15 +85,15 @@ http_interactions:
85
85
  Connection:
86
86
  - keep-alive
87
87
  X-Li-Pop:
88
- - prod-ech2
88
+ - prod-edc2
89
89
  X-Li-Uuid:
90
- - j4R5JAKLKhUQs5wqlisAAA==
90
+ - Qq0pTpy8MBUA9OfbWSsAAA==
91
91
  body:
92
92
  encoding: ASCII-8BIT
93
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]}
94
+ to handle the request : RestException{_response=RestResponse[headers={Content-Length=10592,
95
+ Content-Type=application/json, X-RestLi-Error-Response=true, X-RestLi-Protocol-Version=2.0.0}cookies=[],status=404,entityLength=10592]}
96
96
  ","error":"temporarily_unavailable"}'
97
97
  http_version:
98
- recorded_at: Tue, 01 May 2018 14:17:45 GMT
99
- recorded_with: VCR 3.0.3
98
+ recorded_at: Mon, 21 May 2018 18:34:13 GMT
99
+ recorded_with: VCR 4.0.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linkedin-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Desjardins
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-01 00:00:00.000000000 Z
11
+ date: 2020-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2
@@ -44,14 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.11'
47
+ version: '1.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.11'
54
+ version: '1.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: mime-types
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '1.16'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '1.16'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rake
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -182,10 +196,10 @@ files:
182
196
  - lib/linked_in/version.rb
183
197
  - lib/linkedin-v2.rb
184
198
  - linkedin-v2.gemspec
185
- - pkg/linkedin-oauth2-2.0.0.gem
186
199
  - spec/linked_in/api/api_spec.rb
187
200
  - spec/linked_in/api/communications_spec.rb
188
201
  - spec/linked_in/api/jobs_spec.rb
202
+ - spec/linked_in/api/media_spec.rb
189
203
  - spec/linked_in/api/organizations_spec.rb
190
204
  - spec/linked_in/api/people_spec.rb
191
205
  - spec/linked_in/api/search_spec.rb
@@ -225,7 +239,7 @@ homepage: http://github.com/mdesjardins/linkedin-v2
225
239
  licenses:
226
240
  - MIT
227
241
  metadata: {}
228
- post_install_message:
242
+ post_install_message:
229
243
  rdoc_options: []
230
244
  require_paths:
231
245
  - lib
@@ -240,15 +254,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
254
  - !ruby/object:Gem::Version
241
255
  version: '0'
242
256
  requirements: []
243
- rubyforge_project:
244
- rubygems_version: 2.6.10
245
- signing_key:
257
+ rubygems_version: 3.1.2
258
+ signing_key:
246
259
  specification_version: 4
247
260
  summary: Ruby wrapper for the LinkedIn v2 API
248
261
  test_files:
249
262
  - spec/linked_in/api/api_spec.rb
250
263
  - spec/linked_in/api/communications_spec.rb
251
264
  - spec/linked_in/api/jobs_spec.rb
265
+ - spec/linked_in/api/media_spec.rb
252
266
  - spec/linked_in/api/organizations_spec.rb
253
267
  - spec/linked_in/api/people_spec.rb
254
268
  - spec/linked_in/api/search_spec.rb