lib/linkedin/api/invitation.rb in linkedin2-0.0.17 vs lib/linkedin/api/invitation.rb in linkedin2-0.0.18
- old
+ new
@@ -1,11 +1,11 @@
module LinkedIn
module API
module Invitation
def connect_with(recipient_selector, subject, message, type: :friend, x_auth_token: nil)
if x_auth_token.blank?
- target_profile = profile recipient_selector, Fields::PROFILE_API_STD_PROFILE_REQ
- x_auth_token = target_profile.body.apiStandardProfileRequest_.headers_.values_.first.value
+ target_profile = profile recipient_selector, fields: Fields::PROFILE_API_STD_PROFILE_REQ
+ x_auth_token = target_profile.apiStandardProfileRequest_.headers_.values_.first.value
end
x_auth_name, x_auth_value = *x_auth_token.split(':')
connection_body = build_connection_body selector: recipient_selector, subject: subject,