Class: Vonage::Conversations::Members

Inherits:
Namespace
  • Object
show all
Defined in:
lib/vonage/conversations/members.rb

Instance Method Summary collapse

Instance Method Details

#create(conversation_id, params) ⇒ Response

Deprecated.

Create a member.

Parameters:

  • conversation_id (String)
  • params (Hash)

Options Hash (params):

  • :action (String)

    Invite or join a member to a conversation. Must be one of: ‘invite` or `join`.

  • :user_id (required, String)

    User ID.

  • :member_id (String)

    Member ID.

  • :channel (required, Hash)

    A user who joins a conversation as a member can have one channel per membership type.

  • :media (Hash)

    Media Object.

  • :knocking_id (String)

    Knocker ID. A knocker is a pre-member of a conversation who does not exist yet.

  • :member_id_inviting (String)

    Member ID of the member that sends the invitation.

Returns:

See Also:



44
45
46
47
# File 'lib/vonage/conversations/members.rb', line 44

def create(conversation_id, params)
  logger.info('This method is deprecated and will be removed in a future release. Please use `Vonage::Conversation::Member#create` instead.')
  request('/beta/conversations/' + conversation_id + '/members', params: params, type: Post)
end

#delete(conversation_id, member_id) ⇒ Response

Deprecated.

Delete a member.

Parameters:

  • conversation_id (String)
  • member_id (String)

Returns:

See Also:



118
119
120
121
# File 'lib/vonage/conversations/members.rb', line 118

def delete(conversation_id, member_id)
  logger.info('This method is deprecated and will be removed in a future release.')
  request('/beta/conversations/' + conversation_id + '/members/' + member_id, type: Delete)
end

#get(conversation_id, member_id) ⇒ Response

Deprecated.

Retrieve a member.

Parameters:

  • conversation_id (String)
  • member_id (String)

Returns:

See Also:



79
80
81
82
# File 'lib/vonage/conversations/members.rb', line 79

def get(conversation_id, member_id)
  logger.info('This method is deprecated and will be removed in a future release. Please use `Vonage::Conversation::Member#find` instead.')
  request('/beta/conversations/' + conversation_id + '/members/' + member_id)
end

#list(conversation_id, params = nil, auto_advance = true) ⇒ Response

Deprecated.

List members.

Parameters:

  • conversation_id (String)
  • params (Hash) (defaults to: nil)

    a customizable set of options

Options Hash (params):

  • :auto_advance (Boolean)

    Set this to ‘false` to not auto-advance through all the pages in the record and collect all the data. The default is `true`.

Returns:

See Also:



63
64
65
66
# File 'lib/vonage/conversations/members.rb', line 63

def list(conversation_id, params = nil, auto_advance = true)
  logger.info('This method is deprecated and will be removed in a future release. Please use `Vonage::Conversation::Member#list` instead.')
  request('/beta/conversations/' + conversation_id + '/members', params: params)
end

#update(conversation_id, member_id, params) ⇒ Response

Deprecated.

Update a member.

Parameters:

  • conversation_id (String)
  • member_id (String)
  • params (Hash)

Options Hash (params):

  • :action (String)

    Invite or join a member to a conversation.

  • :channel (Hash)

    A user who joins a conversation as a member can have one channel per membership type.

Returns:

See Also:



102
103
104
105
# File 'lib/vonage/conversations/members.rb', line 102

def update(conversation_id, member_id, params)
  logger.info('This method is deprecated and will be removed in a future release. Please use `Vonage::Conversation::Member#update` instead.')
  request('/beta/conversations/' + conversation_id + '/members/' + member_id, params: params, type: Put)
end