class Avmtrf1::Tools::Msgraph::Api::Team::MemberAdd

def body_hash

Returns:
  • (Hash) -
def body_hash
  {
    '@odata.type' => '#microsoft.graph.aadUserConversationMember',
    'user@odata.bind' => "https://graph.microsoft.com/v1.0/users('#{user_id}')"
  }
end

def result

Returns:
  • (Hash) -
def result
  team.members_request do |req|
    req.verb(:post).header('Content-type', 'application/json')
      .body_data(body_hash.to_json)
  end
end