class LMSGraphQL::Mutations::Canvas::CreateCommunicationChannel
Public Instance Methods
resolve(user_id:, communication_channel_address:, communication_channel_type:, communication_channel_token: nil, skip_confirmation: nil)
click to toggle source
# File lib/lms_graphql/mutations/canvas/create_communication_channel.rb, line 16 def resolve(user_id:, communication_channel_address:, communication_channel_type:, communication_channel_token: nil, skip_confirmation: nil) context[:canvas_api].call("CREATE_COMMUNICATION_CHANNEL").proxy( "CREATE_COMMUNICATION_CHANNEL", { "user_id": user_id }, { "communication_channel[address]": communication_channel_address, "communication_channel[type]": communication_channel_type, "communication_channel[token]": communication_channel_token, "skip_confirmation": skip_confirmation }, ).parsed_response end