query stringlengths 7 9.55k | document stringlengths 10 363k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Add a new contact | def create_contact(create_contact_input_object, opts = {})
data, _status_code, _headers = create_contact_with_http_info(create_contact_input_object, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def add_contact(params={})\n @obj.put('add-contact', @auth.merge(params))\n end",
"def post_contact\n\t\tcontact = Contact.new\n\t\tcontact.first_name = params[:first_name]\n\t\tcontact.last_name = params[:last_name]\n\t\tcontact.phone_number = params[:phone_number]\n\t\tcontact.email = params[:email]\n\... | [
"0.83977294",
"0.79457814",
"0.7912085",
"0.7909552",
"0.78748226",
"0.786975",
"0.7838646",
"0.7752102",
"0.7742281",
"0.7639633",
"0.7606772",
"0.7535491",
"0.75353086",
"0.74195445",
"0.7406804",
"0.7394136",
"0.73813426",
"0.7345508",
"0.7288608",
"0.7286811",
"0.72818923... | 0.0 | -1 |
Add a new contact | def create_contact_with_http_info(create_contact_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.create_contact ...'
end
# verify the required parameter 'create_contact_input_object' is set
if @api_client.config.client_side_validation && create_contact_input_object.nil?
fail ArgumentError, "Missing the required parameter 'create_contact_input_object' when calling TextMagicApi.create_contact"
end
# resource path
local_var_path = '/api/v2/contacts/normalized'
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(create_contact_input_object)
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'ResourceLinkResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#create_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def add_contact(params={})\n @obj.put('add-contact', @auth.merge(params))\n end",
"def post_contact\n\t\tcontact = Contact.new\n\t\tcontact.first_name = params[:first_name]\n\t\tcontact.last_name = params[:last_name]\n\t\tcontact.phone_number = params[:phone_number]\n\t\tcontact.email = params[:email]\n\... | [
"0.83972985",
"0.79467446",
"0.79114646",
"0.7909316",
"0.78767025",
"0.78713006",
"0.78380436",
"0.77514064",
"0.77453583",
"0.7639141",
"0.7605866",
"0.75402415",
"0.7536379",
"0.7422083",
"0.7407729",
"0.7395384",
"0.73826396",
"0.7347193",
"0.7289681",
"0.7287826",
"0.728... | 0.0 | -1 |
Create a new contact note | def create_contact_note(create_contact_note_input_object, id, opts = {})
data, _status_code, _headers = create_contact_note_with_http_info(create_contact_note_input_object, id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def add_contact\n print \"First name:\"\n first_name = gets.chomp\n\n print \"Last Name:\"\n last_name = gets.chomp\n\n print \"Email:\"\n email = gets.chomp\n\n print \"Notes:\"\n notes = gets.chomp\n\n Contact.create(first_name, last_name, { email: email, notes: notes })\n end",
"de... | [
"0.72306234",
"0.72085005",
"0.71946037",
"0.71871746",
"0.71658945",
"0.71267444",
"0.71144027",
"0.7100386",
"0.70436347",
"0.7001792",
"0.7000099",
"0.6997328",
"0.6981078",
"0.6946772",
"0.69418967",
"0.6941056",
"0.69409466",
"0.68994",
"0.6861987",
"0.6861987",
"0.68487... | 0.7091286 | 8 |
Create a new contact note | def create_contact_note_with_http_info(create_contact_note_input_object, id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.create_contact_note ...'
end
# verify the required parameter 'create_contact_note_input_object' is set
if @api_client.config.client_side_validation && create_contact_note_input_object.nil?
fail ArgumentError, "Missing the required parameter 'create_contact_note_input_object' when calling TextMagicApi.create_contact_note"
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.create_contact_note"
end
# resource path
local_var_path = '/api/v2/contacts/{id}/notes'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(create_contact_note_input_object)
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'ResourceLinkResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#create_contact_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def add_contact\n print \"First name:\"\n first_name = gets.chomp\n\n print \"Last Name:\"\n last_name = gets.chomp\n\n print \"Email:\"\n email = gets.chomp\n\n print \"Notes:\"\n notes = gets.chomp\n\n Contact.create(first_name, last_name, { email: email, notes: notes })\n end",
"de... | [
"0.72306234",
"0.72085005",
"0.71946037",
"0.71871746",
"0.71658945",
"0.71267444",
"0.71144027",
"0.7100386",
"0.7091286",
"0.70436347",
"0.7001792",
"0.7000099",
"0.6997328",
"0.6981078",
"0.6946772",
"0.69418967",
"0.6941056",
"0.69409466",
"0.68994",
"0.6861987",
"0.68619... | 0.6401318 | 62 |
Add a new custom field | def create_custom_field(create_custom_field_input_object, opts = {})
data, _status_code, _headers = create_custom_field_with_http_info(create_custom_field_input_object, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def add_custom_field(name, value)\n add_field name, value\n end",
"def add_field(field)\n\t\tend",
"def add_field!(field_name, value = nil)\n fields << Field.new({'name' => field_name}, value)\n end",
"def add_new_custom_field(field_name, opts = {})\n add_new_custom_field_with_ht... | [
"0.84950024",
"0.82064474",
"0.7559225",
"0.74274504",
"0.7343116",
"0.71862847",
"0.71030545",
"0.69975436",
"0.69880867",
"0.69438106",
"0.69114983",
"0.69105726",
"0.688723",
"0.68620676",
"0.68403894",
"0.67650795",
"0.675667",
"0.67433625",
"0.67394304",
"0.66895556",
"0... | 0.655225 | 22 |
Add a new custom field | def create_custom_field_with_http_info(create_custom_field_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.create_custom_field ...'
end
# verify the required parameter 'create_custom_field_input_object' is set
if @api_client.config.client_side_validation && create_custom_field_input_object.nil?
fail ArgumentError, "Missing the required parameter 'create_custom_field_input_object' when calling TextMagicApi.create_custom_field"
end
# resource path
local_var_path = '/api/v2/customfields'
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(create_custom_field_input_object)
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'ResourceLinkResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#create_custom_field\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def add_custom_field(name, value)\n add_field name, value\n end",
"def add_field(field)\n\t\tend",
"def add_field!(field_name, value = nil)\n fields << Field.new({'name' => field_name}, value)\n end",
"def add_new_custom_field(field_name, opts = {})\n add_new_custom_field_with_ht... | [
"0.8494293",
"0.8207782",
"0.75596595",
"0.7428799",
"0.7343611",
"0.7186318",
"0.7103654",
"0.6997109",
"0.6987635",
"0.69434077",
"0.6912835",
"0.6912083",
"0.68886954",
"0.6862641",
"0.6841734",
"0.67670447",
"0.67563975",
"0.6742153",
"0.67401046",
"0.66890705",
"0.665278... | 0.6101384 | 55 |
Create a new list | def create_list(create_list_input_object, opts = {})
data, _status_code, _headers = create_list_with_http_info(create_list_input_object, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def make_new_list\n list = {}\nend",
"def new_list\n list = {}\n return list\nend",
"def create_list(list)\n print_list(list)\n return list\nend",
"def new_list(list_name)\n list_name = {}\nend",
"def new\n @list = List.new\n end",
"def new\n @list = List.new\n end",
"def create_list\... | [
"0.737416",
"0.7151915",
"0.713882",
"0.7044372",
"0.6944368",
"0.6923454",
"0.69118446",
"0.679852",
"0.6795652",
"0.6786943",
"0.6756832",
"0.67307866",
"0.6715358",
"0.67116344",
"0.6670697",
"0.66415113",
"0.66415113",
"0.66415113",
"0.6614689",
"0.6604755",
"0.658512",
... | 0.0 | -1 |
Create a new list | def create_list_with_http_info(create_list_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.create_list ...'
end
# verify the required parameter 'create_list_input_object' is set
if @api_client.config.client_side_validation && create_list_input_object.nil?
fail ArgumentError, "Missing the required parameter 'create_list_input_object' when calling TextMagicApi.create_list"
end
# resource path
local_var_path = '/api/v2/lists'
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(create_list_input_object)
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'ResourceLinkResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#create_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def make_new_list\n list = {}\nend",
"def new_list\n list = {}\n return list\nend",
"def create_list(list)\n print_list(list)\n return list\nend",
"def new_list(list_name)\n list_name = {}\nend",
"def new\n @list = List.new\n end",
"def new\n @list = List.new\n end",
"def create_list\... | [
"0.737416",
"0.7151915",
"0.713882",
"0.7044372",
"0.6944368",
"0.6923454",
"0.69118446",
"0.679852",
"0.6795652",
"0.6786943",
"0.6756832",
"0.67307866",
"0.6715358",
"0.67116344",
"0.6670697",
"0.66415113",
"0.66415113",
"0.66415113",
"0.6614689",
"0.6604755",
"0.658512",
... | 0.0 | -1 |
Create a template There are times when creating a new template makes sense (such as when targeting specific clients or improving your business strategies). You can create new SMS templates for marketing purposes or SMS templates for business campaigns. | def create_template(create_template_input_object, opts = {})
data, _status_code, _headers = create_template_with_http_info(create_template_input_object, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def create\n authorize Template\n args = template_params\n # Swap in the appropriate visibility enum value for the checkbox value\n args[:visibility] = parse_visibility(args, current_user.org)\n\n # creates a new template with version 0 and new family_id\n @template = Template.new(arg... | [
"0.76694846",
"0.7507561",
"0.74383026",
"0.7194013",
"0.70092225",
"0.69526476",
"0.6928172",
"0.6827199",
"0.67200035",
"0.67031825",
"0.66243273",
"0.662126",
"0.6614926",
"0.657698",
"0.6547153",
"0.6539834",
"0.6537804",
"0.6498366",
"0.6496938",
"0.6466381",
"0.6453378"... | 0.65914744 | 13 |
Create a template There are times when creating a new template makes sense (such as when targeting specific clients or improving your business strategies). You can create new SMS templates for marketing purposes or SMS templates for business campaigns. | def create_template_with_http_info(create_template_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.create_template ...'
end
# verify the required parameter 'create_template_input_object' is set
if @api_client.config.client_side_validation && create_template_input_object.nil?
fail ArgumentError, "Missing the required parameter 'create_template_input_object' when calling TextMagicApi.create_template"
end
# resource path
local_var_path = '/api/v2/templates'
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(create_template_input_object)
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'ResourceLinkResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#create_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def create\n authorize Template\n args = template_params\n # Swap in the appropriate visibility enum value for the checkbox value\n args[:visibility] = parse_visibility(args, current_user.org)\n\n # creates a new template with version 0 and new family_id\n @template = Template.new(arg... | [
"0.7668062",
"0.750754",
"0.7437625",
"0.7193567",
"0.70095235",
"0.69515806",
"0.6928045",
"0.6827225",
"0.6719809",
"0.6704898",
"0.6623714",
"0.6619963",
"0.6614439",
"0.6589568",
"0.657525",
"0.65460205",
"0.65405315",
"0.6538534",
"0.64991385",
"0.64950514",
"0.6466797",... | 0.63341767 | 34 |
Delete all messages Delete all messages. | def delete_all_outbound_messages(opts = {})
delete_all_outbound_messages_with_http_info(opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def remove_records(messages)\n clause = deleted_query(messages)\n\n clause.delete_all\n end",
"def clear_messages\n @messages.clear\n end",
"def clear\n messages.clear\n end",
"def clear\n messages.clear\n end",
"def destroy_all\r\n Message.destroy_all(channel: @channe... | [
"0.7227915",
"0.7195275",
"0.70764095",
"0.70764095",
"0.70739114",
"0.70472497",
"0.6911287",
"0.69019365",
"0.6861518",
"0.6800553",
"0.6758922",
"0.6753192",
"0.671513",
"0.6698504",
"0.6693578",
"0.66801524",
"0.665884",
"0.6656712",
"0.66407186",
"0.6620202",
"0.6601541"... | 0.5976648 | 90 |
Delete all messages Delete all messages. | def delete_all_outbound_messages_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_all_outbound_messages ...'
end
# resource path
local_var_path = '/api/v2/message/all'
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_all_outbound_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def remove_records(messages)\n clause = deleted_query(messages)\n\n clause.delete_all\n end",
"def clear_messages\n @messages.clear\n end",
"def clear\n messages.clear\n end",
"def clear\n messages.clear\n end",
"def destroy_all\r\n Message.destroy_all(channel: @channe... | [
"0.7227915",
"0.7195275",
"0.70764095",
"0.70764095",
"0.70739114",
"0.70472497",
"0.6911287",
"0.69019365",
"0.6861518",
"0.6800553",
"0.6758922",
"0.6753192",
"0.671513",
"0.6698504",
"0.6693578",
"0.66801524",
"0.665884",
"0.6656712",
"0.66407186",
"0.6620202",
"0.6601541"... | 0.0 | -1 |
Delete chat messages by ID(s) Delete messages from chat by given message IDs. | def delete_chat_messages(delete_chat_messages_bulk_input_object, id, opts = {})
delete_chat_messages_with_http_info(delete_chat_messages_bulk_input_object, id, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def message_delete(id)\n request(:delete, \"messages/#{id.to_s}\")\n end",
"def bulk_delete(token, channel_id, messages = [])\n request(\n __method__,\n :post,\n \"#{api_base}/channels/#{channel_id}/messages/bulk_delete\",\n { messages: messages }.to_json,\n Authorization: tok... | [
"0.71460783",
"0.71031404",
"0.67534226",
"0.67534226",
"0.6657675",
"0.66067576",
"0.65686977",
"0.6498384",
"0.64622974",
"0.64510214",
"0.64371073",
"0.6390611",
"0.6362118",
"0.6315861",
"0.63035953",
"0.6293471",
"0.62873834",
"0.62620026",
"0.6258027",
"0.6248948",
"0.6... | 0.72903514 | 0 |
Delete chat messages by ID(s) Delete messages from chat by given message IDs. | def delete_chat_messages_with_http_info(delete_chat_messages_bulk_input_object, id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_chat_messages ...'
end
# verify the required parameter 'delete_chat_messages_bulk_input_object' is set
if @api_client.config.client_side_validation && delete_chat_messages_bulk_input_object.nil?
fail ArgumentError, "Missing the required parameter 'delete_chat_messages_bulk_input_object' when calling TextMagicApi.delete_chat_messages"
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.delete_chat_messages"
end
# resource path
local_var_path = '/api/v2/chats/{id}/messages/delete'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(delete_chat_messages_bulk_input_object)
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_chat_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete_chat_messages(delete_chat_messages_bulk_input_object, id, opts = {})\n delete_chat_messages_with_http_info(delete_chat_messages_bulk_input_object, id, opts)\n nil\n end",
"def message_delete(id)\n request(:delete, \"messages/#{id.to_s}\")\n end",
"def bulk_delete(token, channel_... | [
"0.72899663",
"0.7147312",
"0.7100823",
"0.6754356",
"0.6754356",
"0.6656772",
"0.6605457",
"0.6566126",
"0.6498973",
"0.64604014",
"0.6450458",
"0.6387882",
"0.6361177",
"0.63155407",
"0.63037694",
"0.62922853",
"0.6284014",
"0.6260251",
"0.6257372",
"0.6249115",
"0.6230471"... | 0.64383495 | 11 |
Delete chats (bulk) Delete chats by given IDs or delete all chats. | def delete_chats_bulk(delete_chats_bulk_input_object, opts = {})
delete_chats_bulk_with_http_info(delete_chats_bulk_input_object, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete(*ids)\n ids.flatten!\n @write_connection.delete_by_id(ids)\n end",
"def bulk_delete(token, channel_id, messages = [])\n request(\n __method__,\n :post,\n \"#{api_base}/channels/#{channel_id}/messages/bulk_delete\",\n { messages: messages }.to_json,\n Authorizat... | [
"0.69021857",
"0.6801039",
"0.65538096",
"0.63219035",
"0.63161606",
"0.6077295",
"0.6077295",
"0.60744363",
"0.6036222",
"0.6031128",
"0.6028326",
"0.6022517",
"0.6001747",
"0.599124",
"0.5974656",
"0.5916781",
"0.5909531",
"0.590441",
"0.5893668",
"0.5877884",
"0.5850626",
... | 0.7480571 | 0 |
Delete chats (bulk) Delete chats by given IDs or delete all chats. | def delete_chats_bulk_with_http_info(delete_chats_bulk_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_chats_bulk ...'
end
# verify the required parameter 'delete_chats_bulk_input_object' is set
if @api_client.config.client_side_validation && delete_chats_bulk_input_object.nil?
fail ArgumentError, "Missing the required parameter 'delete_chats_bulk_input_object' when calling TextMagicApi.delete_chats_bulk"
end
# resource path
local_var_path = '/api/v2/chats/delete'
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(delete_chats_bulk_input_object)
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_chats_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete_chats_bulk(delete_chats_bulk_input_object, opts = {})\n delete_chats_bulk_with_http_info(delete_chats_bulk_input_object, opts)\n nil\n end",
"def delete(*ids)\n ids.flatten!\n @write_connection.delete_by_id(ids)\n end",
"def bulk_delete(token, channel_id, messages = [])\n ... | [
"0.7482207",
"0.6899125",
"0.6801717",
"0.6552302",
"0.63203526",
"0.6314488",
"0.60756606",
"0.60756606",
"0.6072143",
"0.603352",
"0.6029342",
"0.60274065",
"0.60226125",
"0.59902084",
"0.597421",
"0.5914655",
"0.5907472",
"0.59046066",
"0.58943033",
"0.587929",
"0.58484066... | 0.60028315 | 13 |
Delete a contact > This command removes your contact completely. If it was assigned or saved to a shared list, it will disappear from there too. If you only need to remove a contact from selected lists, use the Contact assignment command in the Lists section instead, rather than deleting the contact. | def delete_contact(id, opts = {})
delete_contact_with_http_info(id, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete_contact(contact_to_delete)\n @contacts.delete(contact_to_delete)\n end",
"def delete_contact(params={})\n @obj.delete('delete-contact', @auth.merge(params))\n end",
"def delete_contact(list_id, contact_id)\n delete(\"contactLists/#{list_id}/#{contact_id}\")\n end",
"def del... | [
"0.78275067",
"0.765272",
"0.764233",
"0.76202476",
"0.75308746",
"0.75246286",
"0.7512377",
"0.74538285",
"0.7315564",
"0.72969097",
"0.7230807",
"0.7222397",
"0.72011626",
"0.7136703",
"0.71039474",
"0.7045527",
"0.70187336",
"0.70156986",
"0.70098287",
"0.69751775",
"0.697... | 0.0 | -1 |
Delete a contact > This command removes your contact completely. If it was assigned or saved to a shared list, it will disappear from there too. If you only need to remove a contact from selected lists, use the Contact assignment command in the Lists section instead, rather than deleting the contact. | def delete_contact_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_contact ...'
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.delete_contact"
end
# resource path
local_var_path = '/api/v2/contacts/{id}'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete_contact(contact_to_delete)\n @contacts.delete(contact_to_delete)\n end",
"def delete_contact(params={})\n @obj.delete('delete-contact', @auth.merge(params))\n end",
"def delete_contact(list_id, contact_id)\n delete(\"contactLists/#{list_id}/#{contact_id}\")\n end",
"def del... | [
"0.7829229",
"0.7653895",
"0.7643067",
"0.76224196",
"0.75329447",
"0.75240844",
"0.75134575",
"0.74551845",
"0.73171955",
"0.72982305",
"0.7233654",
"0.72245216",
"0.72040284",
"0.7136404",
"0.7104378",
"0.70462066",
"0.70195615",
"0.70169103",
"0.7010288",
"0.6975727",
"0.6... | 0.0 | -1 |
Delete a contact note | def delete_contact_note(id, opts = {})
delete_contact_note_with_http_info(id, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete_note id\n @nimble.delete \"contact/notes/#{id}\"\n end",
"def delete(note)\n args = {id: note.id}\n return @client.api_helper.command(args, \"note_delete\")\n end",
"def delete_note(note)\n logger.info \"Deleting note '#{note.id}'\"\n expand_note note\n wait... | [
"0.8479401",
"0.7731172",
"0.76174814",
"0.7369752",
"0.7369752",
"0.73129785",
"0.7247051",
"0.707219",
"0.70239466",
"0.69975543",
"0.69860226",
"0.6984375",
"0.69767123",
"0.6948874",
"0.69442",
"0.6916632",
"0.6882123",
"0.68734396",
"0.6850805",
"0.683677",
"0.68113744",... | 0.66881436 | 34 |
Delete a contact note | def delete_contact_note_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_contact_note ...'
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.delete_contact_note"
end
# resource path
local_var_path = '/api/v2/notes/{id}'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_contact_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete_note id\n @nimble.delete \"contact/notes/#{id}\"\n end",
"def delete(note)\n args = {id: note.id}\n return @client.api_helper.command(args, \"note_delete\")\n end",
"def delete_note(note)\n logger.info \"Deleting note '#{note.id}'\"\n expand_note note\n wait... | [
"0.8479401",
"0.7731172",
"0.76174814",
"0.7369752",
"0.7369752",
"0.73129785",
"0.7247051",
"0.707219",
"0.70239466",
"0.69975543",
"0.69860226",
"0.6984375",
"0.69767123",
"0.6948874",
"0.69442",
"0.6916632",
"0.6882123",
"0.68734396",
"0.6850805",
"0.683677",
"0.68113744",... | 0.6385767 | 84 |
Delete contact notes (bulk) | def delete_contact_notes_bulk(id, delete_contact_notes_bulk_input_object, opts = {})
delete_contact_notes_bulk_with_http_info(id, delete_contact_notes_bulk_input_object, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bulk_delete\n contact_ids = []\n contact_params[:contact_ids].each do |cid|\n contact_ids << BSON::ObjectId.from_string(cid)\n end\n\n deleted = Contact.where(uid: current_user.id).in(:_id => contact_ids).delete_all\n\n Cashier.expire \"contacts-filter-#{current_user.id}\"\n notice = \"#... | [
"0.7487442",
"0.73422056",
"0.69068134",
"0.6807626",
"0.67927516",
"0.6769245",
"0.66862774",
"0.6682935",
"0.6626438",
"0.6549543",
"0.6541988",
"0.65100807",
"0.64961344",
"0.6457127",
"0.64435804",
"0.63996524",
"0.6370559",
"0.6370559",
"0.6353171",
"0.63420796",
"0.6325... | 0.6577261 | 9 |
Delete contact notes (bulk) | def delete_contact_notes_bulk_with_http_info(id, delete_contact_notes_bulk_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_contact_notes_bulk ...'
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.delete_contact_notes_bulk"
end
# verify the required parameter 'delete_contact_notes_bulk_input_object' is set
if @api_client.config.client_side_validation && delete_contact_notes_bulk_input_object.nil?
fail ArgumentError, "Missing the required parameter 'delete_contact_notes_bulk_input_object' when calling TextMagicApi.delete_contact_notes_bulk"
end
# resource path
local_var_path = '/api/v2/contacts/{id}/notes/delete'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(delete_contact_notes_bulk_input_object)
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_contact_notes_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bulk_delete\n contact_ids = []\n contact_params[:contact_ids].each do |cid|\n contact_ids << BSON::ObjectId.from_string(cid)\n end\n\n deleted = Contact.where(uid: current_user.id).in(:_id => contact_ids).delete_all\n\n Cashier.expire \"contacts-filter-#{current_user.id}\"\n notice = \"#... | [
"0.7484931",
"0.73375183",
"0.6903384",
"0.68103325",
"0.67880315",
"0.6765838",
"0.66813135",
"0.66810495",
"0.66221416",
"0.6580117",
"0.6551172",
"0.65386856",
"0.6507523",
"0.64906144",
"0.6452784",
"0.64450043",
"0.6395498",
"0.6365539",
"0.6365539",
"0.6348054",
"0.6329... | 0.6344198 | 20 |
Delete contacts by IDs (bulk) | def delete_contacts_by_ids(delete_contacts_by_ids_input_object, opts = {})
delete_contacts_by_ids_with_http_info(delete_contacts_by_ids_input_object, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bulk_delete\n contact_ids = []\n contact_params[:contact_ids].each do |cid|\n contact_ids << BSON::ObjectId.from_string(cid)\n end\n\n deleted = Contact.where(uid: current_user.id).in(:_id => contact_ids).delete_all\n\n Cashier.expire \"contacts-filter-#{current_user.id}\"\n notice = \"#... | [
"0.83145213",
"0.7543194",
"0.7434393",
"0.7315956",
"0.72902066",
"0.720128",
"0.6985448",
"0.6937316",
"0.6882506",
"0.6762764",
"0.6750654",
"0.6631824",
"0.6629747",
"0.65979624",
"0.6553436",
"0.6516271",
"0.6516271",
"0.6505474",
"0.65053236",
"0.6504598",
"0.6475257",
... | 0.6349563 | 29 |
Delete contacts by IDs (bulk) | def delete_contacts_by_ids_with_http_info(delete_contacts_by_ids_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_contacts_by_ids ...'
end
# verify the required parameter 'delete_contacts_by_ids_input_object' is set
if @api_client.config.client_side_validation && delete_contacts_by_ids_input_object.nil?
fail ArgumentError, "Missing the required parameter 'delete_contacts_by_ids_input_object' when calling TextMagicApi.delete_contacts_by_ids"
end
# resource path
local_var_path = '/api/v2/contacts/delete'
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(delete_contacts_by_ids_input_object)
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_contacts_by_ids\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bulk_delete\n contact_ids = []\n contact_params[:contact_ids].each do |cid|\n contact_ids << BSON::ObjectId.from_string(cid)\n end\n\n deleted = Contact.where(uid: current_user.id).in(:_id => contact_ids).delete_all\n\n Cashier.expire \"contacts-filter-#{current_user.id}\"\n notice = \"#... | [
"0.83145213",
"0.7543194",
"0.7434393",
"0.7315956",
"0.72902066",
"0.720128",
"0.6985448",
"0.6937316",
"0.6882506",
"0.6762764",
"0.6750654",
"0.6631824",
"0.6629747",
"0.65979624",
"0.6553436",
"0.6516271",
"0.6516271",
"0.65053236",
"0.6504598",
"0.6475257",
"0.6439793",
... | 0.6505474 | 17 |
Unassign contacts from a list > When you remove contacts from a specific list, they will be deleted permanently, unless they are first saved in another list. | def delete_contacts_from_list(delete_contacs_from_list_object, id, opts = {})
delete_contacts_from_list_with_http_info(delete_contacs_from_list_object, id, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def remove_contacts\n selected_contact_ids = params[:selected_contact_ids]\n\n Contact.where(:id => selected_contact_ids).destroy_all\n contacts_list\n end",
"def unlink(contact)\n contact.accounts.delete(self)\n contact.lists = contact.lists.reject{|l|l.account == self}\n if contact.owner ==... | [
"0.7281931",
"0.7024033",
"0.70169663",
"0.69487756",
"0.68279725",
"0.6776112",
"0.6768686",
"0.66974396",
"0.66974396",
"0.66001254",
"0.6578094",
"0.64502007",
"0.6354436",
"0.62946624",
"0.6294173",
"0.6275456",
"0.62626404",
"0.624619",
"0.6183921",
"0.6172652",
"0.61617... | 0.0 | -1 |
Unassign contacts from a list > When you remove contacts from a specific list, they will be deleted permanently, unless they are first saved in another list. | def delete_contacts_from_list_with_http_info(delete_contacs_from_list_object, id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_contacts_from_list ...'
end
# verify the required parameter 'delete_contacs_from_list_object' is set
if @api_client.config.client_side_validation && delete_contacs_from_list_object.nil?
fail ArgumentError, "Missing the required parameter 'delete_contacs_from_list_object' when calling TextMagicApi.delete_contacts_from_list"
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.delete_contacts_from_list"
end
# resource path
local_var_path = '/api/v2/lists/{id}/contacts'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(delete_contacs_from_list_object)
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_contacts_from_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def remove_contacts\n selected_contact_ids = params[:selected_contact_ids]\n\n Contact.where(:id => selected_contact_ids).destroy_all\n contacts_list\n end",
"def unlink(contact)\n contact.accounts.delete(self)\n contact.lists = contact.lists.reject{|l|l.account == self}\n if contact.owner ==... | [
"0.7281255",
"0.7023329",
"0.7016894",
"0.6948573",
"0.682806",
"0.6774591",
"0.67676324",
"0.6697299",
"0.6697299",
"0.65992546",
"0.657752",
"0.64500314",
"0.63555515",
"0.6294576",
"0.6292874",
"0.6275926",
"0.62633055",
"0.62454975",
"0.61832315",
"0.6170976",
"0.6162274"... | 0.0 | -1 |
Delete a custom field > When a custom field is deleted, all the information that was added to contacts under this custom field will also be lost. | def delete_custom_field(id, opts = {})
delete_custom_field_with_http_info(id, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def remove_custom_field(key)\n self.contact_fields.delete(key)\n end",
"def delete_field!(field_name); end",
"def delete_custom_field(custom_field_id)\n url = \"#{@goseg_base_url}/custom_fields/#{custom_field_id}\"\n puts url\n return RestClient.delete(url){|response, request, result| response ... | [
"0.8034369",
"0.7723003",
"0.76288205",
"0.75395155",
"0.7470972",
"0.7425716",
"0.7417497",
"0.7376768",
"0.707374",
"0.70304775",
"0.6857386",
"0.678121",
"0.67633337",
"0.67633337",
"0.67037976",
"0.66638595",
"0.6626759",
"0.6616945",
"0.66100144",
"0.6561806",
"0.6540033... | 0.71499735 | 8 |
Delete a custom field > When a custom field is deleted, all the information that was added to contacts under this custom field will also be lost. | def delete_custom_field_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_custom_field ...'
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.delete_custom_field"
end
# resource path
local_var_path = '/api/v2/customfields/{id}'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_custom_field\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def remove_custom_field(key)\n self.contact_fields.delete(key)\n end",
"def delete_field!(field_name); end",
"def delete_custom_field(custom_field_id)\n url = \"#{@goseg_base_url}/custom_fields/#{custom_field_id}\"\n puts url\n return RestClient.delete(url){|response, request, result| response ... | [
"0.8034263",
"0.77233356",
"0.7627814",
"0.7539521",
"0.74706876",
"0.7426154",
"0.7417379",
"0.7377374",
"0.71507543",
"0.7074318",
"0.703069",
"0.68582493",
"0.67813915",
"0.676367",
"0.676367",
"0.67047006",
"0.6663276",
"0.66257256",
"0.66183054",
"0.6610197",
"0.6563345"... | 0.6231901 | 47 |
Cancel a dedicated number subscription | def delete_dedicated_number(id, opts = {})
delete_dedicated_number_with_http_info(id, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cancel!\n self.type = :unsubscribed\n reply_if_needed!\n end",
"def cancel \n unless self.status == 'canceled'\n ev = Event.create(\n :event_type => :subscription,\n :event_subtype => :cancel,\n :user => self.user,\n :detail_i1 ... | [
"0.7385267",
"0.7353109",
"0.7344213",
"0.7240424",
"0.72164625",
"0.68802935",
"0.68140745",
"0.67896914",
"0.6717297",
"0.6715519",
"0.66929525",
"0.6667092",
"0.6623643",
"0.65720683",
"0.653487",
"0.65228814",
"0.6484518",
"0.6478967",
"0.6469925",
"0.6461898",
"0.6394107... | 0.0 | -1 |
Cancel a dedicated number subscription | def delete_dedicated_number_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_dedicated_number ...'
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.delete_dedicated_number"
end
# resource path
local_var_path = '/api/v2/numbers/{id}'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_dedicated_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cancel!\n self.type = :unsubscribed\n reply_if_needed!\n end",
"def cancel \n unless self.status == 'canceled'\n ev = Event.create(\n :event_type => :subscription,\n :event_subtype => :cancel,\n :user => self.user,\n :detail_i1 ... | [
"0.7385267",
"0.7353109",
"0.7344213",
"0.7240424",
"0.72164625",
"0.68802935",
"0.68140745",
"0.67896914",
"0.6717297",
"0.6715519",
"0.66929525",
"0.6667092",
"0.6623643",
"0.65720683",
"0.653487",
"0.65228814",
"0.6484518",
"0.6478967",
"0.6469925",
"0.6461898",
"0.6394107... | 0.0 | -1 |
Delete a single inbound message > Note: deleted inbound messages will disappear from TextMagic Online, chats, and any other place they are referenced. So, be careful! | def delete_inbound_message(id, opts = {})
delete_inbound_message_with_http_info(id, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete_message(data); end",
"def delete_message(data); end",
"def destroy\n # delete a specific message\n end",
"def delete\n @client.post('/api/del_msg', id: get_attribute(:name))\n end",
"def delete_message(id)\n record \"/msg/delete/#{id}\"\n end",
"def destroy\n # del... | [
"0.72164226",
"0.72164226",
"0.7114681",
"0.71113086",
"0.71035475",
"0.701158",
"0.695169",
"0.69171304",
"0.69104207",
"0.68352383",
"0.67603344",
"0.67556274",
"0.66855806",
"0.6685373",
"0.6675639",
"0.6671604",
"0.6665666",
"0.66653484",
"0.6647331",
"0.66120946",
"0.661... | 0.69356817 | 7 |
Delete a single inbound message > Note: deleted inbound messages will disappear from TextMagic Online, chats, and any other place they are referenced. So, be careful! | def delete_inbound_message_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_inbound_message ...'
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.delete_inbound_message"
end
# resource path
local_var_path = '/api/v2/replies/{id}'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_inbound_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete_message(data); end",
"def delete_message(data); end",
"def destroy\n # delete a specific message\n end",
"def delete\n @client.post('/api/del_msg', id: get_attribute(:name))\n end",
"def delete_message(id)\n record \"/msg/delete/#{id}\"\n end",
"def destroy\n # del... | [
"0.7213825",
"0.7213825",
"0.7112093",
"0.71086544",
"0.7101294",
"0.7008888",
"0.6949072",
"0.6938292",
"0.691415",
"0.69075954",
"0.6834088",
"0.67587656",
"0.67538995",
"0.6685524",
"0.66843677",
"0.66757566",
"0.6670965",
"0.6664153",
"0.6663774",
"0.6645566",
"0.6610335"... | 0.61398184 | 61 |
Delete inbound messages (bulk) > Note: deleted inbound messages will disappear from TextMagic Online, chats, and any other place they are referenced. So, be careful! | def delete_inbound_messages_bulk(delete_inbound_messages_bulk_input_object, opts = {})
delete_inbound_messages_bulk_with_http_info(delete_inbound_messages_bulk_input_object, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def remove_records(messages)\n clause = deleted_query(messages)\n\n clause.delete_all\n end",
"def bulk_delete(token, channel_id, messages = [])\n request(\n __method__,\n :post,\n \"#{api_base}/channels/#{channel_id}/messages/bulk_delete\",\n { messages: messages }.to_j... | [
"0.66941744",
"0.6583927",
"0.65680134",
"0.64882505",
"0.6251324",
"0.62278736",
"0.61478025",
"0.6146453",
"0.6146453",
"0.60912555",
"0.6080217",
"0.60649204",
"0.60544217",
"0.6026531",
"0.5987913",
"0.598703",
"0.5975563",
"0.59664214",
"0.5927197",
"0.5922887",
"0.59185... | 0.7034576 | 0 |
Delete inbound messages (bulk) > Note: deleted inbound messages will disappear from TextMagic Online, chats, and any other place they are referenced. So, be careful! | def delete_inbound_messages_bulk_with_http_info(delete_inbound_messages_bulk_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_inbound_messages_bulk ...'
end
# verify the required parameter 'delete_inbound_messages_bulk_input_object' is set
if @api_client.config.client_side_validation && delete_inbound_messages_bulk_input_object.nil?
fail ArgumentError, "Missing the required parameter 'delete_inbound_messages_bulk_input_object' when calling TextMagicApi.delete_inbound_messages_bulk"
end
# resource path
local_var_path = '/api/v2/replies/delete'
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(delete_inbound_messages_bulk_input_object)
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_inbound_messages_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete_inbound_messages_bulk(delete_inbound_messages_bulk_input_object, opts = {})\n delete_inbound_messages_bulk_with_http_info(delete_inbound_messages_bulk_input_object, opts)\n nil\n end",
"def remove_records(messages)\n clause = deleted_query(messages)\n\n clause.delete_all\n ... | [
"0.70348704",
"0.66947144",
"0.6584246",
"0.6568753",
"0.6250992",
"0.6228999",
"0.61486506",
"0.61466885",
"0.61466885",
"0.6091215",
"0.6081018",
"0.6067045",
"0.6054563",
"0.6026035",
"0.59890026",
"0.5987692",
"0.59758353",
"0.5967334",
"0.59279513",
"0.59233737",
"0.5919... | 0.64880437 | 4 |
Delete an avatar for a list Delete an avatar for a list | def delete_list_avatar(id, opts = {})
delete_list_avatar_with_http_info(id, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def deleteavatar\n savatar = current_user.avatars.find(params[:id])\n if savatar.selected_avatar\n current_user.avatars.first.update_attribute('selected_avatar', true)\n end\n savatar.delete\n redirect_to avatar_url\n end",
"def delete_avatar\n avatar = $bucket.object(\"uploads/avatars/#{... | [
"0.767539",
"0.7369567",
"0.73575217",
"0.71900165",
"0.7163765",
"0.7139786",
"0.7136232",
"0.7132659",
"0.7093137",
"0.70631087",
"0.6950722",
"0.6942712",
"0.6908994",
"0.6854001",
"0.6830856",
"0.6755485",
"0.6711394",
"0.6669549",
"0.66570246",
"0.6615851",
"0.66123503",... | 0.64317507 | 28 |
Delete an avatar for a list Delete an avatar for a list | def delete_list_avatar_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_list_avatar ...'
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.delete_list_avatar"
end
# resource path
local_var_path = '/api/v2/lists/{id}/avatar'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_list_avatar\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def deleteavatar\n savatar = current_user.avatars.find(params[:id])\n if savatar.selected_avatar\n current_user.avatars.first.update_attribute('selected_avatar', true)\n end\n savatar.delete\n redirect_to avatar_url\n end",
"def delete_avatar\n avatar = $bucket.object(\"uploads/avatars/#{... | [
"0.767539",
"0.7369567",
"0.73575217",
"0.71900165",
"0.7163765",
"0.7139786",
"0.7136232",
"0.7132659",
"0.7093137",
"0.70631087",
"0.6950722",
"0.6942712",
"0.6908994",
"0.6854001",
"0.6830856",
"0.6755485",
"0.6711394",
"0.6669549",
"0.66570246",
"0.6615851",
"0.66123503",... | 0.62955225 | 40 |
Delete contacts from a list (bulk) Delete contacts from a list (bulk) | def delete_list_contacts_bulk(delete_list_contacts_bulk_input_object, id, opts = {})
delete_list_contacts_bulk_with_http_info(delete_list_contacts_bulk_input_object, id, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bulk_delete\n contact_ids = []\n contact_params[:contact_ids].each do |cid|\n contact_ids << BSON::ObjectId.from_string(cid)\n end\n\n deleted = Contact.where(uid: current_user.id).in(:_id => contact_ids).delete_all\n\n Cashier.expire \"contacts-filter-#{current_user.id}\"\n notice = \"#... | [
"0.8149577",
"0.7695437",
"0.7529703",
"0.7180379",
"0.6786322",
"0.6783778",
"0.67436004",
"0.6661453",
"0.6643395",
"0.6639516",
"0.65791005",
"0.6570664",
"0.6545878",
"0.6525597",
"0.6522661",
"0.64957625",
"0.6493822",
"0.6493822",
"0.6479349",
"0.6461772",
"0.6459648",
... | 0.6864453 | 4 |
Delete contacts from a list (bulk) Delete contacts from a list (bulk) | def delete_list_contacts_bulk_with_http_info(delete_list_contacts_bulk_input_object, id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_list_contacts_bulk ...'
end
# verify the required parameter 'delete_list_contacts_bulk_input_object' is set
if @api_client.config.client_side_validation && delete_list_contacts_bulk_input_object.nil?
fail ArgumentError, "Missing the required parameter 'delete_list_contacts_bulk_input_object' when calling TextMagicApi.delete_list_contacts_bulk"
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.delete_list_contacts_bulk"
end
# resource path
local_var_path = '/api/v2/lists/{id}/contacts/delete'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(delete_list_contacts_bulk_input_object)
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_list_contacts_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bulk_delete\n contact_ids = []\n contact_params[:contact_ids].each do |cid|\n contact_ids << BSON::ObjectId.from_string(cid)\n end\n\n deleted = Contact.where(uid: current_user.id).in(:_id => contact_ids).delete_all\n\n Cashier.expire \"contacts-filter-#{current_user.id}\"\n notice = \"#... | [
"0.8148982",
"0.76954347",
"0.75285226",
"0.71801597",
"0.68643105",
"0.67853844",
"0.67847645",
"0.67432636",
"0.66624165",
"0.66437817",
"0.66373986",
"0.65704495",
"0.6545306",
"0.6526038",
"0.65225387",
"0.6496203",
"0.64937747",
"0.64937747",
"0.64791644",
"0.6462469",
"... | 0.6580139 | 11 |
Delete a session Delete a message session, together with all nested messages. > You will not be refunded for any deleted sent sessions. | def delete_message_session(id, opts = {})
delete_message_session_with_http_info(id, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete\n if @session\n @session.destroy\n @session = nil\n end\n end",
"def deleteSession(sessionID)\n call :deleteSession, :sessionID => sessionID\n end",
"def delete_session(session)\n return Seasar::Rack::Session.delete_session(@env, session)\n end",
"def delet... | [
"0.74444073",
"0.74318945",
"0.7071827",
"0.7012892",
"0.7002591",
"0.67169535",
"0.6570319",
"0.64925593",
"0.6473308",
"0.64584374",
"0.642549",
"0.638478",
"0.6336918",
"0.632815",
"0.6297681",
"0.6258142",
"0.62414724",
"0.6240723",
"0.6182582",
"0.6157822",
"0.61085105",... | 0.6790929 | 5 |
Delete a session Delete a message session, together with all nested messages. > You will not be refunded for any deleted sent sessions. | def delete_message_session_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_message_session ...'
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.delete_message_session"
end
# resource path
local_var_path = '/api/v2/sessions/{id}'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_message_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete\n if @session\n @session.destroy\n @session = nil\n end\n end",
"def deleteSession(sessionID)\n call :deleteSession, :sessionID => sessionID\n end",
"def delete_session(session)\n return Seasar::Rack::Session.delete_session(@env, session)\n end",
"def delet... | [
"0.7444781",
"0.7431682",
"0.707179",
"0.70134366",
"0.7002853",
"0.6792285",
"0.6717141",
"0.6569623",
"0.6493788",
"0.6474881",
"0.64588225",
"0.64257556",
"0.6384705",
"0.6336063",
"0.6328722",
"0.62983537",
"0.6258974",
"0.6240992",
"0.6240114",
"0.61833966",
"0.615785",
... | 0.6046763 | 23 |
Delete sessions (bulk) Delete message sessions, together with all nested messages, by given ID(s) or delete all message sessions. | def delete_message_sessions_bulk(delete_message_sessions_bulk_input_object, opts = {})
delete_message_sessions_bulk_with_http_info(delete_message_sessions_bulk_input_object, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete_sessions(node)\n @sessions.delete_all(node)\n end",
"def destroy\n self.class.delete_all(\"session_id='#{session_id}'\")\n end",
"def bulk_delete(token, channel_id, messages = [])\n request(\n __method__,\n :post,\n \"#{api_base}/channels/#{channel_id}/messages/bulk... | [
"0.6838702",
"0.64679193",
"0.6352739",
"0.63237774",
"0.61995465",
"0.617691",
"0.61427134",
"0.60574627",
"0.58452505",
"0.5843957",
"0.5796514",
"0.5760817",
"0.57431704",
"0.57395124",
"0.57123387",
"0.56627977",
"0.5647476",
"0.5637547",
"0.5626573",
"0.56196636",
"0.557... | 0.75040466 | 0 |
Delete sessions (bulk) Delete message sessions, together with all nested messages, by given ID(s) or delete all message sessions. | def delete_message_sessions_bulk_with_http_info(delete_message_sessions_bulk_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_message_sessions_bulk ...'
end
# verify the required parameter 'delete_message_sessions_bulk_input_object' is set
if @api_client.config.client_side_validation && delete_message_sessions_bulk_input_object.nil?
fail ArgumentError, "Missing the required parameter 'delete_message_sessions_bulk_input_object' when calling TextMagicApi.delete_message_sessions_bulk"
end
# resource path
local_var_path = '/api/v2/sessions/delete'
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(delete_message_sessions_bulk_input_object)
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_message_sessions_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete_message_sessions_bulk(delete_message_sessions_bulk_input_object, opts = {})\n delete_message_sessions_bulk_with_http_info(delete_message_sessions_bulk_input_object, opts)\n nil\n end",
"def delete_sessions(node)\n @sessions.delete_all(node)\n end",
"def destroy\n self.class... | [
"0.7504989",
"0.6838497",
"0.64673996",
"0.63540787",
"0.61993444",
"0.61765355",
"0.614297",
"0.6058161",
"0.58450407",
"0.58443457",
"0.5796556",
"0.57611674",
"0.5743706",
"0.5740178",
"0.57118064",
"0.5663422",
"0.56474566",
"0.5637502",
"0.5627372",
"0.5619376",
"0.55770... | 0.632514 | 4 |
Delete message Delete a single message. | def delete_outbound_message(id, opts = {})
delete_outbound_message_with_http_info(id, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def destroy\n # delete a specific message\n end",
"def delete\n @service.delete_message(self)\n end",
"def delete\n @client.post('/api/del_msg', id: get_attribute(:name))\n end",
"def delete_message(message_id)\n RestClient.delete(\"#{@url}/messages/#{message_id}\")\n ... | [
"0.8376568",
"0.8295324",
"0.81799394",
"0.81772166",
"0.8149653",
"0.81293595",
"0.80896026",
"0.8089419",
"0.8047169",
"0.8002406",
"0.7992407",
"0.79444134",
"0.79379225",
"0.7922022",
"0.79100704",
"0.78915614",
"0.7847194",
"0.78132474",
"0.7792921",
"0.77821344",
"0.776... | 0.0 | -1 |
Delete message Delete a single message. | def delete_outbound_message_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_outbound_message ...'
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.delete_outbound_message"
end
# resource path
local_var_path = '/api/v2/messages/{id}'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_outbound_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def destroy\n # delete a specific message\n end",
"def delete\n @service.delete_message(self)\n end",
"def delete\n @client.post('/api/del_msg', id: get_attribute(:name))\n end",
"def delete_message(message_id)\n RestClient.delete(\"#{@url}/messages/#{message_id}\")\n ... | [
"0.8376568",
"0.8295324",
"0.81799394",
"0.81772166",
"0.8149653",
"0.81293595",
"0.80896026",
"0.8089419",
"0.8047169",
"0.8002406",
"0.7992407",
"0.79444134",
"0.79379225",
"0.7922022",
"0.79100704",
"0.78915614",
"0.7847194",
"0.78132474",
"0.7792921",
"0.77821344",
"0.776... | 0.0 | -1 |
Delete messages (bulk) Delete outbound messages by the given ID(s) or delete all outbound messages. | def delete_outbound_messages_bulk(delete_outbound_messages_bulk_input_object, opts = {})
delete_outbound_messages_bulk_with_http_info(delete_outbound_messages_bulk_input_object, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bulk_delete(token, channel_id, messages = [])\n request(\n __method__,\n :post,\n \"#{api_base}/channels/#{channel_id}/messages/bulk_delete\",\n { messages: messages }.to_json,\n Authorization: token,\n content_type: :json\n )\n end",
"def delete_all_outbound_messages(opt... | [
"0.71329904",
"0.6899315",
"0.6830274",
"0.6742825",
"0.66907406",
"0.643246",
"0.6380284",
"0.6350423",
"0.63136905",
"0.62707764",
"0.6229291",
"0.6229291",
"0.6206743",
"0.6097144",
"0.60494906",
"0.60108256",
"0.5995085",
"0.59306824",
"0.58981764",
"0.5895837",
"0.586821... | 0.74304473 | 0 |
Delete messages (bulk) Delete outbound messages by the given ID(s) or delete all outbound messages. | def delete_outbound_messages_bulk_with_http_info(delete_outbound_messages_bulk_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_outbound_messages_bulk ...'
end
# verify the required parameter 'delete_outbound_messages_bulk_input_object' is set
if @api_client.config.client_side_validation && delete_outbound_messages_bulk_input_object.nil?
fail ArgumentError, "Missing the required parameter 'delete_outbound_messages_bulk_input_object' when calling TextMagicApi.delete_outbound_messages_bulk"
end
# resource path
local_var_path = '/api/v2/messages/delete'
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(delete_outbound_messages_bulk_input_object)
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_outbound_messages_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete_outbound_messages_bulk(delete_outbound_messages_bulk_input_object, opts = {})\n delete_outbound_messages_bulk_with_http_info(delete_outbound_messages_bulk_input_object, opts)\n nil\n end",
"def bulk_delete(token, channel_id, messages = [])\n request(\n __method__,\n :post,\n ... | [
"0.74314034",
"0.71339273",
"0.6900184",
"0.6831897",
"0.6741752",
"0.669058",
"0.6432408",
"0.6380817",
"0.63511616",
"0.6312237",
"0.6270339",
"0.62279993",
"0.62279993",
"0.609646",
"0.60493505",
"0.60115945",
"0.59933215",
"0.593124",
"0.5899108",
"0.58938843",
"0.5867446... | 0.6208147 | 13 |
Delete a single scheduled message | def delete_scheduled_message(id, opts = {})
delete_scheduled_message_with_http_info(id, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def chat_deleteScheduledMessage(options = {})\n raise ArgumentError, 'Required arguments :channel missing' if options[:channel].nil?\n raise ArgumentError, 'Required arguments :scheduled_message_id missing' if options[:scheduled_message_id].nil?\n options = options.merge(channel: c... | [
"0.7679087",
"0.7570101",
"0.75670654",
"0.7449232",
"0.740214",
"0.7350169",
"0.734122",
"0.728436",
"0.71497995",
"0.7094352",
"0.7094352",
"0.70182204",
"0.6958938",
"0.6952594",
"0.69192743",
"0.690548",
"0.6888484",
"0.68469214",
"0.68356603",
"0.6833869",
"0.6827272",
... | 0.72742105 | 8 |
Delete a single scheduled message | def delete_scheduled_message_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_scheduled_message ...'
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.delete_scheduled_message"
end
# resource path
local_var_path = '/api/v2/schedules/{id}'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_scheduled_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def chat_deleteScheduledMessage(options = {})\n raise ArgumentError, 'Required arguments :channel missing' if options[:channel].nil?\n raise ArgumentError, 'Required arguments :scheduled_message_id missing' if options[:scheduled_message_id].nil?\n options = options.merge(channel: c... | [
"0.7679087",
"0.7570101",
"0.75670654",
"0.7449232",
"0.740214",
"0.7350169",
"0.734122",
"0.728436",
"0.72742105",
"0.71497995",
"0.7094352",
"0.7094352",
"0.70182204",
"0.6958938",
"0.6952594",
"0.69192743",
"0.690548",
"0.6888484",
"0.68469214",
"0.68356603",
"0.6833869",
... | 0.61991554 | 78 |
Delete scheduled messages (bulk) | def delete_scheduled_messages_bulk(delete_scheduled_messages_bulk_input_object, opts = {})
delete_scheduled_messages_bulk_with_http_info(delete_scheduled_messages_bulk_input_object, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bulk_delete(ids, strict = false, reason = nil)\n min_snowflake = IDObject.synthesise(Time.now - TWO_WEEKS)\n\n ids.reject! do |e|\n next unless e < min_snowflake\n\n message = \"Attempted to bulk_delete message #{e} which is too old (min = #{min_snowflake})\"\n raise ArgumentErro... | [
"0.7331365",
"0.70792276",
"0.66861796",
"0.6496627",
"0.64059836",
"0.64051175",
"0.6381359",
"0.6247385",
"0.6233284",
"0.6095817",
"0.6030654",
"0.60159093",
"0.60148543",
"0.5980826",
"0.5954439",
"0.5942293",
"0.5940093",
"0.5931651",
"0.5884857",
"0.5872371",
"0.5863764... | 0.7173076 | 1 |
Delete scheduled messages (bulk) | def delete_scheduled_messages_bulk_with_http_info(delete_scheduled_messages_bulk_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_scheduled_messages_bulk ...'
end
# verify the required parameter 'delete_scheduled_messages_bulk_input_object' is set
if @api_client.config.client_side_validation && delete_scheduled_messages_bulk_input_object.nil?
fail ArgumentError, "Missing the required parameter 'delete_scheduled_messages_bulk_input_object' when calling TextMagicApi.delete_scheduled_messages_bulk"
end
# resource path
local_var_path = '/api/v2/schedules/delete'
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(delete_scheduled_messages_bulk_input_object)
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_scheduled_messages_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bulk_delete(ids, strict = false, reason = nil)\n min_snowflake = IDObject.synthesise(Time.now - TWO_WEEKS)\n\n ids.reject! do |e|\n next unless e < min_snowflake\n\n message = \"Attempted to bulk_delete message #{e} which is too old (min = #{min_snowflake})\"\n raise ArgumentErro... | [
"0.7331322",
"0.7173037",
"0.7079228",
"0.66861844",
"0.6496603",
"0.64058983",
"0.64050716",
"0.6247358",
"0.62332326",
"0.60957885",
"0.60306233",
"0.60158885",
"0.60148317",
"0.59807867",
"0.5954404",
"0.5942219",
"0.5940051",
"0.5931633",
"0.5884812",
"0.5872346",
"0.5863... | 0.63813114 | 7 |
Delete a Sender ID | def delete_sender_id(id, opts = {})
delete_sender_id_with_http_info(id, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete(sender_id)\n message = Client.delete(\"#{path}/#{sender_id}\").with_indifferent_access\n if message[:success] == \"We've successfully deleted that user.\"\n new(\n sender_id,\n deleted: true\n )\n end\n end",
"def delete id=nil\n i... | [
"0.77422446",
"0.7151394",
"0.7145937",
"0.7067087",
"0.6908438",
"0.66843796",
"0.66843796",
"0.6657835",
"0.6657835",
"0.6581109",
"0.65774596",
"0.65215737",
"0.6505531",
"0.65015024",
"0.64923525",
"0.6455297",
"0.6455297",
"0.6444471",
"0.6433223",
"0.6429572",
"0.642418... | 0.68545955 | 5 |
Delete a Sender ID | def delete_sender_id_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_sender_id ...'
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.delete_sender_id"
end
# resource path
local_var_path = '/api/v2/senderids/{id}'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_sender_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete(sender_id)\n message = Client.delete(\"#{path}/#{sender_id}\").with_indifferent_access\n if message[:success] == \"We've successfully deleted that user.\"\n new(\n sender_id,\n deleted: true\n )\n end\n end",
"def delete id=nil\n i... | [
"0.77422446",
"0.7151394",
"0.7145937",
"0.7067087",
"0.6908438",
"0.68545955",
"0.66843796",
"0.66843796",
"0.6657835",
"0.6657835",
"0.6581109",
"0.65774596",
"0.65215737",
"0.6505531",
"0.65015024",
"0.64923525",
"0.6455297",
"0.6455297",
"0.6444471",
"0.6433223",
"0.64295... | 0.633111 | 30 |
Delete templates (bulk) Delete templates by given IDs or delete all templates. | def delete_templates_bulk(delete_templates_bulk_input_object, opts = {})
delete_templates_bulk_with_http_info(delete_templates_bulk_input_object, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bulk_delete_accounts(ids)\n delete('accounts/bulk_delete', ids: ids)\n end",
"def delete(ids, params = {}, body = {})\n delete_docs = ids.map { |id| { delete: { _index: @index, _id: id} } }\n @client.bulk({ body: delete_docs }.merge(params.merge(@params)))\n end",
"def destro... | [
"0.6926812",
"0.6910814",
"0.6800425",
"0.6689081",
"0.65974945",
"0.65963066",
"0.65725255",
"0.6526244",
"0.65163267",
"0.65155554",
"0.65016264",
"0.65016264",
"0.63320285",
"0.6289656",
"0.628179",
"0.6281725",
"0.6276432",
"0.62577635",
"0.62452465",
"0.62219954",
"0.606... | 0.72622585 | 0 |
Delete templates (bulk) Delete templates by given IDs or delete all templates. | def delete_templates_bulk_with_http_info(delete_templates_bulk_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.delete_templates_bulk ...'
end
# verify the required parameter 'delete_templates_bulk_input_object' is set
if @api_client.config.client_side_validation && delete_templates_bulk_input_object.nil?
fail ArgumentError, "Missing the required parameter 'delete_templates_bulk_input_object' when calling TextMagicApi.delete_templates_bulk"
end
# resource path
local_var_path = '/api/v2/templates/delete'
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(delete_templates_bulk_input_object)
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#delete_templates_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete_templates_bulk(delete_templates_bulk_input_object, opts = {})\n delete_templates_bulk_with_http_info(delete_templates_bulk_input_object, opts)\n nil\n end",
"def bulk_delete_accounts(ids)\n delete('accounts/bulk_delete', ids: ids)\n end",
"def delete(ids, params = {}, body =... | [
"0.7262992",
"0.69258535",
"0.69106555",
"0.679811",
"0.6689393",
"0.6598252",
"0.65964204",
"0.65705633",
"0.6524634",
"0.6515638",
"0.65149313",
"0.6500891",
"0.6500891",
"0.6331931",
"0.62897736",
"0.6281618",
"0.62816167",
"0.62749416",
"0.6258844",
"0.6222005",
"0.606711... | 0.6246267 | 19 |
Carrier Lookup This API call allows you to retrieve additional information about a phone number: regionspecific phone number formatting, carrier, phone type (landline/mobile) and country information. > Numbers must be checked one by one. You cannot check multiple numbers in one request. | def do_carrier_lookup(phone, opts = {})
data, _status_code, _headers = do_carrier_lookup_with_http_info(phone, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def do_carrier_lookup_with_http_info(phone, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: TextMagicApi.do_carrier_lookup ...'\n end\n # verify the required parameter 'phone' is set\n if @api_client.config.client_side_validation && phone.nil?... | [
"0.6890886",
"0.62026906",
"0.57167596",
"0.5706473",
"0.5577838",
"0.554774",
"0.5422312",
"0.53937715",
"0.5387843",
"0.5288291",
"0.52244693",
"0.5206051",
"0.512936",
"0.51181895",
"0.509512",
"0.50580686",
"0.50487095",
"0.50235784",
"0.50160444",
"0.50071746",
"0.498116... | 0.75426066 | 0 |
Carrier Lookup This API call allows you to retrieve additional information about a phone number: regionspecific phone number formatting, carrier, phone type (landline/mobile) and country information. > Numbers must be checked one by one. You cannot check multiple numbers in one request. | def do_carrier_lookup_with_http_info(phone, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.do_carrier_lookup ...'
end
# verify the required parameter 'phone' is set
if @api_client.config.client_side_validation && phone.nil?
fail ArgumentError, "Missing the required parameter 'phone' when calling TextMagicApi.do_carrier_lookup"
end
# resource path
local_var_path = '/api/v2/lookups/{phone}'.sub('{' + 'phone' + '}', phone.to_s)
# query parameters
query_params = {}
query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'DoCarrierLookupResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#do_carrier_lookup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def do_carrier_lookup(phone, opts = {})\n data, _status_code, _headers = do_carrier_lookup_with_http_info(phone, opts)\n data\n end",
"def carrier_by_value(carrier)\n phone_carrier = case carrier.class.to_s\n when 'Symbol', 'String' then find_by_name(carrier)\n when ... | [
"0.75427043",
"0.6203129",
"0.5718015",
"0.57077825",
"0.5578845",
"0.55493623",
"0.542203",
"0.5393734",
"0.5387783",
"0.5290996",
"0.5225354",
"0.52071494",
"0.51307416",
"0.5119248",
"0.5096409",
"0.5057509",
"0.5048885",
"0.50257224",
"0.50185925",
"0.5004867",
"0.4982082... | 0.6891478 | 1 |
Get all bulk sessions | def get_all_bulk_sessions(opts = {})
data, _status_code, _headers = get_all_bulk_sessions_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def index\n @sessions = BatchConnect::Session.all\n @sessions.each(&:update_cache_completed!)\n\n set_app_groups\n set_my_quotas\n end",
"def get_bulk_session(id, opts = {})\n data, _status_code, _headers = get_bulk_session_with_http_info(id, opts)\n data\n end",
"def index\n @sess... | [
"0.71037036",
"0.70980245",
"0.67390233",
"0.67390233",
"0.67390233",
"0.67390233",
"0.6638946",
"0.66070527",
"0.6513164",
"0.651307",
"0.6425976",
"0.6408632",
"0.6401333",
"0.63974035",
"0.6397285",
"0.6392468",
"0.6386669",
"0.63560194",
"0.6342113",
"0.6339894",
"0.63308... | 0.7945818 | 0 |
Get all bulk sessions | def get_all_bulk_sessions_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_all_bulk_sessions ...'
end
# resource path
local_var_path = '/api/v2/bulks'
# query parameters
query_params = {}
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'GetAllBulkSessionsPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_all_bulk_sessions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_all_bulk_sessions(opts = {})\n data, _status_code, _headers = get_all_bulk_sessions_with_http_info(opts)\n data\n end",
"def index\n @sessions = BatchConnect::Session.all\n @sessions.each(&:update_cache_completed!)\n\n set_app_groups\n set_my_quotas\n end",
"def get_bulk_sessi... | [
"0.79463774",
"0.7106064",
"0.7099794",
"0.67406344",
"0.67406344",
"0.67406344",
"0.67406344",
"0.66412526",
"0.6518229",
"0.65118706",
"0.64283097",
"0.64110094",
"0.64039123",
"0.6399289",
"0.6399167",
"0.6394111",
"0.6390825",
"0.636012",
"0.6346024",
"0.6344264",
"0.6332... | 0.6606838 | 8 |
Get all inbound messages | def get_all_inbound_messages(opts = {})
data, _status_code, _headers = get_all_inbound_messages_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def search_inbound_messages(opts = {})\n data, _status_code, _headers = search_inbound_messages_with_http_info(opts)\n data\n end",
"def inbound_packets\n return @inbound_packets\n end",
"def all_messages\n Message.all\n end",
"def get_all_inbound( id )\n ... | [
"0.6839358",
"0.6810766",
"0.6779574",
"0.6589502",
"0.65823126",
"0.6566344",
"0.649827",
"0.64565575",
"0.64365935",
"0.6346277",
"0.6328142",
"0.6315244",
"0.6314417",
"0.6269487",
"0.61938155",
"0.6187493",
"0.61403936",
"0.61376774",
"0.6114949",
"0.60277575",
"0.598901"... | 0.78292507 | 0 |
Get all inbound messages | def get_all_inbound_messages_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_all_inbound_messages ...'
end
if @api_client.config.client_side_validation && opts[:'order_by'] && !['id', 'sender', 'receiver', 'messageTime', 'firstName', 'lastName'].include?(opts[:'order_by'])
fail ArgumentError, 'invalid value for "order_by", must be one of id, sender, receiver, messageTime, firstName, lastName'
end
if @api_client.config.client_side_validation && opts[:'direction'] && !['asc', 'desc'].include?(opts[:'direction'])
fail ArgumentError, 'invalid value for "direction", must be one of asc, desc'
end
# resource path
local_var_path = '/api/v2/replies'
# query parameters
query_params = {}
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
query_params[:'orderBy'] = opts[:'order_by'] if !opts[:'order_by'].nil?
query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'GetAllInboundMessagesPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_all_inbound_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_all_inbound_messages(opts = {})\n data, _status_code, _headers = get_all_inbound_messages_with_http_info(opts)\n data\n end",
"def search_inbound_messages(opts = {})\n data, _status_code, _headers = search_inbound_messages_with_http_info(opts)\n data\n end",
"def inbound_packe... | [
"0.78292507",
"0.6839358",
"0.6810766",
"0.6779574",
"0.6589502",
"0.65823126",
"0.6566344",
"0.649827",
"0.64565575",
"0.64365935",
"0.6346277",
"0.6328142",
"0.6315244",
"0.6314417",
"0.6269487",
"0.61938155",
"0.6187493",
"0.61403936",
"0.61376774",
"0.6114949",
"0.6027757... | 0.0 | -1 |
Get all sessions Get all message sending sessions. > This list contains all of your sessions, including those which were sent but not via API | def get_all_message_sessions(opts = {})
data, _status_code, _headers = get_all_message_sessions_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def send_sessions\n sessions = []\n counts = @session_counts\n @session_counts = Concurrent::Hash.new(0)\n counts.each do |min, count|\n sessions << {\n :startedAt => min,\n :sessionsStarted => count\n }\n end\n deliver(sessions)\n end",
"def get_a... | [
"0.6884248",
"0.68329364",
"0.66567403",
"0.65654814",
"0.6548994",
"0.6498872",
"0.64544713",
"0.6444168",
"0.6360334",
"0.63408923",
"0.6334549",
"0.6325946",
"0.6165163",
"0.6162269",
"0.6162269",
"0.6162269",
"0.6162269",
"0.61112165",
"0.60642236",
"0.6043136",
"0.602932... | 0.7555274 | 0 |
Get all sessions Get all message sending sessions. > This list contains all of your sessions, including those which were sent but not via API | def get_all_message_sessions_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_all_message_sessions ...'
end
# resource path
local_var_path = '/api/v2/sessions'
# query parameters
query_params = {}
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'GetAllMessageSessionsPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_all_message_sessions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_all_message_sessions(opts = {})\n data, _status_code, _headers = get_all_message_sessions_with_http_info(opts)\n data\n end",
"def send_sessions\n sessions = []\n counts = @session_counts\n @session_counts = Concurrent::Hash.new(0)\n counts.each do |min, count|\n s... | [
"0.7555284",
"0.6887015",
"0.6832881",
"0.6658804",
"0.65667546",
"0.6551032",
"0.65004504",
"0.6456425",
"0.6444879",
"0.6361113",
"0.6342626",
"0.6336183",
"0.6327942",
"0.6166869",
"0.61622363",
"0.61622363",
"0.61622363",
"0.61622363",
"0.6113699",
"0.6064751",
"0.6045435... | 0.5966594 | 28 |
Get all messages Get all user oubound messages. | def get_all_outbound_messages(opts = {})
data, _status_code, _headers = get_all_outbound_messages_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def all_messages\n Message.all\n end",
"def all_messages\r\n self.users_messaged + self.users_messaged_by\r\n end",
"def all_messages\r\n self.users_messaged + self.users_messaged_by\r\n end",
"def messages\n read_only()\n @conn.uid_search(['ALL']).map do |ui... | [
"0.79070336",
"0.78253895",
"0.78253895",
"0.766279",
"0.75812185",
"0.7481437",
"0.74150634",
"0.7295399",
"0.7205297",
"0.71924555",
"0.7112568",
"0.71058154",
"0.6964741",
"0.6929864",
"0.6924129",
"0.69165814",
"0.6890122",
"0.6887604",
"0.6876249",
"0.687164",
"0.6804545... | 0.0 | -1 |
Get all messages Get all user oubound messages. | def get_all_outbound_messages_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_all_outbound_messages ...'
end
# resource path
local_var_path = '/api/v2/messages'
# query parameters
query_params = {}
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
query_params[:'lastId'] = opts[:'last_id'] if !opts[:'last_id'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'GetAllOutboundMessagesPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_all_outbound_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def all_messages\n Message.all\n end",
"def all_messages\r\n self.users_messaged + self.users_messaged_by\r\n end",
"def all_messages\r\n self.users_messaged + self.users_messaged_by\r\n end",
"def messages\n read_only()\n @conn.uid_search(['ALL']).map do |ui... | [
"0.79070336",
"0.78253895",
"0.78253895",
"0.766279",
"0.75812185",
"0.7481437",
"0.74150634",
"0.7295399",
"0.7205297",
"0.71924555",
"0.7112568",
"0.71058154",
"0.6964741",
"0.6929864",
"0.6924129",
"0.69165814",
"0.6890122",
"0.6887604",
"0.6876249",
"0.687164",
"0.6804545... | 0.0 | -1 |
Get all scheduled messages | def get_all_scheduled_messages(opts = {})
data, _status_code, _headers = get_all_scheduled_messages_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def query_scheduled_messages(options = nil)\n require_relative 'scheduledmessage'\n @api.cursor(ScheduledMessage, get_base_api_path() + \"/scheduled\", options)\n end",
"def scheduled_emails\n @chat_history = EmailConversation.where(\"sender_id = #{current_user.id} AND sent_date is not null\"... | [
"0.7974559",
"0.72004664",
"0.69649136",
"0.68643063",
"0.68118256",
"0.64964426",
"0.64439696",
"0.6408527",
"0.63900423",
"0.6370424",
"0.6344352",
"0.63327044",
"0.62774664",
"0.62508166",
"0.6237968",
"0.6215552",
"0.6212369",
"0.6180034",
"0.61665285",
"0.6163921",
"0.61... | 0.7856595 | 1 |
Get all scheduled messages | def get_all_scheduled_messages_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_all_scheduled_messages ...'
end
if @api_client.config.client_side_validation && opts[:'status'] && !['a', 'c', 'x'].include?(opts[:'status'])
fail ArgumentError, 'invalid value for "status", must be one of a, c, x'
end
if @api_client.config.client_side_validation && opts[:'order_by'] && !['id', 'nextSend', 'lastSend'].include?(opts[:'order_by'])
fail ArgumentError, 'invalid value for "order_by", must be one of id, nextSend, lastSend'
end
if @api_client.config.client_side_validation && opts[:'direction'] && !['asc', 'desc'].include?(opts[:'direction'])
fail ArgumentError, 'invalid value for "direction", must be one of asc, desc'
end
# resource path
local_var_path = '/api/v2/schedules'
# query parameters
query_params = {}
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
query_params[:'orderBy'] = opts[:'order_by'] if !opts[:'order_by'].nil?
query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'GetAllScheduledMessagesPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_all_scheduled_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def query_scheduled_messages(options = nil)\n require_relative 'scheduledmessage'\n @api.cursor(ScheduledMessage, get_base_api_path() + \"/scheduled\", options)\n end",
"def get_all_scheduled_messages(opts = {})\n data, _status_code, _headers = get_all_scheduled_messages_with_http_info(opts... | [
"0.7974559",
"0.7856595",
"0.72004664",
"0.69649136",
"0.68643063",
"0.68118256",
"0.64964426",
"0.64439696",
"0.6408527",
"0.63900423",
"0.6370424",
"0.6344352",
"0.63327044",
"0.62774664",
"0.62508166",
"0.6237968",
"0.6215552",
"0.6212369",
"0.6180034",
"0.61665285",
"0.61... | 0.0 | -1 |
Find dedicated numbers available for purchase | def get_available_dedicated_numbers(country, opts = {})
data, _status_code, _headers = get_available_dedicated_numbers_with_http_info(country, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def purchased_numbers(opts = {})\n area_code = opts.delete(:area_code)\n @purchased_numbers ||= account.incoming_phone_numbers.list(opts)\n .map(&:phone_number)\n return @purchased_numbers unless area_code\n\n # Area code filter\n exclude = false\n if area_code[0] == '!'\n exclude = tru... | [
"0.64740926",
"0.6214734",
"0.60824686",
"0.5903154",
"0.58270186",
"0.5718917",
"0.5668211",
"0.5665795",
"0.5632387",
"0.5619046",
"0.5550192",
"0.55332804",
"0.5515085",
"0.54847187",
"0.54847187",
"0.54505074",
"0.5378664",
"0.53783214",
"0.536914",
"0.53657246",
"0.53587... | 0.5332587 | 26 |
Find dedicated numbers available for purchase | def get_available_dedicated_numbers_with_http_info(country, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_available_dedicated_numbers ...'
end
# verify the required parameter 'country' is set
if @api_client.config.client_side_validation && country.nil?
fail ArgumentError, "Missing the required parameter 'country' when calling TextMagicApi.get_available_dedicated_numbers"
end
# resource path
local_var_path = '/api/v2/numbers/available'
# query parameters
query_params = {}
query_params[:'country'] = country
query_params[:'prefix'] = opts[:'prefix'] if !opts[:'prefix'].nil?
query_params[:'tollfree'] = opts[:'tollfree'] if !opts[:'tollfree'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'GetAvailableDedicatedNumbersResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_available_dedicated_numbers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def purchased_numbers(opts = {})\n area_code = opts.delete(:area_code)\n @purchased_numbers ||= account.incoming_phone_numbers.list(opts)\n .map(&:phone_number)\n return @purchased_numbers unless area_code\n\n # Area code filter\n exclude = false\n if area_code[0] == '!'\n exclude = tru... | [
"0.64740926",
"0.6214734",
"0.60824686",
"0.5903154",
"0.58270186",
"0.5718917",
"0.5668211",
"0.5665795",
"0.5632387",
"0.5619046",
"0.5550192",
"0.55332804",
"0.5515085",
"0.54847187",
"0.54847187",
"0.54505074",
"0.5378664",
"0.53783214",
"0.536914",
"0.53657246",
"0.53587... | 0.0 | -1 |
Get available sender settings Get all available sender setting options which can be used in the \"from\" parameter of the POST messages method. | def get_available_sender_setting_options(opts = {})
data, _status_code, _headers = get_available_sender_setting_options_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_sender_settings(opts = {})\n data, _status_code, _headers = get_sender_settings_with_http_info(opts)\n data\n end",
"def get_available_sender_setting_options_with_http_info(opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: TextMagicApi.g... | [
"0.77697015",
"0.6768268",
"0.6696602",
"0.65582937",
"0.64379364",
"0.6304163",
"0.5910117",
"0.58284795",
"0.58234406",
"0.5804515",
"0.5737268",
"0.5735975",
"0.57001865",
"0.5683241",
"0.56085527",
"0.55753607",
"0.55678934",
"0.5563697",
"0.55529165",
"0.546765",
"0.5466... | 0.7362479 | 1 |
Get available sender settings Get all available sender setting options which can be used in the \"from\" parameter of the POST messages method. | def get_available_sender_setting_options_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_available_sender_setting_options ...'
end
# resource path
local_var_path = '/api/v2/sources'
# query parameters
query_params = {}
query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'GetAvailableSenderSettingOptionsResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_available_sender_setting_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_sender_settings(opts = {})\n data, _status_code, _headers = get_sender_settings_with_http_info(opts)\n data\n end",
"def get_available_sender_setting_options(opts = {})\n data, _status_code, _headers = get_available_sender_setting_options_with_http_info(opts)\n data\n end",
"d... | [
"0.77693224",
"0.73628837",
"0.66959625",
"0.65580076",
"0.6438125",
"0.630483",
"0.5909644",
"0.58281773",
"0.5823504",
"0.5804374",
"0.5736493",
"0.57363534",
"0.5700956",
"0.5682349",
"0.5608479",
"0.55753344",
"0.5568804",
"0.5563187",
"0.55520904",
"0.5467641",
"0.546645... | 0.67678106 | 2 |
Returns the list of available balance options which can be used as a bound to determine when to send email to user with low balance notification. See | def get_balance_notification_options(opts = {})
data, _status_code, _headers = get_balance_notification_options_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def affordable_combos\n self.option_prices\n combinations = @option_prices.select{|k,v| v <= to_cents(@budget)}.keys\n unless combinations.empty? then combinations else \"You can't afford anything...\" end\n end",
"def balances\n accounts.with_balance\n end",
"def available_balance\n s... | [
"0.6668542",
"0.6284749",
"0.62802863",
"0.6274295",
"0.6232806",
"0.60602635",
"0.6033748",
"0.59943855",
"0.59639543",
"0.5931545",
"0.5911527",
"0.5830704",
"0.57887137",
"0.5769778",
"0.57666045",
"0.5737739",
"0.56596893",
"0.55439717",
"0.5537885",
"0.5532806",
"0.55316... | 0.66105175 | 1 |
Returns the list of available balance options which can be used as a bound to determine when to send email to user with low balance notification. See | def get_balance_notification_options_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_balance_notification_options ...'
end
# resource path
local_var_path = '/api/v2/user/notification/balance/bundles'
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'GetBalanceNotificationOptionsResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_balance_notification_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def affordable_combos\n self.option_prices\n combinations = @option_prices.select{|k,v| v <= to_cents(@budget)}.keys\n unless combinations.empty? then combinations else \"You can't afford anything...\" end\n end",
"def get_balance_notification_options(opts = {})\n data, _status_code, _headers = ge... | [
"0.6667543",
"0.66112316",
"0.6284142",
"0.62795454",
"0.6273999",
"0.6232781",
"0.60604143",
"0.603284",
"0.5993958",
"0.59640205",
"0.5930268",
"0.59112597",
"0.5830721",
"0.57890254",
"0.5767296",
"0.5737052",
"0.5657793",
"0.5542927",
"0.5538171",
"0.5532213",
"0.55317897... | 0.5769613 | 14 |
Get balance notification settings | def get_balance_notification_settings(opts = {})
data, _status_code, _headers = get_balance_notification_settings_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_balance_notification_settings_with_http_info(opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: TextMagicApi.get_balance_notification_settings ...'\n end\n # resource path\n local_var_path = '/api/v2/user/notification/balance'\n\n # ... | [
"0.7128143",
"0.6702674",
"0.6641361",
"0.6532674",
"0.6319348",
"0.6276632",
"0.6263791",
"0.6263791",
"0.6147323",
"0.6139218",
"0.6060533",
"0.598861",
"0.5983741",
"0.595662",
"0.5925616",
"0.591531",
"0.59094167",
"0.58798957",
"0.58782065",
"0.5871222",
"0.5871222",
"... | 0.7744894 | 0 |
Get balance notification settings | def get_balance_notification_settings_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_balance_notification_settings ...'
end
# resource path
local_var_path = '/api/v2/user/notification/balance'
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'GetBalanceNotificationSettingsResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_balance_notification_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_balance_notification_settings(opts = {})\n data, _status_code, _headers = get_balance_notification_settings_with_http_info(opts)\n data\n end",
"def get_settings\n @bridge.get_settings\n end",
"def get_settings\n settings.get\n end",
"def get_balance_notif... | [
"0.77454925",
"0.6707799",
"0.6646946",
"0.6530871",
"0.6321698",
"0.62815994",
"0.62690026",
"0.62690026",
"0.6151424",
"0.61442065",
"0.60637105",
"0.59937745",
"0.59892744",
"0.59627014",
"0.5928676",
"0.59147274",
"0.59147036",
"0.58848274",
"0.58764",
"0.58764",
"0.58761... | 0.71277636 | 1 |
Get bulk session status | def get_bulk_session(id, opts = {})
data, _status_code, _headers = get_bulk_session_with_http_info(id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_session_status keys\n @con.call 'core.get_session_status', keys, {}\n end",
"def session_status\n cm_status = status\n if cm_status\n cm_status.attributes[\"status\"]\n end\n end",
"def step1_status # Retrieve current se... | [
"0.7568199",
"0.6827956",
"0.6649763",
"0.6311432",
"0.63004714",
"0.6036954",
"0.5991184",
"0.5991184",
"0.59718674",
"0.59269845",
"0.59213156",
"0.59192014",
"0.59192014",
"0.5906151",
"0.5905185",
"0.5897235",
"0.5868719",
"0.5856637",
"0.58518875",
"0.5849992",
"0.584126... | 0.59843403 | 8 |
Get bulk session status | def get_bulk_session_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_bulk_session ...'
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.get_bulk_session"
end
# resource path
local_var_path = '/api/v2/bulks/{id}'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'BulkSession')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_bulk_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_session_status keys\n @con.call 'core.get_session_status', keys, {}\n end",
"def session_status\n cm_status = status\n if cm_status\n cm_status.attributes[\"status\"]\n end\n end",
"def step1_status # Retrieve current se... | [
"0.7568199",
"0.6827956",
"0.6649763",
"0.6311432",
"0.63004714",
"0.6036954",
"0.5991184",
"0.5991184",
"0.59843403",
"0.59718674",
"0.59269845",
"0.59213156",
"0.59192014",
"0.59192014",
"0.5906151",
"0.5905185",
"0.5897235",
"0.5868719",
"0.5856637",
"0.58518875",
"0.58499... | 0.0 | -1 |
Fetch callback URL settings | def get_callback_settings(opts = {})
data, _status_code, _headers = get_callback_settings_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oauth_callback_url\n end",
"def callback\n connector_response_url(callback_options)\n end",
"def callback_url\n options[:callback_url] || (full_host + script_name + callback_path)\n end",
"def callback_url\n options[:callback_url] || (full_host + script_name + callback_pat... | [
"0.69002604",
"0.67383116",
"0.6697612",
"0.6697612",
"0.6697612",
"0.6634558",
"0.66222304",
"0.65930164",
"0.65784127",
"0.65784127",
"0.65784127",
"0.65784127",
"0.65784127",
"0.65784127",
"0.65784127",
"0.65784127",
"0.65784127",
"0.65784127",
"0.65784127",
"0.65784127",
... | 0.609492 | 34 |
Fetch callback URL settings | def get_callback_settings_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_callback_settings ...'
end
# resource path
local_var_path = '/api/v2/callback/settings'
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'GetCallbackSettingsResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_callback_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oauth_callback_url\n end",
"def callback\n connector_response_url(callback_options)\n end",
"def callback_url\n options[:callback_url] || (full_host + script_name + callback_path)\n end",
"def callback_url\n options[:callback_url] || (full_host + script_name + callback_pat... | [
"0.69002604",
"0.67383116",
"0.6697612",
"0.6697612",
"0.6697612",
"0.6634558",
"0.66222304",
"0.65930164",
"0.65784127",
"0.65784127",
"0.65784127",
"0.65784127",
"0.65784127",
"0.65784127",
"0.65784127",
"0.65784127",
"0.65784127",
"0.65784127",
"0.65784127",
"0.65784127",
... | 0.5928887 | 41 |
Get a single chat | def get_chat(id, opts = {})
data, _status_code, _headers = get_chat_with_http_info(id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def chat\n return @chat\n end",
"def show\n @chat_thread = ChatThread.find(params[:id])\n # 既読つける\n readChat(@chat_thread.id, @chat_thread.chats.last.id) if @chat_thread.chats.size > 0\n render json: @chat_thread.chats, each_serializer: Rest::ChatSerializer\n end",
"def c... | [
"0.75546724",
"0.73444265",
"0.71062094",
"0.70193964",
"0.70193964",
"0.6992516",
"0.6928288",
"0.6898826",
"0.6876446",
"0.68722254",
"0.686488",
"0.6829666",
"0.6819729",
"0.6819729",
"0.6819729",
"0.6819729",
"0.6819729",
"0.6819729",
"0.6819729",
"0.6819729",
"0.6819729"... | 0.6606511 | 29 |
Get a single chat | def get_chat_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_chat ...'
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.get_chat"
end
# resource path
local_var_path = '/api/v2/chats/{id}'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'Chat')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_chat\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def chat\n return @chat\n end",
"def show\n @chat_thread = ChatThread.find(params[:id])\n # 既読つける\n readChat(@chat_thread.id, @chat_thread.chats.last.id) if @chat_thread.chats.size > 0\n render json: @chat_thread.chats, each_serializer: Rest::ChatSerializer\n end",
"def c... | [
"0.75546724",
"0.73444265",
"0.71062094",
"0.70193964",
"0.70193964",
"0.6992516",
"0.6928288",
"0.6898826",
"0.6876446",
"0.68722254",
"0.686488",
"0.6829666",
"0.6819729",
"0.6819729",
"0.6819729",
"0.6819729",
"0.6819729",
"0.6819729",
"0.6819729",
"0.6819729",
"0.6819729"... | 0.5965231 | 95 |
Find chats by phone | def get_chat_by_phone(phone, opts = {})
data, _status_code, _headers = get_chat_by_phone_with_http_info(phone, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def chats\n @chats ||= Chat.find_all_by_match_id(params[:match_id], :include => :player)\n end",
"def recent_chats\n r = Skype.send_command \"SEARCH RECENTCHATS\"\n chat_ids = parse_type(r.sub(/^CHATS\\s+/, \"\"), Array)\n chat_ids.map do |id|\n Chat.new(id)\n end\n ... | [
"0.6159202",
"0.614321",
"0.59941965",
"0.59735394",
"0.5880296",
"0.580283",
"0.56463087",
"0.5620949",
"0.56202626",
"0.55948454",
"0.5566907",
"0.55668074",
"0.55577534",
"0.55417645",
"0.55288863",
"0.54895",
"0.54386115",
"0.5380908",
"0.53727055",
"0.53611594",
"0.53538... | 0.6425536 | 0 |
Find chats by phone | def get_chat_by_phone_with_http_info(phone, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_chat_by_phone ...'
end
# verify the required parameter 'phone' is set
if @api_client.config.client_side_validation && phone.nil?
fail ArgumentError, "Missing the required parameter 'phone' when calling TextMagicApi.get_chat_by_phone"
end
# resource path
local_var_path = '/api/v2/chats/{phone}/by/phone'.sub('{' + 'phone' + '}', phone.to_s)
# query parameters
query_params = {}
query_params[:'upsert'] = opts[:'upsert'] if !opts[:'upsert'].nil?
query_params[:'reopen'] = opts[:'reopen'] if !opts[:'reopen'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'Chat')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_chat_by_phone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_chat_by_phone(phone, opts = {})\n data, _status_code, _headers = get_chat_by_phone_with_http_info(phone, opts)\n data\n end",
"def chats\n @chats ||= Chat.find_all_by_match_id(params[:match_id], :include => :player)\n end",
"def recent_chats\n r = Skype.send_command \"SEARCH REC... | [
"0.6424387",
"0.6161916",
"0.6143232",
"0.59950775",
"0.5973311",
"0.5881598",
"0.58010095",
"0.5647417",
"0.5621726",
"0.56200665",
"0.55667573",
"0.5565383",
"0.5558585",
"0.55426365",
"0.5531631",
"0.54879415",
"0.54391617",
"0.5379708",
"0.5371783",
"0.5362743",
"0.535191... | 0.5594777 | 10 |
Get the details of a specific contact | def get_contact(id, opts = {})
data, _status_code, _headers = get_contact_with_http_info(id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def contact\n find('Contact', contact_id)\n end",
"def contact(contact, options = {})\n get(\"contacts/#{contact}\", options).pop\n end",
"def contact\n response[\"contact\"]\n end",
"def get_contact_detail(business, category)\n contact_details.find_by(business: business, c... | [
"0.8033724",
"0.79034483",
"0.78739464",
"0.78722745",
"0.7824333",
"0.78085154",
"0.7726464",
"0.7726464",
"0.7726464",
"0.7726464",
"0.7726464",
"0.76674306",
"0.76674306",
"0.76671654",
"0.7633591",
"0.757481",
"0.75528526",
"0.74926335",
"0.74742794",
"0.74654347",
"0.743... | 0.0 | -1 |
Get the details of a specific contact | def get_contact_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_contact ...'
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.get_contact"
end
# resource path
local_var_path = '/api/v2/contacts/{id}'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'Contact')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def contact\n find('Contact', contact_id)\n end",
"def contact(contact, options = {})\n get(\"contacts/#{contact}\", options).pop\n end",
"def contact\n response[\"contact\"]\n end",
"def get_contact_detail(business, category)\n contact_details.find_by(business: business, c... | [
"0.8033724",
"0.79034483",
"0.78739464",
"0.78722745",
"0.7824333",
"0.78085154",
"0.7726464",
"0.7726464",
"0.7726464",
"0.7726464",
"0.7726464",
"0.76674306",
"0.76674306",
"0.76671654",
"0.7633591",
"0.757481",
"0.75528526",
"0.74926335",
"0.74742794",
"0.74654347",
"0.743... | 0.0 | -1 |
Get the details of a specific contact by phone number | def get_contact_by_phone(phone, opts = {})
data, _status_code, _headers = get_contact_by_phone_with_http_info(phone, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_contact_by_number(contact_number)\n get_contact(nil, contact_number)\n end",
"def get_contact_by_number(contact_number)\n get_contact(nil, contact_number)\n end",
"def contact(contact, options = {})\n get(\"contacts/#{contact}\", options).pop\n end",
"def find_by_phone(pho... | [
"0.76860315",
"0.76860315",
"0.73478",
"0.7115797",
"0.7102319",
"0.70315945",
"0.70281243",
"0.69626933",
"0.6954641",
"0.68743294",
"0.68515635",
"0.6840227",
"0.68398416",
"0.6834385",
"0.6834353",
"0.68186235",
"0.6814728",
"0.67951876",
"0.67951876",
"0.6789391",
"0.6789... | 0.7453874 | 2 |
Get the details of a specific contact by phone number | def get_contact_by_phone_with_http_info(phone, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_contact_by_phone ...'
end
# verify the required parameter 'phone' is set
if @api_client.config.client_side_validation && phone.nil?
fail ArgumentError, "Missing the required parameter 'phone' when calling TextMagicApi.get_contact_by_phone"
end
# resource path
local_var_path = '/api/v2/contacts/phone/{phone}'.sub('{' + 'phone' + '}', phone.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'Contact')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_contact_by_phone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_contact_by_number(contact_number)\n get_contact(nil, contact_number)\n end",
"def get_contact_by_number(contact_number)\n get_contact(nil, contact_number)\n end",
"def get_contact_by_phone(phone, opts = {})\n data, _status_code, _headers = get_contact_by_phone_with_http_info(phone,... | [
"0.7686127",
"0.7686127",
"0.74525356",
"0.73455006",
"0.71157485",
"0.70308805",
"0.7027681",
"0.69621885",
"0.69526523",
"0.68722755",
"0.68510836",
"0.68398625",
"0.68395704",
"0.68330586",
"0.6832676",
"0.68192804",
"0.6813094",
"0.6793874",
"0.6793874",
"0.6787724",
"0.6... | 0.71009505 | 5 |
Check if a phone number is blocked | def get_contact_if_blocked(phone, opts = {})
data, _status_code, _headers = get_contact_if_blocked_with_http_info(phone, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def black_listed?(phone, text)\n number_regex = /\\+1(\\d){10,10}$/\n if number_regex.match(phone).nil? \n true \n end\n end",
"def sms_eligibility_check\n redirect_to(root_url) && return unless current_user.can_edit_patient?\n\n phone_number = params.require(:phone_number)\n blocked = Bl... | [
"0.74988663",
"0.72842664",
"0.7173489",
"0.61243486",
"0.6030226",
"0.60295016",
"0.6015702",
"0.60131645",
"0.59738106",
"0.5943181",
"0.593517",
"0.59294724",
"0.59083414",
"0.58872163",
"0.58802813",
"0.5871521",
"0.58660483",
"0.5817233",
"0.5796422",
"0.57919735",
"0.57... | 0.5948964 | 9 |
Check if a phone number is blocked | def get_contact_if_blocked_with_http_info(phone, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_contact_if_blocked ...'
end
# verify the required parameter 'phone' is set
if @api_client.config.client_side_validation && phone.nil?
fail ArgumentError, "Missing the required parameter 'phone' when calling TextMagicApi.get_contact_if_blocked"
end
# resource path
local_var_path = '/api/v2/contacts/block/phone'
# query parameters
query_params = {}
query_params[:'phone'] = phone
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'Contact')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_contact_if_blocked\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def black_listed?(phone, text)\n number_regex = /\\+1(\\d){10,10}$/\n if number_regex.match(phone).nil? \n true \n end\n end",
"def sms_eligibility_check\n redirect_to(root_url) && return unless current_user.can_edit_patient?\n\n phone_number = params.require(:phone_number)\n blocked = Bl... | [
"0.74988663",
"0.72842664",
"0.7173489",
"0.61243486",
"0.6030226",
"0.60295016",
"0.6015702",
"0.60131645",
"0.59738106",
"0.5948964",
"0.5943181",
"0.593517",
"0.59294724",
"0.59083414",
"0.58872163",
"0.58802813",
"0.5871521",
"0.58660483",
"0.5817233",
"0.5796422",
"0.579... | 0.0 | -1 |
Check import progress Get contact import session progress. | def get_contact_import_session_progress(id, opts = {})
data, _status_code, _headers = get_contact_import_session_progress_with_http_info(id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def import_progress\n import_done.to_f / ( import_total || 999999999 )\n end",
"def imported?\n import_progress[:status] == IMPORT_COMPLETE\n end",
"def importing?\n IMPORT_ONGOING.include? import_progress[:status]\n end",
"def import_failed?\n IMPORT_ERRORS.include? import_progress[:status]\n... | [
"0.67744",
"0.65916145",
"0.6399266",
"0.61094546",
"0.5977221",
"0.5895889",
"0.5723382",
"0.5530906",
"0.5476073",
"0.5460245",
"0.54138553",
"0.54120815",
"0.540332",
"0.5392444",
"0.5392444",
"0.5392444",
"0.5392444",
"0.5392444",
"0.5371953",
"0.5367536",
"0.5353638",
... | 0.6530846 | 2 |
Check import progress Get contact import session progress. | def get_contact_import_session_progress_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_contact_import_session_progress ...'
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.get_contact_import_session_progress"
end
# resource path
local_var_path = '/api/v2/contacts/import/progress/{id}'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'GetContactImportSessionProgressResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_contact_import_session_progress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def import_progress\n import_done.to_f / ( import_total || 999999999 )\n end",
"def imported?\n import_progress[:status] == IMPORT_COMPLETE\n end",
"def get_contact_import_session_progress(id, opts = {})\n data, _status_code, _headers = get_contact_import_session_progress_with_http_info(id, opts)\... | [
"0.6774991",
"0.659037",
"0.65301806",
"0.63980234",
"0.61082286",
"0.5977732",
"0.589496",
"0.57226604",
"0.5532085",
"0.5477409",
"0.5461152",
"0.5414912",
"0.5411733",
"0.5404702",
"0.5393475",
"0.5393475",
"0.5393475",
"0.5393475",
"0.5393475",
"0.53733957",
"0.5367622",
... | 0.49902388 | 42 |
Get a contact note | def get_contact_note(id, opts = {})
data, _status_code, _headers = get_contact_note_with_http_info(id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def notes params=nil\n @nimble.get \"contact/#{self.id}/notes\", params\n end",
"def note note, preview=nil\n preview ||= note[0..64]\n params = {\n contact_ids: [ self.id ],\n note: note,\n note_preview: preview\n }\n @nimble.post \"contacts/notes\", params\n ... | [
"0.7604339",
"0.71941215",
"0.7032346",
"0.69385177",
"0.69165224",
"0.6859982",
"0.6859982",
"0.6743786",
"0.6722043",
"0.65655345",
"0.6476765",
"0.644971",
"0.644149",
"0.64154327",
"0.64061296",
"0.638288",
"0.6371342",
"0.6343852",
"0.6343852",
"0.6343852",
"0.6343852",
... | 0.70602626 | 2 |
Get a contact note | def get_contact_note_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_contact_note ...'
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.get_contact_note"
end
# resource path
local_var_path = '/api/v2/notes/{id}'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'ContactNote')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_contact_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def notes params=nil\n @nimble.get \"contact/#{self.id}/notes\", params\n end",
"def note note, preview=nil\n preview ||= note[0..64]\n params = {\n contact_ids: [ self.id ],\n note: note,\n note_preview: preview\n }\n @nimble.post \"contacts/notes\", params\n ... | [
"0.7604339",
"0.71941215",
"0.70602626",
"0.7032346",
"0.69385177",
"0.69165224",
"0.6859982",
"0.6859982",
"0.6743786",
"0.6722043",
"0.6476765",
"0.644971",
"0.644149",
"0.64154327",
"0.64061296",
"0.638288",
"0.6371342",
"0.6343852",
"0.6343852",
"0.6343852",
"0.6343852",
... | 0.65655345 | 10 |
Fetch notes assigned to a given contact | def get_contact_notes(id, opts = {})
data, _status_code, _headers = get_contact_notes_with_http_info(id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def notes params=nil\n @nimble.get \"contact/#{self.id}/notes\", params\n end",
"def get_contact_notes id, search = '', start = 0, limit = 0, orderBy = '', order_by_dir = 'ASC'\n\n parameters = {}\n\n args = ['search', 'start', 'limit', 'orderBy', 'order_by_dir']\n\n args... | [
"0.7250685",
"0.66898686",
"0.6528528",
"0.64624953",
"0.63383424",
"0.6299622",
"0.6266339",
"0.61919695",
"0.6177275",
"0.6164397",
"0.6078868",
"0.607483",
"0.59860486",
"0.5971906",
"0.59393007",
"0.5930154",
"0.592663",
"0.5907377",
"0.589569",
"0.5883279",
"0.58642274",... | 0.5752023 | 27 |
Fetch notes assigned to a given contact | def get_contact_notes_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_contact_notes ...'
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.get_contact_notes"
end
# resource path
local_var_path = '/api/v2/contacts/{id}/notes'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'GetContactNotesPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_contact_notes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def notes params=nil\n @nimble.get \"contact/#{self.id}/notes\", params\n end",
"def get_contact_notes id, search = '', start = 0, limit = 0, orderBy = '', order_by_dir = 'ASC'\n\n parameters = {}\n\n args = ['search', 'start', 'limit', 'orderBy', 'order_by_dir']\n\n args... | [
"0.7247773",
"0.6687743",
"0.6524825",
"0.64604247",
"0.6338864",
"0.62961733",
"0.6265421",
"0.61892354",
"0.61747265",
"0.6166119",
"0.6075514",
"0.6073819",
"0.5988685",
"0.5968607",
"0.59374887",
"0.5931974",
"0.592917",
"0.5904505",
"0.5897022",
"0.5885672",
"0.5862476",... | 0.5441373 | 96 |
Get contacts autocomplete suggestions Get contacts autocomplete suggestions by given search terms. | def get_contacts_autocomplete(query, opts = {})
data, _status_code, _headers = get_contacts_autocomplete_with_http_info(query, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def suggestions\n perform_request_with_collection(:get, '/api/v1/accounts/suggestions', {}, Mastodon::Account)\n end",
"def contact_autocomplete(type, options)\n set_search_path\n Contact.where(\"type = :type AND matchcode ILIKE :term\", :type => type, :term => \"%#{options[:term]}%\").limi... | [
"0.7129431",
"0.70773923",
"0.6815786",
"0.6811067",
"0.67334604",
"0.6642121",
"0.65874743",
"0.65513474",
"0.6493618",
"0.6481747",
"0.6476323",
"0.64645606",
"0.64380187",
"0.6423139",
"0.6417299",
"0.6389218",
"0.635406",
"0.6293389",
"0.62879604",
"0.6277118",
"0.6267645... | 0.6825468 | 2 |
Get contacts autocomplete suggestions Get contacts autocomplete suggestions by given search terms. | def get_contacts_autocomplete_with_http_info(query, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_contacts_autocomplete ...'
end
# verify the required parameter 'query' is set
if @api_client.config.client_side_validation && query.nil?
fail ArgumentError, "Missing the required parameter 'query' when calling TextMagicApi.get_contacts_autocomplete"
end
# resource path
local_var_path = '/api/v2/contacts/autocomplete'
# query parameters
query_params = {}
query_params[:'query'] = query
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
query_params[:'lists'] = opts[:'lists'] if !opts[:'lists'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'GetContactsAutocompleteResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_contacts_autocomplete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def suggestions\n perform_request_with_collection(:get, '/api/v1/accounts/suggestions', {}, Mastodon::Account)\n end",
"def contact_autocomplete(type, options)\n set_search_path\n Contact.where(\"type = :type AND matchcode ILIKE :term\", :type => type, :term => \"%#{options[:term]}%\").limi... | [
"0.7129431",
"0.70773923",
"0.6825468",
"0.6815786",
"0.6811067",
"0.67334604",
"0.6642121",
"0.65874743",
"0.65513474",
"0.6493618",
"0.6481747",
"0.6476323",
"0.64645606",
"0.6423139",
"0.6417299",
"0.6389218",
"0.635406",
"0.6293389",
"0.62879604",
"0.6277118",
"0.6267645"... | 0.64380187 | 13 |
Get all contacts in a list A useful synonym for the \"contacts/search\" command with the provided \"listId\" parameter. | def get_contacts_by_list_id(id, opts = {})
data, _status_code, _headers = get_contacts_by_list_id_with_http_info(id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_contacts_from_list(access_token, list_id, param = nil)\n url = Util::Config.get('endpoints.base_url') + sprintf(Util::Config.get('endpoints.list_contacts'), list_id)\n url = build_url(url, param)\n response = RestClient.get(url, get_headers(access_token))\n contacts = []... | [
"0.84117097",
"0.8126243",
"0.78340834",
"0.7763995",
"0.7717276",
"0.7552706",
"0.7530891",
"0.7105213",
"0.70890564",
"0.6994361",
"0.6975045",
"0.69694483",
"0.69559306",
"0.6931423",
"0.6919788",
"0.6773698",
"0.6743358",
"0.6700545",
"0.6662488",
"0.66439354",
"0.6632931... | 0.74891645 | 7 |
Get all contacts in a list A useful synonym for the \"contacts/search\" command with the provided \"listId\" parameter. | def get_contacts_by_list_id_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_contacts_by_list_id ...'
end
# verify the required parameter 'id' is set
if @api_client.config.client_side_validation && id.nil?
fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.get_contacts_by_list_id"
end
if @api_client.config.client_side_validation && opts[:'order_by'] && !['id', 'firstName', 'lastName'].include?(opts[:'order_by'])
fail ArgumentError, 'invalid value for "order_by", must be one of id, firstName, lastName'
end
if @api_client.config.client_side_validation && opts[:'direction'] && !['asc', 'desc'].include?(opts[:'direction'])
fail ArgumentError, 'invalid value for "direction", must be one of asc, desc'
end
# resource path
local_var_path = '/api/v2/lists/{id}/contacts'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
query_params[:'orderBy'] = opts[:'order_by'] if !opts[:'order_by'].nil?
query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'GetContactsByListIdPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_contacts_by_list_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_contacts_from_list(access_token, list_id, param = nil)\n url = Util::Config.get('endpoints.base_url') + sprintf(Util::Config.get('endpoints.list_contacts'), list_id)\n url = build_url(url, param)\n response = RestClient.get(url, get_headers(access_token))\n contacts = []... | [
"0.8411648",
"0.8126994",
"0.7834268",
"0.7764458",
"0.77167",
"0.75540876",
"0.7531983",
"0.7489427",
"0.71062756",
"0.7089758",
"0.699395",
"0.6975509",
"0.697068",
"0.6955509",
"0.6931284",
"0.6919015",
"0.67730534",
"0.6744507",
"0.6701807",
"0.6663455",
"0.6644871",
"0... | 0.61561275 | 46 |
Get current account information | def get_current_user(opts = {})
data, _status_code, _headers = get_current_user_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def account_info()\n response = @session.do_get build_url(\"/account/info\")\n parse_response(response)\n end",
"def current_account\n @current_account\n end",
"def current_account\n load_session\n @current_account\n end",
"def me\n # Requires authorization\n ... | [
"0.8342053",
"0.81035507",
"0.8039035",
"0.7983602",
"0.78162223",
"0.76834476",
"0.7660448",
"0.7628594",
"0.7621697",
"0.76088613",
"0.76088613",
"0.7587592",
"0.7560555",
"0.75416756",
"0.7507198",
"0.7507198",
"0.7503284",
"0.7502961",
"0.7502961",
"0.7502961",
"0.7502961... | 0.0 | -1 |
Get current account information | def get_current_user_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_current_user ...'
end
# resource path
local_var_path = '/api/v2/user'
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'User')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_current_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def account_info()\n response = @session.do_get build_url(\"/account/info\")\n parse_response(response)\n end",
"def current_account\n @current_account\n end",
"def current_account\n load_session\n @current_account\n end",
"def me\n # Requires authorization\n ... | [
"0.8342053",
"0.81035507",
"0.8039035",
"0.7983602",
"0.78162223",
"0.76834476",
"0.7660448",
"0.7628594",
"0.7621697",
"0.76088613",
"0.76088613",
"0.7587592",
"0.7560555",
"0.75416756",
"0.7507198",
"0.7507198",
"0.7503284",
"0.7502961",
"0.7502961",
"0.7502961",
"0.7502961... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.