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 |
|---|---|---|---|---|---|---|
Get the details of a specific custom field | def get_custom_field(id, opts = {})
data, _status_code, _headers = get_custom_field_with_http_info(id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_field(field_name)\n\t\tend",
"def general_field(name)\n self.general_fields.where(fieldable_id: self.id).where(\"payload->>'key' = ?\", name).first\n end",
"def get_field(field_name)\n fields = @data_source['fields']\n \n fields.each do | f |\n if f['name'] == filed_name\n retu... | [
"0.72393745",
"0.687495",
"0.68640226",
"0.68533075",
"0.68285215",
"0.67661685",
"0.67464197",
"0.6719338",
"0.66599464",
"0.66595036",
"0.66325814",
"0.6590353",
"0.65534055",
"0.6515116",
"0.64778286",
"0.64391124",
"0.6428166",
"0.6392942",
"0.6391211",
"0.63634247",
"0.6... | 0.66234654 | 11 |
Get the details of a specific custom field | def get_custom_field_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_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.get_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 '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 => 'UserCustomField')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_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 get_field(field_name)\n\t\tend",
"def general_field(name)\n self.general_fields.where(fieldable_id: self.id).where(\"payload->>'key' = ?\", name).first\n end",
"def get_field(field_name)\n fields = @data_source['fields']\n \n fields.each do | f |\n if f['name'] == filed_name\n retu... | [
"0.72399414",
"0.68762386",
"0.68655986",
"0.6853596",
"0.6828829",
"0.67662096",
"0.6745336",
"0.6720211",
"0.6661135",
"0.66603494",
"0.66325915",
"0.662519",
"0.6589346",
"0.65542674",
"0.65150607",
"0.64786327",
"0.6438662",
"0.642725",
"0.6392496",
"0.63924056",
"0.63644... | 0.63222516 | 29 |
Get all custom fields | def get_custom_fields(opts = {})
data, _status_code, _headers = get_custom_fields_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def custom_fields\n CustomField.all(self)\n end",
"def index\n @custom_fields = CustomField.all\n end",
"def index\n @custom_fields = CustomField.all\n end",
"def custom_fields\n field_values = @client.account_details.custom_field_values\n\n fields = []\n\n 3.times do |i|\n ... | [
"0.89022994",
"0.80028635",
"0.80028635",
"0.7237446",
"0.72022617",
"0.7164172",
"0.716048",
"0.6977708",
"0.6974382",
"0.69713455",
"0.6970539",
"0.69144547",
"0.6799271",
"0.6782856",
"0.67039204",
"0.6685954",
"0.66681296",
"0.66221046",
"0.6616283",
"0.6573576",
"0.65735... | 0.65598273 | 22 |
Get all custom fields | def get_custom_fields_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_custom_fields ...'
end
# resource path
local_var_path = '/api/v2/customfields'
# 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 => 'GetCustomFieldsPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_custom_fields\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def custom_fields\n CustomField.all(self)\n end",
"def index\n @custom_fields = CustomField.all\n end",
"def index\n @custom_fields = CustomField.all\n end",
"def custom_fields\n field_values = @client.account_details.custom_field_values\n\n fields = []\n\n 3.times do |i|\n ... | [
"0.89022994",
"0.80028635",
"0.80028635",
"0.7237446",
"0.72022617",
"0.7164172",
"0.716048",
"0.6977708",
"0.6974382",
"0.69713455",
"0.6970539",
"0.69144547",
"0.6799271",
"0.6782856",
"0.67039204",
"0.6685954",
"0.66681296",
"0.66221046",
"0.6616283",
"0.6573576",
"0.65735... | 0.0 | -1 |
Get the details of a specific dedicated number | def get_dedicated_number(id, opts = {})
data, _status_code, _headers = get_dedicated_number_with_http_info(id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def number_fetch(number)\n Number.new(number_request(:get, \"phone-numbers/#{number}\"))\n end",
"def read_number\n @db.get_first_value 'SELECT number from crl_number'\n end",
"def getToolsProcess_phone( number)\n params = Hash.new\n params['number'] = number\n return doCurl(\"get\... | [
"0.66858584",
"0.6549319",
"0.6502715",
"0.6154733",
"0.61417377",
"0.61239195",
"0.60723484",
"0.5898045",
"0.58733153",
"0.5807891",
"0.5788306",
"0.5773776",
"0.57299817",
"0.5721864",
"0.57151824",
"0.5686185",
"0.568591",
"0.5676198",
"0.5659653",
"0.56465167",
"0.564380... | 0.5819527 | 9 |
Get the details of a specific dedicated number | def get_dedicated_number_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_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.get_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 '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 => 'UsersInbound')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_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 number_fetch(number)\n Number.new(number_request(:get, \"phone-numbers/#{number}\"))\n end",
"def read_number\n @db.get_first_value 'SELECT number from crl_number'\n end",
"def getToolsProcess_phone( number)\n params = Hash.new\n params['number'] = number\n return doCurl(\"get\... | [
"0.6685143",
"0.65472025",
"0.6502633",
"0.6151702",
"0.6141401",
"0.6071373",
"0.589732",
"0.5873952",
"0.5817683",
"0.58084095",
"0.5787322",
"0.5773922",
"0.57290214",
"0.57209533",
"0.5714413",
"0.5685516",
"0.56848824",
"0.56732297",
"0.5657757",
"0.56453776",
"0.5643778... | 0.61236984 | 5 |
Get favorite contacts and lists | def get_favorites(opts = {})
data, _status_code, _headers = get_favorites_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def show_related\n approved_friends = current_user.allFriends.map!{|user| user.id}\n pending_friends = current_user.allPendingFriends.map!{|user| user.id}\n contacts = []\n filtered_contacts = current_user.contacts.where(\"contacts.name ilike '%#{current_user.lastname}%'\").joins('inner join users on u... | [
"0.6857235",
"0.6856262",
"0.67973864",
"0.6731563",
"0.6642901",
"0.6618777",
"0.6572164",
"0.65532976",
"0.6537394",
"0.65250814",
"0.6514606",
"0.65012056",
"0.649901",
"0.64891607",
"0.6454747",
"0.644756",
"0.6421582",
"0.6420094",
"0.6415705",
"0.6407102",
"0.6388495",
... | 0.0 | -1 |
Get favorite contacts and lists | def get_favorites_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_favorites ...'
end
# resource path
local_var_path = '/api/v2/contacts/favorite'
# query parameters
query_params = {}
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
query_params[:'query'] = opts[:'query'] if !opts[:'query'].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 => 'GetFavoritesPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_favorites\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def show_related\n approved_friends = current_user.allFriends.map!{|user| user.id}\n pending_friends = current_user.allPendingFriends.map!{|user| user.id}\n contacts = []\n filtered_contacts = current_user.contacts.where(\"contacts.name ilike '%#{current_user.lastname}%'\").joins('inner join users on u... | [
"0.6857235",
"0.6856262",
"0.67973864",
"0.6731563",
"0.6642901",
"0.6618777",
"0.6572164",
"0.65532976",
"0.6537394",
"0.65250814",
"0.6514606",
"0.65012056",
"0.649901",
"0.64891607",
"0.6454747",
"0.644756",
"0.6421582",
"0.6420094",
"0.6415705",
"0.6407102",
"0.6388495",
... | 0.0 | -1 |
Get a single inbound message | def get_inbound_message(id, opts = {})
data, _status_code, _headers = get_inbound_message_with_http_info(id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def message\n @messages.first\n end",
"def message(message)\n get(\"inbox/messages/#{message}\").pop\n end",
"def get_message\n @reply['message']\n end",
"def read_message(adapter, queue_url)\n result = adapter.sqs_client.receive_message(\n queue_url: queue_url,\n ... | [
"0.63848823",
"0.62744737",
"0.6180246",
"0.60810024",
"0.60521114",
"0.5948379",
"0.5948379",
"0.5912253",
"0.5849354",
"0.58448523",
"0.58376515",
"0.5832673",
"0.5828429",
"0.57669634",
"0.57521206",
"0.57484335",
"0.57467055",
"0.574267",
"0.5716314",
"0.56978625",
"0.569... | 0.651161 | 0 |
Get a single inbound message | def get_inbound_message_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_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.get_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 '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 => 'MessageIn')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_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 get_inbound_message(id, opts = {})\n data, _status_code, _headers = get_inbound_message_with_http_info(id, opts)\n data\n end",
"def message\n @messages.first\n end",
"def message(message)\n get(\"inbox/messages/#{message}\").pop\n end",
"def get_message\n @reply['mess... | [
"0.651161",
"0.63848823",
"0.62744737",
"0.6180246",
"0.60810024",
"0.60521114",
"0.5948379",
"0.5948379",
"0.5912253",
"0.5849354",
"0.58448523",
"0.58376515",
"0.5832673",
"0.5828429",
"0.57669634",
"0.57521206",
"0.57484335",
"0.57467055",
"0.574267",
"0.5716314",
"0.56978... | 0.5505507 | 44 |
Get inbound messages notification settings | def get_inbound_messages_notification_settings(opts = {})
data, _status_code, _headers = get_inbound_messages_notification_settings_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_inbound_messages_notification_settings_with_http_info(opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: TextMagicApi.get_inbound_messages_notification_settings ...'\n end\n # resource path\n local_var_path = '/api/v2/user/notification/in... | [
"0.69423664",
"0.6532332",
"0.6122977",
"0.6055662",
"0.6033265",
"0.5847752",
"0.581349",
"0.57619137",
"0.5725172",
"0.5700775",
"0.5700775",
"0.5681208",
"0.5675207",
"0.56217813",
"0.561996",
"0.5609384",
"0.5609384",
"0.5609232",
"0.56045055",
"0.56022054",
"0.5597685",
... | 0.8047187 | 0 |
Get inbound messages notification settings | def get_inbound_messages_notification_settings_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_inbound_messages_notification_settings ...'
end
# resource path
local_var_path = '/api/v2/user/notification/inbound'
# 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 => 'GetInboundMessagesNotificationSettingsResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_inbound_messages_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_inbound_messages_notification_settings(opts = {})\n data, _status_code, _headers = get_inbound_messages_notification_settings_with_http_info(opts)\n data\n end",
"def get()\n\t\t\tkparams = {}\n\t\t\tclient.queue_service_action_call('notificationspartnersettings', 'get', 'KalturaNotification... | [
"0.8047187",
"0.6532332",
"0.6122977",
"0.6055662",
"0.6033265",
"0.5847752",
"0.581349",
"0.57619137",
"0.5725172",
"0.5700775",
"0.5700775",
"0.5681208",
"0.5675207",
"0.56217813",
"0.561996",
"0.5609384",
"0.5609384",
"0.5609232",
"0.56045055",
"0.56022054",
"0.5597685",
... | 0.69423664 | 1 |
Get all invoices With the TextMagic API, you can check the invoices and transactions for your account. | def get_invoices(opts = {})
data, _status_code, _headers = get_invoices_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def all_invoices\n @gateway.get_invoices.invoices\n end",
"def invoices\n return Xero.get_invoices(self)\n end",
"def get_invoices(options = {})\n\n request_params = {}\n\n request_params[:InvoiceID] = options[:invoice_id] if options[:invoice_id]\n request_params[:InvoiceNumber] = ... | [
"0.8223771",
"0.77312094",
"0.7415261",
"0.7344644",
"0.73237455",
"0.7219498",
"0.71813357",
"0.7096753",
"0.7096753",
"0.7096753",
"0.7096753",
"0.7096753",
"0.7096753",
"0.7096753",
"0.7096753",
"0.7096753",
"0.707157",
"0.6958542",
"0.695176",
"0.68799603",
"0.67717826",
... | 0.7565675 | 2 |
Get all invoices With the TextMagic API, you can check the invoices and transactions for your account. | def get_invoices_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_invoices ...'
end
# resource path
local_var_path = '/api/v2/invoices'
# 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 => 'GetInvoicesPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_invoices\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_invoices\n @gateway.get_invoices.invoices\n end",
"def invoices\n return Xero.get_invoices(self)\n end",
"def get_invoices(opts = {})\n data, _status_code, _headers = get_invoices_with_http_info(opts)\n data\n end",
"def get_invoices(options = {})\n\n request_params = {}\n\n... | [
"0.8223975",
"0.77318764",
"0.7566522",
"0.74160635",
"0.7344406",
"0.7324808",
"0.72197837",
"0.71829426",
"0.709801",
"0.709801",
"0.709801",
"0.709801",
"0.709801",
"0.709801",
"0.709801",
"0.709801",
"0.709801",
"0.70725507",
"0.69584954",
"0.69513094",
"0.6880738",
"0.... | 0.6579212 | 32 |
Get the details of a specific list | def get_list(id, opts = {})
data, _status_code, _headers = get_list_with_http_info(id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_list(list_id)\n rest(\"get\", \"lists/#{list_id}\")\n end",
"def get_list(user, list)\n get(\"/#{user}/lists/#{list}.json\")\n end",
"def find_list\n @list = List.find(params[:id])\n end",
"def index\n @list_items = @list.list_items\n end",
"def get_list(list_name)\n @l... | [
"0.73763263",
"0.71093214",
"0.70691097",
"0.69568986",
"0.6930242",
"0.68826044",
"0.6879441",
"0.6861967",
"0.6861967",
"0.68150586",
"0.6803846",
"0.67779577",
"0.6714823",
"0.6660692",
"0.66519487",
"0.6595344",
"0.6570826",
"0.65525824",
"0.6549359",
"0.65294856",
"0.649... | 0.0 | -1 |
Get the details of a specific list | def get_list_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_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.get_list"
end
# resource path
local_var_path = '/api/v2/lists/{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 => 'List')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_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 get_list(list_id)\n rest(\"get\", \"lists/#{list_id}\")\n end",
"def get_list(user, list)\n get(\"/#{user}/lists/#{list}.json\")\n end",
"def find_list\n @list = List.find(params[:id])\n end",
"def index\n @list_items = @list.list_items\n end",
"def get_list(list_name)\n @l... | [
"0.73763263",
"0.71093214",
"0.70691097",
"0.69568986",
"0.6930242",
"0.68826044",
"0.6879441",
"0.6861967",
"0.6861967",
"0.68150586",
"0.6803846",
"0.67779577",
"0.6714823",
"0.6660692",
"0.66519487",
"0.6595344",
"0.6570826",
"0.65525824",
"0.6549359",
"0.65294856",
"0.649... | 0.0 | -1 |
Get all contact IDs in a list | def get_list_contacts_ids(id, opts = {})
data, _status_code, _headers = get_list_contacts_ids_with_http_info(id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def list_ids params={}\n @nimble.get \"contacts/ids\", params\n end",
"def contact_ids\n (object.added_contacts + object.mutual_contacts).map{|ct| ct.slug }\n end",
"def contacts\n return [] unless persisted?\n results = connection.get(\"#{self.class.path}/#{@attributes[\"Id\"]}\")\n ... | [
"0.7844839",
"0.72793525",
"0.71568227",
"0.7121131",
"0.6851973",
"0.64609015",
"0.64144796",
"0.64101505",
"0.64053345",
"0.6404643",
"0.6395752",
"0.6370932",
"0.6326546",
"0.6317886",
"0.627845",
"0.6195556",
"0.6170285",
"0.61282194",
"0.6125356",
"0.61223525",
"0.609993... | 0.61374336 | 17 |
Get all contact IDs in a list | def get_list_contacts_ids_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_list_contacts_ids ...'
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_list_contacts_ids"
end
# resource path
local_var_path = '/api/v2/lists/{id}/contacts/ids'.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 => 'GetListContactsIdsResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_list_contacts_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 list_ids params={}\n @nimble.get \"contacts/ids\", params\n end",
"def contact_ids\n (object.added_contacts + object.mutual_contacts).map{|ct| ct.slug }\n end",
"def contacts\n return [] unless persisted?\n results = connection.get(\"#{self.class.path}/#{@attributes[\"Id\"]}\")\n ... | [
"0.7845297",
"0.7277946",
"0.71585363",
"0.7119951",
"0.6853817",
"0.6463807",
"0.6416598",
"0.64089245",
"0.6405233",
"0.6403259",
"0.63941014",
"0.6371808",
"0.63257444",
"0.6318915",
"0.62793154",
"0.6194074",
"0.6171953",
"0.613788",
"0.6127977",
"0.6123339",
"0.6122002",... | 0.0 | -1 |
Get a contact's lists Get all the lists in which a contact is included. | def get_lists_of_contact(id, opts = {})
data, _status_code, _headers = get_lists_of_contact_with_http_info(id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_list(options={})\n rsp = @flickr.send_request('flickr.contacts.getList', options)\n collect_contacts(rsp)\n end",
"def lists\n @lists ||= ActsAsIcontact::Subscription.lists(:contactId => id)\n end",
"def list\n ContactDatabase.list\n end",
"def get_list(options, force = false)\... | [
"0.72862375",
"0.7283483",
"0.6943485",
"0.6939953",
"0.6853081",
"0.67398626",
"0.6713682",
"0.66701394",
"0.66128564",
"0.65911543",
"0.6560204",
"0.65379506",
"0.65272826",
"0.65162313",
"0.64989996",
"0.6494074",
"0.6452758",
"0.6354527",
"0.63196826",
"0.6314169",
"0.631... | 0.67568994 | 5 |
Get a contact&39;s lists Get all the lists in which a contact is included. | def get_lists_of_contact_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_lists_of_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_lists_of_contact"
end
# resource path
local_var_path = '/api/v2/contacts/{id}/lists'.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 => 'GetListsOfContactPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_lists_of_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 get_list(options={})\n rsp = @flickr.send_request('flickr.contacts.getList', options)\n collect_contacts(rsp)\n end",
"def lists\n @lists ||= ActsAsIcontact::Subscription.lists(:contactId => id)\n end",
"def list\n ContactDatabase.list\n end",
"def get_list(options, force = false)\... | [
"0.7421727",
"0.72596365",
"0.71744376",
"0.710984",
"0.6984513",
"0.6899979",
"0.68001896",
"0.6788195",
"0.6772412",
"0.6748301",
"0.6717501",
"0.67163956",
"0.6708736",
"0.66584194",
"0.664457",
"0.66205466",
"0.65880114",
"0.6586869",
"0.658201",
"0.6579621",
"0.6547053",... | 0.0 | -1 |
Preview message Get a messages preview (with tags merged) of up to 100 messages per session. | def get_message_preview(opts = {})
data, _status_code, _headers = get_message_preview_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def preview(channel_id, msg_id, data)\n channel_config, message_config, text =\n prepare_message(channel_id, msg_id, data)\n chats = channel_config.chat_ids\n connector = channel_config.connector\n\n if message_allowed?(message_config, data)\n connector.preview(chats, text, messag... | [
"0.6167294",
"0.5927733",
"0.5832809",
"0.58054495",
"0.5685857",
"0.5651458",
"0.55665064",
"0.5560964",
"0.554649",
"0.55410135",
"0.5508256",
"0.54768884",
"0.5445171",
"0.5420754",
"0.54121906",
"0.5364241",
"0.5313872",
"0.5304512",
"0.52847844",
"0.5275514",
"0.5271609"... | 0.65301 | 0 |
Preview message Get a messages preview (with tags merged) of up to 100 messages per session. | def get_message_preview_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_message_preview ...'
end
# resource path
local_var_path = '/api/v2/messages/preview'
# query parameters
query_params = {}
query_params[:'text'] = opts[:'text'] if !opts[:'text'].nil?
query_params[:'templateId'] = opts[:'template_id'] if !opts[:'template_id'].nil?
query_params[:'sendingTime'] = opts[:'sending_time'] if !opts[:'sending_time'].nil?
query_params[:'sendingDateTime'] = opts[:'sending_date_time'] if !opts[:'sending_date_time'].nil?
query_params[:'sendingTimezone'] = opts[:'sending_timezone'] if !opts[:'sending_timezone'].nil?
query_params[:'contacts'] = opts[:'contacts'] if !opts[:'contacts'].nil?
query_params[:'lists'] = opts[:'lists'] if !opts[:'lists'].nil?
query_params[:'phones'] = opts[:'phones'] if !opts[:'phones'].nil?
query_params[:'cutExtra'] = opts[:'cut_extra'] if !opts[:'cut_extra'].nil?
query_params[:'partsCount'] = opts[:'parts_count'] if !opts[:'parts_count'].nil?
query_params[:'referenceId'] = opts[:'reference_id'] if !opts[:'reference_id'].nil?
query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
query_params[:'rule'] = opts[:'rule'] if !opts[:'rule'].nil?
query_params[:'createChat'] = opts[:'create_chat'] if !opts[:'create_chat'].nil?
query_params[:'tts'] = opts[:'tts'] if !opts[:'tts'].nil?
query_params[:'local'] = opts[:'local'] if !opts[:'local'].nil?
query_params[:'localCountry'] = opts[:'local_country'] if !opts[:'local_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 => 'GetMessagePreviewResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_message_preview\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_message_preview(opts = {})\n data, _status_code, _headers = get_message_preview_with_http_info(opts)\n data\n end",
"def preview(channel_id, msg_id, data)\n channel_config, message_config, text =\n prepare_message(channel_id, msg_id, data)\n chats = channel_config.chat_ids\n... | [
"0.6530224",
"0.6166224",
"0.5925884",
"0.5831855",
"0.58055127",
"0.5651525",
"0.5566127",
"0.55594224",
"0.5545884",
"0.5541486",
"0.5509259",
"0.5476976",
"0.544508",
"0.54205257",
"0.5411703",
"0.536508",
"0.5313717",
"0.53040284",
"0.5284846",
"0.52767354",
"0.52699256",... | 0.5687131 | 5 |
Check message price Check pricing for a new outbound message. | def get_message_price(opts = {})
data, _status_code, _headers = get_message_price_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def check_new_price\n begin\n new_price = Float(params[:item][:new_price])\n add_price_error if new_price < 0\n rescue\n add_price_error\n end\n end",
"def check_price\n end",
"def extra_price_for(object, base_price = nil)\n base_price ||= base_price_for(object)\n\n case o... | [
"0.6593383",
"0.6452124",
"0.59974444",
"0.5986775",
"0.5966281",
"0.58952475",
"0.58533746",
"0.58249193",
"0.580803",
"0.5806483",
"0.58024544",
"0.57975745",
"0.5705498",
"0.56959754",
"0.5668175",
"0.56625646",
"0.5658303",
"0.5658269",
"0.56519973",
"0.5643669",
"0.56421... | 0.59616363 | 5 |
Check message price Check pricing for a new outbound message. | def get_message_price_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_message_price ...'
end
# resource path
local_var_path = '/api/v2/messages/price/normalized'
# query parameters
query_params = {}
query_params[:'includeBlocked'] = opts[:'include_blocked'] if !opts[:'include_blocked'].nil?
query_params[:'text'] = opts[:'text'] if !opts[:'text'].nil?
query_params[:'templateId'] = opts[:'template_id'] if !opts[:'template_id'].nil?
query_params[:'sendingTime'] = opts[:'sending_time'] if !opts[:'sending_time'].nil?
query_params[:'sendingDateTime'] = opts[:'sending_date_time'] if !opts[:'sending_date_time'].nil?
query_params[:'sendingTimezone'] = opts[:'sending_timezone'] if !opts[:'sending_timezone'].nil?
query_params[:'contacts'] = opts[:'contacts'] if !opts[:'contacts'].nil?
query_params[:'lists'] = opts[:'lists'] if !opts[:'lists'].nil?
query_params[:'phones'] = opts[:'phones'] if !opts[:'phones'].nil?
query_params[:'cutExtra'] = opts[:'cut_extra'] if !opts[:'cut_extra'].nil?
query_params[:'partsCount'] = opts[:'parts_count'] if !opts[:'parts_count'].nil?
query_params[:'referenceId'] = opts[:'reference_id'] if !opts[:'reference_id'].nil?
query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
query_params[:'rule'] = opts[:'rule'] if !opts[:'rule'].nil?
query_params[:'createChat'] = opts[:'create_chat'] if !opts[:'create_chat'].nil?
query_params[:'tts'] = opts[:'tts'] if !opts[:'tts'].nil?
query_params[:'local'] = opts[:'local'] if !opts[:'local'].nil?
query_params[:'localCountry'] = opts[:'local_country'] if !opts[:'local_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 => 'GetMessagePriceResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_message_price\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def check_new_price\n begin\n new_price = Float(params[:item][:new_price])\n add_price_error if new_price < 0\n rescue\n add_price_error\n end\n end",
"def check_price\n end",
"def extra_price_for(object, base_price = nil)\n base_price ||= base_price_for(object)\n\n case o... | [
"0.6593383",
"0.6452124",
"0.59974444",
"0.5986775",
"0.5966281",
"0.59616363",
"0.58952475",
"0.58533746",
"0.58249193",
"0.580803",
"0.5806483",
"0.58024544",
"0.57975745",
"0.5705498",
"0.56959754",
"0.5668175",
"0.56625646",
"0.5658303",
"0.5658269",
"0.56519973",
"0.5643... | 0.0 | -1 |
Get a session`s statistics | def get_message_session_stat(id, opts = {})
data, _status_code, _headers = get_message_session_stat_with_http_info(id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sessions\n response.present? ? response.totals_for_all_results['ga:sessions'] : 0\n end",
"def session_report\n ts = Time.now\n now = ts.to_i\n session_info = Maglev::System.current_session_ids.map do |id|\n sess_desc = Maglev::System.description_of_session id\n ses... | [
"0.73868924",
"0.7278388",
"0.719016",
"0.6576669",
"0.65101564",
"0.6496115",
"0.6496115",
"0.6453354",
"0.6441494",
"0.643597",
"0.643597",
"0.6390817",
"0.6358827",
"0.6354333",
"0.6331046",
"0.6322462",
"0.63130444",
"0.6276383",
"0.6273558",
"0.62699395",
"0.62647897",
... | 0.63141394 | 16 |
Get a session&x60;s statistics | def get_message_session_stat_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_message_session_stat ...'
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_message_session_stat"
end
# resource path
local_var_path = '/api/v2/sessions/{id}/stat'.sub('{' + 'id' + '}', id.to_s)
# query parameters
query_params = {}
query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].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 => 'GetMessageSessionStatResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_message_session_stat\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def session_report\n ts = Time.now\n now = ts.to_i\n session_info = Maglev::System.current_session_ids.map do |id|\n sess_desc = Maglev::System.description_of_session id\n sess_desc[0] = sess_desc[0].instance_variable_get(:@_st_userId) # UserProfile\n sess_desc[3] = ... | [
"0.75165594",
"0.7462265",
"0.7184057",
"0.65651584",
"0.65651584",
"0.6517869",
"0.65090656",
"0.64929926",
"0.6484183",
"0.64369106",
"0.6423351",
"0.64176273",
"0.6366176",
"0.6296069",
"0.6292165",
"0.6284176",
"0.6283448",
"0.6276221",
"0.6276221",
"0.62731457",
"0.62607... | 0.0 | -1 |
Get a session`s messages A useful synonym for the \"messages/search\" command with the provided \"sessionId\" parameter. | def get_messages_by_session_id(id, opts = {})
data, _status_code, _headers = get_messages_by_session_id_with_http_info(id, opts)
data
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 messages options = {}\n query = {\n \"skip\" => options[:skip],\n \"beforeId\" => options[:before],\n \"afterId\" => optio... | [
"0.6406194",
"0.6345107",
"0.614102",
"0.6104657",
"0.60926545",
"0.5995338",
"0.59655815",
"0.59313244",
"0.59048116",
"0.57823205",
"0.57729137",
"0.57493705",
"0.57387",
"0.5722351",
"0.57158756",
"0.5712454",
"0.5705955",
"0.56931365",
"0.5651751",
"0.5651751",
"0.5623022... | 0.67298794 | 0 |
Get a session&x60;s messages A useful synonym for the \"messages/search\" command with the provided \"sessionId\" parameter. | def get_messages_by_session_id_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_messages_by_session_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_messages_by_session_id"
end
if @api_client.config.client_side_validation && opts[:'statuses'] && !['q', 's', 'e', 'r', 'a', 'd', 'b', 'f', 'u', 'j', 'i', 'p', 'h'].include?(opts[:'statuses'])
fail ArgumentError, 'invalid value for "statuses", must be one of q, s, e, r, a, d, b, f, u, j, i, p, h'
end
# resource path
local_var_path = '/api/v2/sessions/{id}/messages'.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[:'statuses'] = opts[:'statuses'] if !opts[:'statuses'].nil?
query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].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 => 'GetMessagesBySessionIdPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_messages_by_session_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_messages_by_session_id(id, opts = {})\n data, _status_code, _headers = get_messages_by_session_id_with_http_info(id, opts)\n data\n end",
"def messages options = {}\n query = {\n \"skip\" => options[:skip],\n \"beforeId\" => options[:before],\n \"afterId... | [
"0.6546058",
"0.62676173",
"0.62006587",
"0.60989535",
"0.5996828",
"0.59743166",
"0.59372276",
"0.5920347",
"0.5901652",
"0.5776314",
"0.57647425",
"0.5759687",
"0.5667575",
"0.56610805",
"0.56582844",
"0.56582844",
"0.56542337",
"0.5635699",
"0.56239784",
"0.5616937",
"0.56... | 0.5359365 | 44 |
Get sent/received messages counters values Get total contacts, sent messages and received messages counters values. | def get_messaging_counters(opts = {})
data, _status_code, _headers = get_messaging_counters_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def count_recipients\n count = 0\n @counters[:recipients].each_value { |cnt| count += cnt }\n count\n end",
"def message_count\n\t s = status\n\t\t\ts[:message_count]\n\t end",
"def stats\n {\n in_msgs: @msgs_received,\n out_msgs: @msgs_sent,\n in_bytes: @bytes_received,... | [
"0.6720851",
"0.664171",
"0.662248",
"0.6617339",
"0.6308398",
"0.6212984",
"0.6179614",
"0.61249095",
"0.60943925",
"0.6057875",
"0.605114",
"0.60428727",
"0.6030899",
"0.6004628",
"0.5986916",
"0.597263",
"0.59142804",
"0.5875235",
"0.58637655",
"0.5831291",
"0.5827773",
... | 0.6193108 | 6 |
Get sent/received messages counters values Get total contacts, sent messages and received messages counters values. | def get_messaging_counters_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_messaging_counters ...'
end
# resource path
local_var_path = '/api/v2/stats/messaging/data'
# 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 => 'GetMessagingCountersResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_messaging_counters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def count_recipients\n count = 0\n @counters[:recipients].each_value { |cnt| count += cnt }\n count\n end",
"def message_count\n\t s = status\n\t\t\ts[:message_count]\n\t end",
"def stats\n {\n in_msgs: @msgs_received,\n out_msgs: @msgs_sent,\n in_bytes: @bytes_received,... | [
"0.672089",
"0.6642299",
"0.6623991",
"0.66181433",
"0.63087463",
"0.621341",
"0.6193017",
"0.61815476",
"0.61250615",
"0.6094845",
"0.605838",
"0.6051819",
"0.60439235",
"0.6031959",
"0.60056615",
"0.5987524",
"0.5973798",
"0.59132326",
"0.58653206",
"0.5831676",
"0.58280194... | 0.58750343 | 18 |
Get a single message Get a single outgoing message. | def get_outbound_message(id, opts = {})
data, _status_code, _headers = get_outbound_message_with_http_info(id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def message(id)\n Message.new(request(:get, \"messages/#{id}\"))\n end",
"def message(id)\n Message.new(request(:get, \"messages/#{id.to_s}\"))\n end",
"def get_message(id, options = nil)\r\n @client.raw('get', \"/content/messages/#{id}\", options, nil, @contact_v1_url)\r\n end",
"def mes... | [
"0.686245",
"0.68353605",
"0.67345136",
"0.64852005",
"0.6416583",
"0.6366758",
"0.63518584",
"0.63033134",
"0.628501",
"0.62343085",
"0.61803514",
"0.61417836",
"0.610393",
"0.5961247",
"0.59601617",
"0.59579873",
"0.5927177",
"0.5890034",
"0.5871017",
"0.58706594",
"0.58542... | 0.6085537 | 13 |
Get a single message Get a single outgoing message. | def get_outbound_message_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_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.get_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 '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 => 'MessageOut')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_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 message(id)\n Message.new(request(:get, \"messages/#{id}\"))\n end",
"def message(id)\n Message.new(request(:get, \"messages/#{id.to_s}\"))\n end",
"def get_message(id, options = nil)\r\n @client.raw('get', \"/content/messages/#{id}\", options, nil, @contact_v1_url)\r\n end",
"def mes... | [
"0.686245",
"0.68353605",
"0.67345136",
"0.64852005",
"0.6416583",
"0.6366758",
"0.63518584",
"0.63033134",
"0.628501",
"0.62343085",
"0.61803514",
"0.61417836",
"0.610393",
"0.6085537",
"0.5961247",
"0.59601617",
"0.59579873",
"0.5927177",
"0.5890034",
"0.5871017",
"0.587065... | 0.5181322 | 92 |
Get history Get the outbound messages history. | def get_outbound_messages_history(opts = {})
data, _status_code, _headers = get_outbound_messages_history_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def history\n return @history\n end",
"def history\n return @history\n end",
"def get_history\n @request_history = Request.history_request\n end",
"def history\n History\n end",
"def history\r\n []\r\n end",
"def history\n @histor... | [
"0.7411142",
"0.7411142",
"0.70594484",
"0.7026078",
"0.69701016",
"0.6949593",
"0.68453085",
"0.682856",
"0.68132687",
"0.67852527",
"0.6782159",
"0.6774389",
"0.6658431",
"0.6658431",
"0.6624386",
"0.6623971",
"0.66025007",
"0.6596631",
"0.650968",
"0.64792883",
"0.64629644... | 0.7578852 | 0 |
Get history Get the outbound messages history. | def get_outbound_messages_history_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_outbound_messages_history ...'
end
if @api_client.config.client_side_validation && opts[:'order_by'] && !['id', 'phone', 'sender', 'firstName', 'lastName', 'messageTime'].include?(opts[:'order_by'])
fail ArgumentError, 'invalid value for "order_by", must be one of id, phone, sender, firstName, lastName, messageTime'
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/history'
# query parameters
query_params = {}
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
query_params[:'lastId'] = opts[:'last_id'] if !opts[:'last_id'].nil?
query_params[:'query'] = opts[:'query'] if !opts[:'query'].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 => 'GetOutboundMessagesHistoryPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_outbound_messages_history\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_outbound_messages_history(opts = {})\n data, _status_code, _headers = get_outbound_messages_history_with_http_info(opts)\n data\n end",
"def history\n return @history\n end",
"def history\n return @history\n end",
"def get_history\n ... | [
"0.7578111",
"0.74130255",
"0.74130255",
"0.70612633",
"0.7028675",
"0.6972458",
"0.69516903",
"0.6847314",
"0.6830543",
"0.6814858",
"0.67874235",
"0.6785024",
"0.6776055",
"0.66608024",
"0.66608024",
"0.6626178",
"0.6626169",
"0.66038585",
"0.65990245",
"0.65105295",
"0.648... | 0.57837725 | 76 |
Get a single scheduled message | def get_scheduled_message(id, opts = {})
data, _status_code, _headers = get_scheduled_message_with_http_info(id, 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 message\n @messages.first\n end",
"def get(message_id)\r\n messages.detect { |message| message.message_id.t... | [
"0.66518474",
"0.65626895",
"0.6215749",
"0.6115346",
"0.6090704",
"0.6081896",
"0.6053956",
"0.5949585",
"0.5887132",
"0.58086467",
"0.5804464",
"0.57887733",
"0.5782355",
"0.5770795",
"0.57702214",
"0.5769207",
"0.5768445",
"0.57300913",
"0.57213974",
"0.56993484",
"0.56914... | 0.67675114 | 0 |
Get a single scheduled message | def get_scheduled_message_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_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.get_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 '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 => 'MessagesIcs')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_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 get_scheduled_message(id, opts = {})\n data, _status_code, _headers = get_scheduled_message_with_http_info(id, opts)\n data\n end",
"def query_scheduled_messages(options = nil)\n require_relative 'scheduledmessage'\n @api.cursor(ScheduledMessage, get_base_api_path() + \"/scheduled\... | [
"0.67675114",
"0.66518474",
"0.65626895",
"0.6215749",
"0.6115346",
"0.6090704",
"0.6081896",
"0.6053956",
"0.5949585",
"0.58086467",
"0.5804464",
"0.57887733",
"0.5782355",
"0.5770795",
"0.57702214",
"0.5769207",
"0.5768445",
"0.57300913",
"0.57213974",
"0.56993484",
"0.5691... | 0.5887132 | 9 |
Get the details of a specific Sender ID | def get_sender_id(id, opts = {})
data, _status_code, _headers = get_sender_id_with_http_info(id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sender\n sender = User.where(:uid => sender_uid)\n sender.first\n end",
"def sender(sender_id)\n if sender = User.find(sender_id)\n address = default_sender_address\n address.display_name = sender.name\n address.format\n end\n end",
"def get_sender(sender_id, opts = {})\n da... | [
"0.6966269",
"0.69315916",
"0.6792524",
"0.6712082",
"0.6677559",
"0.6573448",
"0.6468027",
"0.64644325",
"0.6457501",
"0.64296025",
"0.6352799",
"0.6337523",
"0.6291561",
"0.6188592",
"0.6170556",
"0.6164556",
"0.6159272",
"0.6158007",
"0.61566466",
"0.61472803",
"0.60612667... | 0.5941351 | 23 |
Get the details of a specific Sender ID | def get_sender_id_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_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.get_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 '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 => 'SenderId')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_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 sender\n sender = User.where(:uid => sender_uid)\n sender.first\n end",
"def sender(sender_id)\n if sender = User.find(sender_id)\n address = default_sender_address\n address.display_name = sender.name\n address.format\n end\n end",
"def get_sender(sender_id, opts = {})\n da... | [
"0.6966991",
"0.6931648",
"0.67903864",
"0.6714589",
"0.66778576",
"0.6574162",
"0.64665985",
"0.6465931",
"0.64593667",
"0.6430516",
"0.63518983",
"0.629244",
"0.6190081",
"0.616992",
"0.616626",
"0.6160707",
"0.6158931",
"0.61566883",
"0.6148511",
"0.60619223",
"0.60100263"... | 0.63358116 | 11 |
Get all your approved Sender IDs | def get_sender_ids(opts = {})
data, _status_code, _headers = get_sender_ids_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def recipient_ids\n deliveries.map { |d| d.recipient.to_global_id }\n end",
"def email_ids\n []\n end",
"def requester_ids\n @requester_ids ||= []\n end",
"def visible_request_ids_for_approver\n visible_states = [ApprovalStates::NOTIFIED_STATE, ApprovalStates::COMPLETED_STATE... | [
"0.6685632",
"0.645628",
"0.6322417",
"0.626001",
"0.6257378",
"0.6169503",
"0.61105347",
"0.61076105",
"0.6088466",
"0.608482",
"0.608482",
"0.5960556",
"0.5953996",
"0.59098434",
"0.58959556",
"0.5855307",
"0.58528614",
"0.58528614",
"0.58528614",
"0.5848835",
"0.5837629",
... | 0.62771 | 3 |
Get all your approved Sender IDs | def get_sender_ids_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_sender_ids ...'
end
# resource path
local_var_path = '/api/v2/senderids'
# 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 => 'GetSenderIdsPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_sender_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 recipient_ids\n deliveries.map { |d| d.recipient.to_global_id }\n end",
"def email_ids\n []\n end",
"def requester_ids\n @requester_ids ||= []\n end",
"def get_sender_ids(opts = {})\n data, _status_code, _headers = get_sender_ids_with_http_info(opts)\n data\n end",
... | [
"0.6685632",
"0.645628",
"0.6322417",
"0.62771",
"0.626001",
"0.6257378",
"0.6169503",
"0.61105347",
"0.61076105",
"0.6088466",
"0.608482",
"0.608482",
"0.5960556",
"0.5953996",
"0.59098434",
"0.58959556",
"0.5855307",
"0.58528614",
"0.58528614",
"0.58528614",
"0.5848835",
... | 0.0 | -1 |
Get current sender settings | def get_sender_settings(opts = {})
data, _status_code, _headers = get_sender_settings_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def default_sender\n DEFAULT_SENDER\n end",
"def settings\n MailSettings.new.mail_server_settings\n end",
"def sender_message\n return @sender_message\n end",
"def get_settings\n settings.get\n end",
"def text_message_default_sender\n current... | [
"0.6748963",
"0.6513158",
"0.6450566",
"0.6437159",
"0.6402681",
"0.6288586",
"0.62714565",
"0.6246455",
"0.62222296",
"0.62222296",
"0.6200495",
"0.61947757",
"0.61947757",
"0.6182579",
"0.61824876",
"0.6170361",
"0.6152971",
"0.6151164",
"0.6143899",
"0.6143843",
"0.6108979... | 0.77393186 | 0 |
Get current sender settings | def get_sender_settings_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_sender_settings ...'
end
# resource path
local_var_path = '/api/v2/sender/settings/normalized'
# 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 => 'GetSenderSettingsResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_sender_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_sender_settings(opts = {})\n data, _status_code, _headers = get_sender_settings_with_http_info(opts)\n data\n end",
"def default_sender\n DEFAULT_SENDER\n end",
"def settings\n MailSettings.new.mail_server_settings\n end",
"def sender_message\n return @send... | [
"0.77392787",
"0.6749134",
"0.65129465",
"0.645064",
"0.6436665",
"0.64025676",
"0.62883013",
"0.62719244",
"0.62467164",
"0.62225324",
"0.62225324",
"0.6200264",
"0.619449",
"0.619449",
"0.61825716",
"0.6170304",
"0.6153238",
"0.6151032",
"0.6144035",
"0.6143457",
"0.6109454... | 0.618232 | 15 |
Get a subaccounts list | def get_subaccounts(opts = {})
data, _status_code, _headers = get_subaccounts_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def subaccounts()\n get('subAccounts')\n end",
"def sub_accounts(conditions = {})\n client.accounts.list(conditions)\n end",
"def get_sub_accounts(subdomain,account_id)\n token = get_token\n subaccount_ids = get_all_pages(\n token,\n \"https://#{subdomain}.instructure.com/api/v1... | [
"0.85674167",
"0.8506556",
"0.8250618",
"0.75579464",
"0.7256952",
"0.7181496",
"0.6855755",
"0.6841971",
"0.67468816",
"0.6564278",
"0.6505293",
"0.6502531",
"0.6498514",
"0.6480828",
"0.6447497",
"0.63885695",
"0.62367016",
"0.6233138",
"0.62268645",
"0.6197056",
"0.6186749... | 0.8055389 | 3 |
Get a subaccounts list | def get_subaccounts_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_subaccounts ...'
end
# resource path
local_var_path = '/api/v2/subaccounts'
# 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 => 'User')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_subaccounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def subaccounts()\n get('subAccounts')\n end",
"def sub_accounts(conditions = {})\n client.accounts.list(conditions)\n end",
"def get_sub_accounts(subdomain,account_id)\n token = get_token\n subaccount_ids = get_all_pages(\n token,\n \"https://#{subdomain}.instructure.com/api/v1... | [
"0.85674167",
"0.8506556",
"0.8250618",
"0.8055389",
"0.75579464",
"0.7256952",
"0.7181496",
"0.6855755",
"0.6841971",
"0.67468816",
"0.6564278",
"0.6505293",
"0.6502531",
"0.6480828",
"0.6447497",
"0.63885695",
"0.62367016",
"0.6233138",
"0.62268645",
"0.6197056",
"0.6186749... | 0.6498514 | 13 |
Get all subaccounts with their REST API tokens associated with a specified app name Get all subaccounts with their REST API tokens associated with specified app name. When more than one token related to app name, last key will be returned. | def get_subaccounts_with_tokens(get_subaccounts_with_tokens_input_object, opts = {})
data, _status_code, _headers = get_subaccounts_with_tokens_with_http_info(get_subaccounts_with_tokens_input_object, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def subaccounts()\n get('subAccounts')\n end",
"def sub_accounts(conditions = {})\n client.accounts.list(conditions)\n end",
"def get_all(account_key, next_page=nil)\n args = ZAPIArgs.new\n\n if next_page\n args.uri = next_page\n else\n args.uri = Resource_Endpoints::GET_SUBS... | [
"0.6362536",
"0.60143995",
"0.5912891",
"0.5739434",
"0.5591668",
"0.5491446",
"0.54750735",
"0.5338319",
"0.5307248",
"0.5279893",
"0.52603006",
"0.52591765",
"0.5240377",
"0.5235518",
"0.52210534",
"0.52154267",
"0.51921463",
"0.5177196",
"0.5171914",
"0.51355386",
"0.51319... | 0.5600471 | 4 |
Get all subaccounts with their REST API tokens associated with a specified app name Get all subaccounts with their REST API tokens associated with specified app name. When more than one token related to app name, last key will be returned. | def get_subaccounts_with_tokens_with_http_info(get_subaccounts_with_tokens_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_subaccounts_with_tokens ...'
end
# verify the required parameter 'get_subaccounts_with_tokens_input_object' is set
if @api_client.config.client_side_validation && get_subaccounts_with_tokens_input_object.nil?
fail ArgumentError, "Missing the required parameter 'get_subaccounts_with_tokens_input_object' when calling TextMagicApi.get_subaccounts_with_tokens"
end
# resource path
local_var_path = '/api/v2/subaccounts/tokens/list'
# 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 = @api_client.object_to_http_body(get_subaccounts_with_tokens_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 => 'GetSubaccountsWithTokensResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_subaccounts_with_tokens\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def subaccounts()\n get('subAccounts')\n end",
"def sub_accounts(conditions = {})\n client.accounts.list(conditions)\n end",
"def get_all(account_key, next_page=nil)\n args = ZAPIArgs.new\n\n if next_page\n args.uri = next_page\n else\n args.uri = Resource_Endpoints::GET_SUBS... | [
"0.63626945",
"0.6014102",
"0.59129304",
"0.573989",
"0.560089",
"0.55916864",
"0.54927886",
"0.54757094",
"0.5339441",
"0.5307776",
"0.527988",
"0.52604944",
"0.52590674",
"0.52405137",
"0.5235945",
"0.5220663",
"0.51923484",
"0.5177047",
"0.51721084",
"0.51362854",
"0.51318... | 0.52163374 | 16 |
Get a template`s details Get a single template. | def get_template(id, opts = {})
data, _status_code, _headers = get_template_with_http_info(id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def details\n response = get \"/templates/#{template_id}.json\", {}\n Hashie::Mash.new(response)\n end",
"def template_details(template_id)\n @api.get(\"#{@api.path}/List/#{@id}/Templates/#{template_id}\")\n end",
"def get_template(template_name)\n self.api_get(:template, {:templa... | [
"0.82103354",
"0.8074094",
"0.8027807",
"0.7997452",
"0.76283133",
"0.7560468",
"0.7295071",
"0.7295071",
"0.72287095",
"0.72086054",
"0.7106103",
"0.7093578",
"0.70612663",
"0.6983198",
"0.6947837",
"0.694003",
"0.68642783",
"0.67974156",
"0.67385787",
"0.6698204",
"0.664343... | 0.65214264 | 24 |
Get a template&x60;s details Get a single template. | def get_template_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_template ...'
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_template"
end
# resource path
local_var_path = '/api/v2/templates/{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 => 'MessageTemplate')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_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 details\n response = get \"/templates/#{template_id}.json\", {}\n Hashie::Mash.new(response)\n end",
"def details\n response = CreateSend.get \"/templates/#{template_id}.json\", {}\n Hashie::Mash.new(response)\n end",
"def template_details(template_id)\n @api.get(\"#{@api.p... | [
"0.82101136",
"0.8067716",
"0.8054376",
"0.76795936",
"0.75397426",
"0.72334236",
"0.7216215",
"0.7216215",
"0.7165392",
"0.7147645",
"0.70823383",
"0.70791495",
"0.70062935",
"0.70021254",
"0.6932991",
"0.6879898",
"0.6795008",
"0.6785331",
"0.6729719",
"0.65966177",
"0.6551... | 0.57987314 | 82 |
Get timezones Return all available timezone IDs | def get_timezones(opts = {})
data, _status_code, _headers = get_timezones_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def timezones\n response = @client.get 'scans/timezones'\n verify response,\n unauthorized: 'You do not have permission to view timezones',\n internal_server_error: 'Internal server error occurred'\n end",
"def timezone_identifiers\n @timezone_index\n end",
"def tim... | [
"0.78660613",
"0.7487849",
"0.7443412",
"0.7229486",
"0.72229517",
"0.68629766",
"0.67445225",
"0.6694396",
"0.6601924",
"0.65996677",
"0.65397733",
"0.65242285",
"0.64595985",
"0.64595985",
"0.643954",
"0.63825107",
"0.6363518",
"0.6360144",
"0.6316441",
"0.6316441",
"0.6316... | 0.7176685 | 5 |
Get timezones Return all available timezone IDs | def get_timezones_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_timezones ...'
end
# resource path
local_var_path = '/api/v2/timezones'
# query parameters
query_params = {}
query_params[:'full'] = opts[:'full'] if !opts[:'full'].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 => 'GetTimezonesResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_timezones\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def timezones\n response = @client.get 'scans/timezones'\n verify response,\n unauthorized: 'You do not have permission to view timezones',\n internal_server_error: 'Internal server error occurred'\n end",
"def timezone_identifiers\n @timezone_index\n end",
"def tim... | [
"0.78665715",
"0.7486531",
"0.7443787",
"0.7229529",
"0.7223249",
"0.7178656",
"0.68630886",
"0.6743173",
"0.66960007",
"0.66022146",
"0.6600737",
"0.6539404",
"0.652301",
"0.64594924",
"0.64594924",
"0.64403224",
"0.63825524",
"0.6363834",
"0.6361351",
"0.6315",
"0.6315",
... | 0.0 | -1 |
Get unread messages number Get the total amount of unread messages in the current user chats. | def get_unread_messages_total(opts = {})
data, _status_code, _headers = get_unread_messages_total_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unread_messages_count\n @unread_messages_count ||= messages.unread.count\n end",
"def chat_unread_count\n unread = 0\n chats = Chat.or(\n { employer_username: self.username },\n { freelancer_username: self.username },\n { service_provider_username: self.username }\n )\... | [
"0.81644994",
"0.8157788",
"0.7963727",
"0.794911",
"0.794911",
"0.794911",
"0.79461336",
"0.79264176",
"0.79050976",
"0.7754659",
"0.76562136",
"0.7502315",
"0.73947215",
"0.72802156",
"0.7245323",
"0.72438836",
"0.70579946",
"0.70380193",
"0.7016963",
"0.6957528",
"0.683999... | 0.71052885 | 16 |
Get unread messages number Get the total amount of unread messages in the current user chats. | def get_unread_messages_total_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_unread_messages_total ...'
end
# resource path
local_var_path = '/api/v2/chats/unread/count'
# 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 => 'GetUnreadMessagesTotalResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_unread_messages_total\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unread_messages_count\n @unread_messages_count ||= messages.unread.count\n end",
"def chat_unread_count\n unread = 0\n chats = Chat.or(\n { employer_username: self.username },\n { freelancer_username: self.username },\n { service_provider_username: self.username }\n )\... | [
"0.81643957",
"0.8158679",
"0.79648465",
"0.79489636",
"0.79489636",
"0.79489636",
"0.79472274",
"0.79280776",
"0.79045504",
"0.7756089",
"0.76577175",
"0.7503564",
"0.73952013",
"0.7280097",
"0.72465825",
"0.72441083",
"0.71043324",
"0.70601904",
"0.7039011",
"0.7018144",
"0... | 0.599657 | 56 |
Get the details of a specific unsubscribed contact | def get_unsubscribed_contact(id, opts = {})
data, _status_code, _headers = get_unsubscribed_contact_with_http_info(id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_unsubscribed_contact_with_http_info(id, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: TextMagicApi.get_unsubscribed_contact ...'\n end\n # verify the required parameter 'id' is set\n if @api_client.config.client_side_validation && id... | [
"0.6522355",
"0.6423259",
"0.60611385",
"0.6028247",
"0.5991516",
"0.58767223",
"0.58743453",
"0.58690614",
"0.5863636",
"0.580208",
"0.5747",
"0.5741183",
"0.5713209",
"0.5683876",
"0.56658375",
"0.5663876",
"0.5646716",
"0.563878",
"0.563878",
"0.563878",
"0.563878",
"0.5... | 0.66976875 | 0 |
Get the details of a specific unsubscribed contact | def get_unsubscribed_contact_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_unsubscribed_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_unsubscribed_contact"
end
# resource path
local_var_path = '/api/v2/unsubscribers/{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 => 'UnsubscribedContact')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_unsubscribed_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 get_unsubscribed_contact(id, opts = {})\n data, _status_code, _headers = get_unsubscribed_contact_with_http_info(id, opts)\n data\n end",
"def customer_mailchimp_unsubscribed\n {\n :list_id => data['list_id'],\n :fired_at => params['fired_at'],\n :mailchimp_id ... | [
"0.6698181",
"0.64220786",
"0.60616666",
"0.60280305",
"0.599213",
"0.5877211",
"0.587289",
"0.5868217",
"0.58629155",
"0.5801141",
"0.5747293",
"0.57402325",
"0.57140005",
"0.5683024",
"0.5666576",
"0.5663406",
"0.56457365",
"0.56391156",
"0.56391156",
"0.56391156",
"0.56391... | 0.65226555 | 1 |
Get all unsubscribed contacts When one of your message recipients sends a request with one of the [STOPwords]( they will be immediately optedout of your send lists and their contact status will change to an unsubscribed contact. To retrieve information on all contacts who have unsubscribed status, use: | def get_unsubscribers(opts = {})
data, _status_code, _headers = get_unsubscribers_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def calculate_recipients\n # binding.pry\n # SUBSCRIBERS - UNSUBSCRIBED\n SUBSCRIBERS.select { |subscriber| !UNSUBSCRIBED.include?(subscriber) }\n # Using the SUBSCRIBERS and UNSUBSCRIBED arrays,\n # write a method that will return an array of only the subscribers who haven't unsubscribed\nend",
"def calcul... | [
"0.65473074",
"0.6528659",
"0.6467307",
"0.6398122",
"0.63919187",
"0.6261667",
"0.6257816",
"0.6228231",
"0.61169577",
"0.6053851",
"0.59538555",
"0.5950211",
"0.593276",
"0.590647",
"0.5906184",
"0.5903673",
"0.58939344",
"0.58861166",
"0.5800372",
"0.5788963",
"0.5743229",... | 0.6138838 | 8 |
Get all unsubscribed contacts When one of your message recipients sends a request with one of the [STOPwords]( they will be immediately optedout of your send lists and their contact status will change to an unsubscribed contact. To retrieve information on all contacts who have unsubscribed status, use: | def get_unsubscribers_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_unsubscribers ...'
end
# resource path
local_var_path = '/api/v2/unsubscribers'
# 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 => 'GetUnsubscribersPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_unsubscribers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def calculate_recipients\n # binding.pry\n # SUBSCRIBERS - UNSUBSCRIBED\n SUBSCRIBERS.select { |subscriber| !UNSUBSCRIBED.include?(subscriber) }\n # Using the SUBSCRIBERS and UNSUBSCRIBED arrays,\n # write a method that will return an array of only the subscribers who haven't unsubscribed\nend",
"def calcul... | [
"0.65496504",
"0.6530409",
"0.6469601",
"0.63987",
"0.63915384",
"0.62641615",
"0.6260107",
"0.6230908",
"0.61404455",
"0.6116059",
"0.6055281",
"0.59529966",
"0.5952251",
"0.59352005",
"0.59059346",
"0.59052885",
"0.5905138",
"0.58939993",
"0.5887826",
"0.5798639",
"0.579047... | 0.0 | -1 |
Get all your dedicated numbers | def get_user_dedicated_numbers(opts = {})
data, _status_code, _headers = get_user_dedicated_numbers_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def available_digits\n @available_digits.to_a\n end",
"def get_numbers(quantity)\n Array.new(Integer(quantity)) do\n \"#{document_number_options[:prefix]}#{Numerator.next_number(to_s.underscore, document_number_options)}\"\n end\n rescue\n []\n end",
"def phone_numbe... | [
"0.65409577",
"0.62121135",
"0.6170017",
"0.61498314",
"0.61215496",
"0.6018405",
"0.598037",
"0.5959866",
"0.59440607",
"0.5884964",
"0.58474815",
"0.5811543",
"0.5799355",
"0.5777268",
"0.57385707",
"0.5738185",
"0.572648",
"0.57099545",
"0.5706282",
"0.5676702",
"0.5658759... | 0.56274486 | 25 |
Get all your dedicated numbers | def get_user_dedicated_numbers_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.get_user_dedicated_numbers ...'
end
# resource path
local_var_path = '/api/v2/numbers'
# query parameters
query_params = {}
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
query_params[:'surveyId'] = opts[:'survey_id'] if !opts[:'survey_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 => 'GetUserDedicatedNumbersPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#get_user_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 available_digits\n @available_digits.to_a\n end",
"def get_numbers(quantity)\n Array.new(Integer(quantity)) do\n \"#{document_number_options[:prefix]}#{Numerator.next_number(to_s.underscore, document_number_options)}\"\n end\n rescue\n []\n end",
"def phone_numbe... | [
"0.6541053",
"0.6210323",
"0.6167655",
"0.6148007",
"0.612066",
"0.601602",
"0.59808624",
"0.5958757",
"0.5943549",
"0.58828276",
"0.58467233",
"0.5810172",
"0.5799963",
"0.57771116",
"0.57374936",
"0.5737467",
"0.5724999",
"0.5709925",
"0.5704563",
"0.5673832",
"0.565855",
... | 0.0 | -1 |
Import contacts Import contacts from the CSV, XLS or XLSX file. | def import_contacts(file, column, opts = {})
data, _status_code, _headers = import_contacts_with_http_info(file, column, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def load_contacts\r\n CSV.open('contacts.csv', 'r').readlines.each{|file| file}\r\n end",
"def import(params)\r\n if lines = params[:contact][:import_text]\r\n lines = params[:contact][:import_text].gsub(\"\\n\", '').split(\"\\r\")\r\n if lines.count >= 2\r\n header_labels = lines[0].... | [
"0.7574248",
"0.73805064",
"0.7297475",
"0.7224105",
"0.7041539",
"0.67916363",
"0.6750672",
"0.6552534",
"0.6454743",
"0.64002746",
"0.6371074",
"0.63335437",
"0.63210607",
"0.6173736",
"0.61678445",
"0.6133019",
"0.6116172",
"0.6010934",
"0.59736437",
"0.5946439",
"0.586889... | 0.7338465 | 2 |
Import contacts Import contacts from the CSV, XLS or XLSX file. | def import_contacts_with_http_info(file, column, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.import_contacts ...'
end
# verify the required parameter 'file' is set
if @api_client.config.client_side_validation && file.nil?
fail ArgumentError, "Missing the required parameter 'file' when calling TextMagicApi.import_contacts"
end
# verify the required parameter 'column' is set
if @api_client.config.client_side_validation && column.nil?
fail ArgumentError, "Missing the required parameter 'column' when calling TextMagicApi.import_contacts"
end
# resource path
local_var_path = '/api/v2/contacts/import/normalized'
# query parameters
query_params = {}
query_params[:'column'] = column
query_params[:'listId'] = opts[:'list_id'] if !opts[:'list_id'].nil?
query_params[:'listName'] = opts[:'list_name'] if !opts[:'list_name'].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(['multipart/form-data'])
# form parameters
form_params = {}
form_params['file'] = file
# http body (model)
post_body = nil
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#import_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def load_contacts\r\n CSV.open('contacts.csv', 'r').readlines.each{|file| file}\r\n end",
"def import(params)\r\n if lines = params[:contact][:import_text]\r\n lines = params[:contact][:import_text].gsub(\"\\n\", '').split(\"\\r\")\r\n if lines.count >= 2\r\n header_labels = lines[0].... | [
"0.7574248",
"0.73805064",
"0.7338465",
"0.7297475",
"0.7224105",
"0.7041539",
"0.67916363",
"0.6750672",
"0.6552534",
"0.6454743",
"0.64002746",
"0.6371074",
"0.63335437",
"0.63210607",
"0.6173736",
"0.61678445",
"0.6133019",
"0.6116172",
"0.6010934",
"0.59736437",
"0.594643... | 0.55899936 | 42 |
Invite a new subaccount | def invite_subaccount(invite_subaccount_input_object, opts = {})
invite_subaccount_with_http_info(invite_subaccount_input_object, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def invite\n parent = {coparent_email: 'lalala@gmail.com', coparent_name: 'Vasco'}\n UserMailer.invite(parent)\n end",
"def invite\n \n end",
"def after_invite_existing_user(invite)\n # Add the user to the invitable resource/organization\n invite.invitable.add_invited_user(invite.recipient)\n ... | [
"0.6606508",
"0.65625715",
"0.6168016",
"0.6140043",
"0.613477",
"0.6131492",
"0.611746",
"0.6101295",
"0.6035027",
"0.6032484",
"0.59872687",
"0.5986569",
"0.5966565",
"0.59555554",
"0.5949514",
"0.594427",
"0.5909045",
"0.5893271",
"0.58570933",
"0.58421844",
"0.58311945",
... | 0.62945014 | 2 |
Invite a new subaccount | def invite_subaccount_with_http_info(invite_subaccount_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.invite_subaccount ...'
end
# verify the required parameter 'invite_subaccount_input_object' is set
if @api_client.config.client_side_validation && invite_subaccount_input_object.nil?
fail ArgumentError, "Missing the required parameter 'invite_subaccount_input_object' when calling TextMagicApi.invite_subaccount"
end
# resource path
local_var_path = '/api/v2/subaccounts'
# 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(invite_subaccount_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#invite_subaccount\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def invite\n parent = {coparent_email: 'lalala@gmail.com', coparent_name: 'Vasco'}\n UserMailer.invite(parent)\n end",
"def invite\n \n end",
"def invite_subaccount(invite_subaccount_input_object, opts = {})\n invite_subaccount_with_http_info(invite_subaccount_input_object, opts)\n nil\n ... | [
"0.6608249",
"0.6564398",
"0.6295334",
"0.61692923",
"0.6141774",
"0.61354357",
"0.6129462",
"0.61187667",
"0.6102716",
"0.6036679",
"0.6033415",
"0.59892935",
"0.5987789",
"0.5967009",
"0.59539366",
"0.5945613",
"0.5910676",
"0.58946824",
"0.5855933",
"0.5843548",
"0.5832960... | 0.59496534 | 15 |
Mark chats as read (bulk) Mark several chats as read by chat IDs or mark all chats as read | def mark_chats_read_bulk(mark_chats_read_bulk_input_object, opts = {})
mark_chats_read_bulk_with_http_info(mark_chats_read_bulk_input_object, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mark_as_read\n @client.post('/api/mod/conversations/read', conversationIds: [get_attribute(:id)])\n end",
"def mark_all_messages_as_read(options={})\n RecipientsFor::ReaderInfo.where(\n reciveable_type: options[:reciveable].class.name,\n reciveable_id: options[:reciveable... | [
"0.7150749",
"0.69250953",
"0.68616605",
"0.67821425",
"0.6698403",
"0.666996",
"0.6622546",
"0.65770984",
"0.6526859",
"0.6358373",
"0.6167395",
"0.6167395",
"0.6159485",
"0.6154862",
"0.6092571",
"0.60848236",
"0.6080582",
"0.6070324",
"0.6019237",
"0.60166365",
"0.6003088"... | 0.6633494 | 6 |
Mark chats as read (bulk) Mark several chats as read by chat IDs or mark all chats as read | def mark_chats_read_bulk_with_http_info(mark_chats_read_bulk_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.mark_chats_read_bulk ...'
end
# verify the required parameter 'mark_chats_read_bulk_input_object' is set
if @api_client.config.client_side_validation && mark_chats_read_bulk_input_object.nil?
fail ArgumentError, "Missing the required parameter 'mark_chats_read_bulk_input_object' when calling TextMagicApi.mark_chats_read_bulk"
end
# resource path
local_var_path = '/api/v2/chats/read/bulk'
# 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(mark_chats_read_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#mark_chats_read_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 mark_as_read\n @client.post('/api/mod/conversations/read', conversationIds: [get_attribute(:id)])\n end",
"def mark_all_messages_as_read(options={})\n RecipientsFor::ReaderInfo.where(\n reciveable_type: options[:reciveable].class.name,\n reciveable_id: options[:reciveable... | [
"0.71503663",
"0.6925321",
"0.68609285",
"0.67814565",
"0.66979545",
"0.6669235",
"0.66327363",
"0.66220146",
"0.65756285",
"0.6526504",
"0.6358409",
"0.6167426",
"0.6167426",
"0.6159066",
"0.6155728",
"0.60934573",
"0.6084543",
"0.6080412",
"0.6070386",
"0.6019098",
"0.60167... | 0.5224722 | 62 |
Mark chats as unread (bulk) Mark several chats as UNread by chat IDs or mark all chats as UNread | def mark_chats_unread_bulk(mark_chats_unread_bulk_input_object, opts = {})
mark_chats_unread_bulk_with_http_info(mark_chats_unread_bulk_input_object, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mark_as_unread\n @client.post('/api/mod/conversations/unread', conversationIds: [get_attribute(:id)])\n end",
"def mark_as_unread\n update_attributes(is_read: false)\n end",
"def mark_as_unread\n update_attributes(:is_read => false)\n end",
"def mark_as_unread\n update_attribut... | [
"0.7134436",
"0.69959104",
"0.68669546",
"0.68669546",
"0.67898226",
"0.67449987",
"0.66587305",
"0.6593334",
"0.6574056",
"0.6450549",
"0.64236706",
"0.63749295",
"0.6330067",
"0.63116103",
"0.6255747",
"0.6236522",
"0.62261087",
"0.6178323",
"0.6134722",
"0.61285573",
"0.61... | 0.699035 | 2 |
Mark chats as unread (bulk) Mark several chats as UNread by chat IDs or mark all chats as UNread | def mark_chats_unread_bulk_with_http_info(mark_chats_unread_bulk_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.mark_chats_unread_bulk ...'
end
# verify the required parameter 'mark_chats_unread_bulk_input_object' is set
if @api_client.config.client_side_validation && mark_chats_unread_bulk_input_object.nil?
fail ArgumentError, "Missing the required parameter 'mark_chats_unread_bulk_input_object' when calling TextMagicApi.mark_chats_unread_bulk"
end
# resource path
local_var_path = '/api/v2/chats/unread/bulk'
# 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(mark_chats_unread_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#mark_chats_unread_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 mark_as_unread\n @client.post('/api/mod/conversations/unread', conversationIds: [get_attribute(:id)])\n end",
"def mark_as_unread\n update_attributes(is_read: false)\n end",
"def mark_chats_unread_bulk(mark_chats_unread_bulk_input_object, opts = {})\n mark_chats_unread_bulk_with_ht... | [
"0.7134125",
"0.69964296",
"0.6989787",
"0.68671674",
"0.68671674",
"0.6790268",
"0.6745528",
"0.6657037",
"0.6593173",
"0.65734136",
"0.64503753",
"0.6422497",
"0.6374398",
"0.63299704",
"0.6311821",
"0.6255155",
"0.62365186",
"0.62244236",
"0.61771023",
"0.61340994",
"0.612... | 0.5434685 | 65 |
Mute chats (bulk) Mute several chats by chat ids or mute all chats. | def mute_chats_bulk(mute_chats_bulk_input_object, opts = {})
mute_chats_bulk_with_http_info(mute_chats_bulk_input_object, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mute(*params)\n channels, users = split_params(params)\n\n channels.each do |channel|\n if @channels.include?(channel) && !@muted_channels.include?(channel)\n @muted_channels << channel\n puts \"Muted channel #{channel}\"\n end\n end\n\n users.each do |user|\n unless @m... | [
"0.68046135",
"0.6800769",
"0.6619818",
"0.64987105",
"0.6257408",
"0.6089498",
"0.59682494",
"0.5967032",
"0.575303",
"0.56471217",
"0.5616277",
"0.56135017",
"0.5583972",
"0.55630136",
"0.552074",
"0.54971594",
"0.549014",
"0.5437869",
"0.5419353",
"0.5391895",
"0.53806704"... | 0.76988286 | 0 |
Mute chats (bulk) Mute several chats by chat ids or mute all chats. | def mute_chats_bulk_with_http_info(mute_chats_bulk_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.mute_chats_bulk ...'
end
# verify the required parameter 'mute_chats_bulk_input_object' is set
if @api_client.config.client_side_validation && mute_chats_bulk_input_object.nil?
fail ArgumentError, "Missing the required parameter 'mute_chats_bulk_input_object' when calling TextMagicApi.mute_chats_bulk"
end
# resource path
local_var_path = '/api/v2/chats/mute/bulk'
# 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(mute_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#mute_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 mute_chats_bulk(mute_chats_bulk_input_object, opts = {})\n mute_chats_bulk_with_http_info(mute_chats_bulk_input_object, opts)\n nil\n end",
"def mute(*params)\n channels, users = split_params(params)\n\n channels.each do |channel|\n if @channels.include?(channel) && !@muted_channels.i... | [
"0.769818",
"0.6805209",
"0.680137",
"0.6621499",
"0.64977604",
"0.6257803",
"0.6090232",
"0.5968545",
"0.59673125",
"0.5754113",
"0.5646771",
"0.561648",
"0.5613914",
"0.5584236",
"0.5563333",
"0.552121",
"0.5498144",
"0.5438427",
"0.5419299",
"0.5392124",
"0.5381358",
"0.... | 0.54885924 | 17 |
Ping Make a simple ping request. | def ping(opts = {})
data, _status_code, _headers = ping_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ping\n TaxCloud::Responses::Ping.parse request(:ping)\n end",
"def ping\n response = connection.get(get_ping_url)\n if response.success?\n PingResponse.new(response.body)\n end\n end",
"def ping\n get('')\n end",
"def create_ping\n post 'ping'\n ... | [
"0.8297469",
"0.80574924",
"0.7791443",
"0.7767179",
"0.7753752",
"0.77500504",
"0.7699115",
"0.767708",
"0.76642156",
"0.7588267",
"0.7572717",
"0.7537281",
"0.7466979",
"0.74349546",
"0.74102014",
"0.7362383",
"0.7361658",
"0.7349081",
"0.73212016",
"0.7252316",
"0.7225841"... | 0.76375437 | 9 |
Ping Make a simple ping request. | def ping_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.ping ...'
end
# resource path
local_var_path = '/api/v2/ping'
# 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 => 'PingResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#ping\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ping\n TaxCloud::Responses::Ping.parse request(:ping)\n end",
"def ping\n response = connection.get(get_ping_url)\n if response.success?\n PingResponse.new(response.body)\n end\n end",
"def ping\n get('')\n end",
"def create_ping\n post 'ping'\n ... | [
"0.8298445",
"0.80577797",
"0.77919805",
"0.7767271",
"0.7754327",
"0.7750492",
"0.7699576",
"0.76779824",
"0.76647246",
"0.7638304",
"0.75890195",
"0.7573117",
"0.75375426",
"0.7467629",
"0.7435196",
"0.74098444",
"0.73633015",
"0.73629695",
"0.7349825",
"0.7321653",
"0.7252... | 0.65950686 | 59 |
Reopen chats (bulk) Reopen chats by chat IDs or reopen all chats | def reopen_chats_bulk(reopen_chats_bulk_input_object, opts = {})
reopen_chats_bulk_with_http_info(reopen_chats_bulk_input_object, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def reopen_chats_bulk_with_http_info(reopen_chats_bulk_input_object, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: TextMagicApi.reopen_chats_bulk ...'\n end\n # verify the required parameter 'reopen_chats_bulk_input_object' is set\n if @api_... | [
"0.58005404",
"0.550175",
"0.5260314",
"0.52161825",
"0.5188013",
"0.5178272",
"0.50642896",
"0.5054193",
"0.500447",
"0.4997458",
"0.49561906",
"0.4920658",
"0.49154964",
"0.48810607",
"0.48707506",
"0.48680297",
"0.4861022",
"0.48587617",
"0.48548827",
"0.48548827",
"0.4836... | 0.7437149 | 0 |
Reopen chats (bulk) Reopen chats by chat IDs or reopen all chats | def reopen_chats_bulk_with_http_info(reopen_chats_bulk_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.reopen_chats_bulk ...'
end
# verify the required parameter 'reopen_chats_bulk_input_object' is set
if @api_client.config.client_side_validation && reopen_chats_bulk_input_object.nil?
fail ArgumentError, "Missing the required parameter 'reopen_chats_bulk_input_object' when calling TextMagicApi.reopen_chats_bulk"
end
# resource path
local_var_path = '/api/v2/chats/reopen/bulk'
# 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(reopen_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#reopen_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 reopen_chats_bulk(reopen_chats_bulk_input_object, opts = {})\n reopen_chats_bulk_with_http_info(reopen_chats_bulk_input_object, opts)\n nil\n end",
"def close\n @chats.each {|chat| chat.close}\n end",
"def chats(*args)\n @client.get \"#{@path}/chats\", Hash[*args]\n end",
... | [
"0.7436253",
"0.55016524",
"0.52601993",
"0.5215645",
"0.5189119",
"0.5180108",
"0.5065576",
"0.50541556",
"0.50059074",
"0.49986896",
"0.49570853",
"0.4920799",
"0.4916898",
"0.48800218",
"0.48704267",
"0.48692125",
"0.48605815",
"0.48603156",
"0.4854188",
"0.4854188",
"0.48... | 0.57994574 | 1 |
Request a new REST API token for subaccount Returning user object, key and app name. | def request_new_subaccount_token(request_new_subaccount_token_input_object, opts = {})
data, _status_code, _headers = request_new_subaccount_token_with_http_info(request_new_subaccount_token_input_object, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def request_new_subaccount_token_with_http_info(request_new_subaccount_token_input_object, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: TextMagicApi.request_new_subaccount_token ...'\n end\n # verify the required parameter 'request_new_subaccoun... | [
"0.6590181",
"0.6310815",
"0.6258646",
"0.62409526",
"0.60684127",
"0.6040344",
"0.6019933",
"0.60127133",
"0.60104954",
"0.5994647",
"0.5973322",
"0.5972482",
"0.5876273",
"0.58749634",
"0.5803943",
"0.575575",
"0.57067287",
"0.56705123",
"0.562595",
"0.5613971",
"0.5598637"... | 0.6185709 | 4 |
Request a new REST API token for subaccount Returning user object, key and app name. | def request_new_subaccount_token_with_http_info(request_new_subaccount_token_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.request_new_subaccount_token ...'
end
# verify the required parameter 'request_new_subaccount_token_input_object' is set
if @api_client.config.client_side_validation && request_new_subaccount_token_input_object.nil?
fail ArgumentError, "Missing the required parameter 'request_new_subaccount_token_input_object' when calling TextMagicApi.request_new_subaccount_token"
end
# resource path
local_var_path = '/api/v2/subaccounts/tokens'
# 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(request_new_subaccount_token_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 => 'User')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#request_new_subaccount_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def auth_token\n AuthToken.new payload: { sub: user.id }\n end",
"def get_token\n return if @session_token\n\n response = request @google + '/accounts/AuthSubSessionToken'\n\n response.body =~ /^Token=(.*)/\n\n @authsub_token = $1\n @http.headers['Authorization'] = \"AuthSub token=\\\"#{@a... | [
"0.6312582",
"0.6259357",
"0.6241936",
"0.6183452",
"0.6070535",
"0.60416955",
"0.6018585",
"0.60164297",
"0.60088044",
"0.5995023",
"0.597592",
"0.5973917",
"0.58793104",
"0.5877242",
"0.58029723",
"0.5758085",
"0.57056755",
"0.56726485",
"0.56287926",
"0.56138027",
"0.56011... | 0.6587141 | 0 |
Apply for a new Sender ID > Sender IDs are shared among all of your subaccounts. | def request_sender_id(request_sender_id_input_object, opts = {})
data, _status_code, _headers = request_sender_id_with_http_info(request_sender_id_input_object, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_sender\n if !@from_name.blank? and from_email_address and !@from_email_address.empty? and !(@from_name.to_s == @from_email_address.to_s )\n self.sender = \"#{@from_name} <#{@from_email_address}>\"\n else\n self.sender = @from_email_address.to_s\n end\n end",
"def set_sender(sender_... | [
"0.5830484",
"0.56108993",
"0.5581275",
"0.5531942",
"0.5479626",
"0.5421653",
"0.5415518",
"0.5388255",
"0.5368817",
"0.5364466",
"0.5339518",
"0.5337063",
"0.5329881",
"0.5325015",
"0.5294204",
"0.5291246",
"0.52903783",
"0.5284889",
"0.52622515",
"0.52477854",
"0.52417946"... | 0.0 | -1 |
Apply for a new Sender ID > Sender IDs are shared among all of your subaccounts. | def request_sender_id_with_http_info(request_sender_id_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.request_sender_id ...'
end
# verify the required parameter 'request_sender_id_input_object' is set
if @api_client.config.client_side_validation && request_sender_id_input_object.nil?
fail ArgumentError, "Missing the required parameter 'request_sender_id_input_object' when calling TextMagicApi.request_sender_id"
end
# resource path
local_var_path = '/api/v2/senderids'
# 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(request_sender_id_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#request_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 update_sender\n if !@from_name.blank? and from_email_address and !@from_email_address.empty? and !(@from_name.to_s == @from_email_address.to_s )\n self.sender = \"#{@from_name} <#{@from_email_address}>\"\n else\n self.sender = @from_email_address.to_s\n end\n end",
"def set_sender(sender_... | [
"0.583431",
"0.5613609",
"0.55833113",
"0.55300504",
"0.5481757",
"0.5422841",
"0.54157704",
"0.538814",
"0.536865",
"0.5364752",
"0.53404653",
"0.53395015",
"0.53320426",
"0.53276646",
"0.52930325",
"0.5292236",
"0.52905154",
"0.5286015",
"0.52629167",
"0.5247834",
"0.524260... | 0.0 | -1 |
Find chats by message text | def search_chats(opts = {})
data, _status_code, _headers = search_chats_with_http_info(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.6311235",
"0.60265356",
"0.5901759",
"0.5870272",
"0.5866122",
"0.57972324",
"0.56835216",
"0.56606996",
"0.56550956",
"0.5612256",
"0.5598369",
"0.558352",
"0.5581651",
"0.5568207",
"0.553694",
"0.54769224",
"0.54762167",
"0.54662204",
"0.5450382",
"0.5449515",
"0.5429483... | 0.5605907 | 10 |
Find chats by message text | def search_chats_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.search_chats ...'
end
# resource path
local_var_path = '/api/v2/chats/search'
# query parameters
query_params = {}
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
query_params[:'query'] = opts[:'query'] if !opts[:'query'].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 => 'SearchChatsPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#search_chats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
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.6310851",
"0.60263425",
"0.5900782",
"0.5870377",
"0.5867155",
"0.5796297",
"0.5683864",
"0.5660841",
"0.56541955",
"0.5613341",
"0.5605681",
"0.5598875",
"0.55838245",
"0.55815506",
"0.5569262",
"0.5537468",
"0.5476716",
"0.54761845",
"0.54668975",
"0.5451064",
"0.5450619... | 0.0 | -1 |
Find chats by recipient Find chats by recipient (contact, list name or phone number). | def search_chats_by_receipent(opts = {})
data, _status_code, _headers = search_chats_by_receipent_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def contact_to(actor)\n sent_contacts.received_by(actor.id).first\n end",
"def conversations\n Conversation.where(\"sender_id = ? or recipient_id = ?\",self.id,self.id)\n end",
"def conversations\n Conversation.where(\"sender_id = ? OR recipient_id = ?\", id,id)\n end",
"def get_emails_by_recipie... | [
"0.66843855",
"0.6467345",
"0.6440665",
"0.6197819",
"0.61855",
"0.6152104",
"0.61102295",
"0.60325986",
"0.60226196",
"0.59947854",
"0.5982117",
"0.57997936",
"0.5784565",
"0.57718724",
"0.57501346",
"0.5748174",
"0.5746178",
"0.5724272",
"0.5707226",
"0.5701359",
"0.5670213... | 0.5904764 | 11 |
Find chats by recipient Find chats by recipient (contact, list name or phone number). | def search_chats_by_receipent_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.search_chats_by_receipent ...'
end
if @api_client.config.client_side_validation && opts[:'order_by'] && !['id', 'unread', 'messageTime'].include?(opts[:'order_by'])
fail ArgumentError, 'invalid value for "order_by", must be one of id, unread, messageTime'
end
# resource path
local_var_path = '/api/v2/chats/search/recipients'
# query parameters
query_params = {}
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
query_params[:'orderBy'] = opts[:'order_by'] if !opts[:'order_by'].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 => 'SearchChatsByReceipentPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#search_chats_by_receipent\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_to(actor)\n sent_contacts.received_by(actor.id).first\n end",
"def conversations\n Conversation.where(\"sender_id = ? or recipient_id = ?\",self.id,self.id)\n end",
"def conversations\n Conversation.where(\"sender_id = ? OR recipient_id = ?\", id,id)\n end",
"def get_emails_by_recipie... | [
"0.66854197",
"0.6467935",
"0.6441161",
"0.6197037",
"0.6185776",
"0.61541134",
"0.61103964",
"0.603208",
"0.602258",
"0.5994531",
"0.5983448",
"0.59040934",
"0.58012736",
"0.5784704",
"0.5770771",
"0.57509995",
"0.5748629",
"0.5747126",
"0.5724246",
"0.57071906",
"0.5701479"... | 0.56272846 | 23 |
Find contacts by given criteria | def search_contacts(opts = {})
data, _status_code, _headers = search_contacts_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def search(term)\n contacts = Contact.all\n person_data = nil\n contacts.each_with_index do |contact,index|\n if (contact.name.include? term) || (contact.email.include? term)\n person_data = []\n person_data[0] = index\n person_data[1] = contact \n end\n ... | [
"0.71821576",
"0.7093935",
"0.7056161",
"0.7048801",
"0.6971998",
"0.690574",
"0.6889539",
"0.68526435",
"0.6847504",
"0.68396765",
"0.6816289",
"0.68055874",
"0.677295",
"0.6649568",
"0.66261417",
"0.6600536",
"0.65893656",
"0.65566736",
"0.6550881",
"0.6550111",
"0.6527533"... | 0.6459605 | 24 |
Find contacts by given criteria | def search_contacts_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.search_contacts ...'
end
if @api_client.config.client_side_validation && !opts[:'ids'].nil? && opts[:'ids'] !~ Regexp.new(/[,\\d]+/)
fail ArgumentError, "invalid value for 'opts[:\"ids\"]' when calling TextMagicApi.search_contacts, must conform to the pattern /[,\\d]+/."
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/contacts/search'
# query parameters
query_params = {}
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
query_params[:'shared'] = opts[:'shared'] if !opts[:'shared'].nil?
query_params[:'ids'] = opts[:'ids'] if !opts[:'ids'].nil?
query_params[:'listId'] = opts[:'list_id'] if !opts[:'list_id'].nil?
query_params[:'includeBlocked'] = opts[:'include_blocked'] if !opts[:'include_blocked'].nil?
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
query_params[:'local'] = opts[:'local'] if !opts[:'local'].nil?
query_params[:'exactMatch'] = opts[:'exact_match'] if !opts[:'exact_match'].nil?
query_params[:'country'] = opts[:'country'] if !opts[:'country'].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 => 'SearchContactsPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#search_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def search(term)\n contacts = Contact.all\n person_data = nil\n contacts.each_with_index do |contact,index|\n if (contact.name.include? term) || (contact.email.include? term)\n person_data = []\n person_data[0] = index\n person_data[1] = contact \n end\n ... | [
"0.71824497",
"0.70930064",
"0.70568746",
"0.7048324",
"0.6971515",
"0.6905904",
"0.68904954",
"0.6852298",
"0.6848402",
"0.6839395",
"0.6816655",
"0.68054533",
"0.67729664",
"0.6649654",
"0.6624994",
"0.66006744",
"0.6588306",
"0.65566486",
"0.65506345",
"0.65484166",
"0.652... | 0.5887844 | 81 |
Find inbound messages Find inbound messages by given parameters. | def search_inbound_messages(opts = {})
data, _status_code, _headers = search_inbound_messages_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def search(query, message)\n log \" Scanning for #{message}\"\n messages = @imap.search query\n log \" Found #{messages.length} messages\"\n return messages\n end",
"def index\n \n # puts \" begin \"\n # puts User.findUser(params[:user_email]).inspect #Mes... | [
"0.6051206",
"0.55782264",
"0.5518448",
"0.5496221",
"0.54882365",
"0.5479334",
"0.5466287",
"0.5449323",
"0.52685815",
"0.52617174",
"0.5255108",
"0.5246478",
"0.52192616",
"0.52038664",
"0.51792675",
"0.5166187",
"0.5159903",
"0.51574135",
"0.5146657",
"0.51443017",
"0.5128... | 0.69137484 | 0 |
Find inbound messages Find inbound messages by given parameters. | def search_inbound_messages_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.search_inbound_messages ...'
end
if @api_client.config.client_side_validation && !opts[:'ids'].nil? && opts[:'ids'] !~ Regexp.new(/[,\\d]+/)
fail ArgumentError, "invalid value for 'opts[:\"ids\"]' when calling TextMagicApi.search_inbound_messages, must conform to the pattern /[,\\d]+/."
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/search'
# query parameters
query_params = {}
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
query_params[:'ids'] = opts[:'ids'] if !opts[:'ids'].nil?
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
query_params[:'orderBy'] = opts[:'order_by'] if !opts[:'order_by'].nil?
query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].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 => 'SearchInboundMessagesPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#search_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 search_inbound_messages(opts = {})\n data, _status_code, _headers = search_inbound_messages_with_http_info(opts)\n data\n end",
"def search(query, message)\n log \" Scanning for #{message}\"\n messages = @imap.search query\n log \" Found #{messages.length} messages\"\n return mes... | [
"0.69137484",
"0.6051206",
"0.55782264",
"0.5518448",
"0.5496221",
"0.54882365",
"0.5479334",
"0.5449323",
"0.52685815",
"0.52617174",
"0.5255108",
"0.5246478",
"0.52192616",
"0.52038664",
"0.51792675",
"0.5166187",
"0.5159903",
"0.51574135",
"0.5146657",
"0.51443017",
"0.512... | 0.5466287 | 7 |
Find lists by given criteria | def search_lists(opts = {})
data, _status_code, _headers = search_lists_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def find_lists(x)\n lists.select do |l|\n (l['name'] == x) || (l['id'] == x)\n end\n end",
"def find_by(**args)\n matches = list.select do |_key, hash|\n args.each_pair.map { |k, v| hash[k].casecmp?(v) }.all?\n end\n\n return [] if matches.empty?\... | [
"0.7072832",
"0.609799",
"0.609638",
"0.60421693",
"0.5993167",
"0.59703076",
"0.59635615",
"0.5956856",
"0.5849624",
"0.58428395",
"0.5834972",
"0.57894206",
"0.5748298",
"0.5748298",
"0.5728873",
"0.572721",
"0.5669268",
"0.56360716",
"0.559106",
"0.554572",
"0.5476076",
... | 0.5074817 | 86 |
Find lists by given criteria | def search_lists_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.search_lists ...'
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/search'
# query parameters
query_params = {}
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
query_params[:'ids'] = opts[:'ids'] if !opts[:'ids'].nil?
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
query_params[:'onlyMine'] = opts[:'only_mine'] if !opts[:'only_mine'].nil?
query_params[:'onlyDefault'] = opts[:'only_default'] if !opts[:'only_default'].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 => 'SearchListsPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#search_lists\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def find_lists(x)\n lists.select do |l|\n (l['name'] == x) || (l['id'] == x)\n end\n end",
"def find_by(**args)\n matches = list.select do |_key, hash|\n args.each_pair.map { |k, v| hash[k].casecmp?(v) }.all?\n end\n\n return [] if matches.empty?\... | [
"0.7073172",
"0.6098391",
"0.6096434",
"0.60423654",
"0.5993615",
"0.59714997",
"0.5963066",
"0.59580046",
"0.5848996",
"0.5843672",
"0.5834893",
"0.5788926",
"0.5747834",
"0.5747834",
"0.57289356",
"0.5727039",
"0.566851",
"0.5635968",
"0.5590613",
"0.55460614",
"0.54753625"... | 0.0 | -1 |
Find messages Find outbound messages by given parameters. | def search_outbound_messages(opts = {})
data, _status_code, _headers = search_outbound_messages_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def search(query, message)\n log \" Scanning for #{message}\"\n messages = @imap.search query\n log \" Found #{messages.length} messages\"\n return messages\n end",
"def get_messages where = \"inbox\", opts = {}\n query = {\n mark: false\n }\n query.merge! opts\n get(\... | [
"0.6261588",
"0.6229564",
"0.621716",
"0.62019354",
"0.6159619",
"0.5990073",
"0.5963769",
"0.5916472",
"0.5808687",
"0.5804947",
"0.5787074",
"0.5782273",
"0.57732093",
"0.57166445",
"0.56942093",
"0.568951",
"0.5673998",
"0.5670573",
"0.5666618",
"0.564468",
"0.5639567",
... | 0.69065297 | 0 |
Find messages Find outbound messages by given parameters. | def search_outbound_messages_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.search_outbound_messages ...'
end
if @api_client.config.client_side_validation && !opts[:'ids'].nil? && opts[:'ids'] !~ Regexp.new(/[,\\d]+/)
fail ArgumentError, "invalid value for 'opts[:\"ids\"]' when calling TextMagicApi.search_outbound_messages, must conform to the pattern /[,\\d]+/."
end
if @api_client.config.client_side_validation && opts[:'statuses'] && !['q', 's', 'e', 'r', 'a', 'd', 'b', 'f', 'u', 'j', 'i', 'p', 'h'].include?(opts[:'statuses'])
fail ArgumentError, 'invalid value for "statuses", must be one of q, s, e, r, a, d, b, f, u, j, i, p, h'
end
# resource path
local_var_path = '/api/v2/messages/search'
# 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?
query_params[:'ids'] = opts[:'ids'] if !opts[:'ids'].nil?
query_params[:'sessionId'] = opts[:'session_id'] if !opts[:'session_id'].nil?
query_params[:'statuses'] = opts[:'statuses'] if !opts[:'statuses'].nil?
query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
query_params[:'query'] = opts[:'query'] if !opts[:'query'].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 => 'SearchOutboundMessagesPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#search_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 search_outbound_messages(opts = {})\n data, _status_code, _headers = search_outbound_messages_with_http_info(opts)\n data\n end",
"def search(query, message)\n log \" Scanning for #{message}\"\n messages = @imap.search query\n log \" Found #{messages.length} messages\"\n return m... | [
"0.69065297",
"0.6261588",
"0.6229564",
"0.621716",
"0.62019354",
"0.6159619",
"0.5990073",
"0.5963769",
"0.5808687",
"0.5804947",
"0.5787074",
"0.5782273",
"0.57732093",
"0.57166445",
"0.56942093",
"0.568951",
"0.5673998",
"0.5670573",
"0.5666618",
"0.564468",
"0.5639567",
... | 0.5916472 | 8 |
Find templates by criteria Find user templates by given parameters. | def search_templates(opts = {})
data, _status_code, _headers = search_templates_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def find_templates(name, prefix, partial, details)\n conditions = {\n path: normalize_path(name, prefix),\n locale: normalize_array(details[:locale]).first,\n format: normalize_array(details[:formats]).first,\n handler: normalize_array(details[:handlers]),\n partial: pa... | [
"0.7001344",
"0.65399295",
"0.6128085",
"0.612322",
"0.60709584",
"0.6016147",
"0.5995856",
"0.59818155",
"0.59493583",
"0.5926532",
"0.59087455",
"0.5904986",
"0.5816869",
"0.5758511",
"0.5661997",
"0.5634412",
"0.56161994",
"0.5590189",
"0.5582061",
"0.55693054",
"0.5567404... | 0.6585676 | 1 |
Find templates by criteria Find user templates by given parameters. | def search_templates_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.search_templates ...'
end
# resource path
local_var_path = '/api/v2/templates/search'
# query parameters
query_params = {}
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
query_params[:'ids'] = opts[:'ids'] if !opts[:'ids'].nil?
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
query_params[:'content'] = opts[:'content'] if !opts[:'content'].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 => 'SearchTemplatesPaginatedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#search_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def find_templates(name, prefix, partial, details)\n conditions = {\n path: normalize_path(name, prefix),\n locale: normalize_array(details[:locale]).first,\n format: normalize_array(details[:formats]).first,\n handler: normalize_array(details[:handlers]),\n partial: pa... | [
"0.70003086",
"0.6585946",
"0.6538268",
"0.61276674",
"0.61228186",
"0.6072165",
"0.6016105",
"0.5996917",
"0.59819955",
"0.5949112",
"0.59260035",
"0.5909567",
"0.59040266",
"0.5817204",
"0.57583106",
"0.56343603",
"0.5616931",
"0.5589835",
"0.5581278",
"0.5568279",
"0.55681... | 0.56617755 | 15 |
Send message This is the main entrypoint to send messages. See the examples above for the reference. | def send_message(send_message_input_object, opts = {})
data, _status_code, _headers = send_message_with_http_info(send_message_input_object, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def send(message)\n info(\"[Smartfocus] Send -> #{message}\")\n end",
"def send_message(message); end",
"def send_message(message); end",
"def send_message(msg); end",
"def send(message)\n message\n end",
"def send_message(msg)\n send_data({:type => :message, :body => msg})\n end",
... | [
"0.7854081",
"0.78329563",
"0.78329563",
"0.77090335",
"0.7475148",
"0.7473843",
"0.7435767",
"0.7426253",
"0.7424425",
"0.73226136",
"0.7279458",
"0.71907043",
"0.71554905",
"0.7148305",
"0.7130163",
"0.7011211",
"0.6978139",
"0.69602144",
"0.6938934",
"0.69265366",
"0.69113... | 0.0 | -1 |
Send message This is the main entrypoint to send messages. See the examples above for the reference. | def send_message_with_http_info(send_message_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.send_message ...'
end
# verify the required parameter 'send_message_input_object' is set
if @api_client.config.client_side_validation && send_message_input_object.nil?
fail ArgumentError, "Missing the required parameter 'send_message_input_object' when calling TextMagicApi.send_message"
end
# resource path
local_var_path = '/api/v2/messages'
# 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(send_message_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 => 'SendMessageResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#send_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 send(message)\n info(\"[Smartfocus] Send -> #{message}\")\n end",
"def send_message(message); end",
"def send_message(message); end",
"def send_message(msg); end",
"def send(message)\n message\n end",
"def send_message(msg)\n send_data({:type => :message, :body => msg})\n end",
... | [
"0.7854547",
"0.78335506",
"0.78335506",
"0.771003",
"0.74754065",
"0.74738103",
"0.7436168",
"0.742687",
"0.74243814",
"0.73240584",
"0.72794133",
"0.718979",
"0.71565336",
"0.7148576",
"0.7131187",
"0.7011961",
"0.69785804",
"0.6962115",
"0.6941377",
"0.692615",
"0.6911678"... | 0.0 | -1 |
Step 1: Send a verification code Sends a verification code to a specified phone number. | def send_phone_verification_code_tfa(send_phone_verification_code_tfa_input_object, opts = {})
data, _status_code, _headers = send_phone_verification_code_tfa_with_http_info(send_phone_verification_code_tfa_input_object, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def send_verification(phone:)\n raise StandardError, \"Phone can't be blank\" if phone.blank?\n raise StandardError, \"Please enter a valid phone\" unless PhoneValidator.valid?(phone)\n\n # check if a code was already sent to this phone number\n existing_code = redis.get(phone_key(phone))\n ... | [
"0.7511104",
"0.7288479",
"0.72737503",
"0.72029656",
"0.71723217",
"0.7087009",
"0.6928536",
"0.69262695",
"0.6809034",
"0.6771979",
"0.6720139",
"0.66433686",
"0.6638745",
"0.6563941",
"0.6551382",
"0.6542443",
"0.6521636",
"0.64675933",
"0.64606893",
"0.6402086",
"0.636047... | 0.6155452 | 27 |
Step 1: Send a verification code Sends a verification code to a specified phone number. | def send_phone_verification_code_tfa_with_http_info(send_phone_verification_code_tfa_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.send_phone_verification_code_tfa ...'
end
# verify the required parameter 'send_phone_verification_code_tfa_input_object' is set
if @api_client.config.client_side_validation && send_phone_verification_code_tfa_input_object.nil?
fail ArgumentError, "Missing the required parameter 'send_phone_verification_code_tfa_input_object' when calling TextMagicApi.send_phone_verification_code_tfa"
end
# resource path
local_var_path = '/api/v2/verify'
# 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(send_phone_verification_code_tfa_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 => 'SendPhoneVerificationCodeResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#send_phone_verification_code_tfa\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def send_verification(phone:)\n raise StandardError, \"Phone can't be blank\" if phone.blank?\n raise StandardError, \"Please enter a valid phone\" unless PhoneValidator.valid?(phone)\n\n # check if a code was already sent to this phone number\n existing_code = redis.get(phone_key(phone))\n ... | [
"0.7511836",
"0.7289211",
"0.7274681",
"0.7203393",
"0.7173537",
"0.7086574",
"0.6928954",
"0.6926051",
"0.68089235",
"0.6772672",
"0.67196643",
"0.66436005",
"0.6638973",
"0.65639377",
"0.6550257",
"0.6543968",
"0.65226865",
"0.64674586",
"0.6461409",
"0.6403095",
"0.6362012... | 0.57625777 | 55 |
Change chat status Set the status of the chat given by ID. | def set_chat_status(set_chat_status_input_object, opts = {})
data, _status_code, _headers = set_chat_status_with_http_info(set_chat_status_input_object, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_conversation_status(id, data)\r\n @client.raw('put', \"/content/conversations/#{id}/status\", nil, data_transform(data), @contact_v1_url)\r\n end",
"def set_chat\n @chat = Chat.find(params[:id])\n end",
"def set_chat\n @chat = Chat.find(params[:id])\n end",
"def set_chat\n ... | [
"0.70442975",
"0.64268094",
"0.64268094",
"0.64268094",
"0.64268094",
"0.64268094",
"0.64268094",
"0.64268094",
"0.64268094",
"0.64268094",
"0.64268094",
"0.64268094",
"0.63006246",
"0.62021136",
"0.6129799",
"0.6129799",
"0.60355026",
"0.5988016",
"0.5968951",
"0.5966667",
"... | 0.70710766 | 0 |
Change chat status Set the status of the chat given by ID. | def set_chat_status_with_http_info(set_chat_status_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.set_chat_status ...'
end
# verify the required parameter 'set_chat_status_input_object' is set
if @api_client.config.client_side_validation && set_chat_status_input_object.nil?
fail ArgumentError, "Missing the required parameter 'set_chat_status_input_object' when calling TextMagicApi.set_chat_status"
end
# resource path
local_var_path = '/api/v2/chats/status'
# 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(set_chat_status_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#set_chat_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_chat_status(set_chat_status_input_object, opts = {})\n data, _status_code, _headers = set_chat_status_with_http_info(set_chat_status_input_object, opts)\n data\n end",
"def update_conversation_status(id, data)\r\n @client.raw('put', \"/content/conversations/#{id}/status\", nil, data_trans... | [
"0.70710766",
"0.70442975",
"0.64268094",
"0.64268094",
"0.64268094",
"0.64268094",
"0.64268094",
"0.64268094",
"0.64268094",
"0.64268094",
"0.64268094",
"0.64268094",
"0.64268094",
"0.63006246",
"0.62021136",
"0.6129799",
"0.6129799",
"0.60355026",
"0.5988016",
"0.5968951",
... | 0.55343723 | 68 |
Unblock a contact by phone number Unblock a contact by phone number | def unblock_contact(unblock_contact_input_object, opts = {})
unblock_contact_with_http_info(unblock_contact_input_object, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unblock_sms!\n return false unless txter_sms_blocked?\n\n response = Txter.unblock(txter_sms_phone_number)\n if response.success?\n self.txter_sms_blocked = 'false'\n save\n else\n false\n end\n end",
"def unfollow(actor)\n contact = contact_to!(actor)\n ... | [
"0.6636827",
"0.63995785",
"0.5999939",
"0.58925533",
"0.5890425",
"0.58197916",
"0.5790076",
"0.57478344",
"0.5728394",
"0.56715506",
"0.56712615",
"0.56086475",
"0.5602773",
"0.55799913",
"0.5571866",
"0.55691904",
"0.5544297",
"0.55431545",
"0.5517307",
"0.5516064",
"0.549... | 0.59557676 | 3 |
Unblock a contact by phone number Unblock a contact by phone number | def unblock_contact_with_http_info(unblock_contact_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.unblock_contact ...'
end
# verify the required parameter 'unblock_contact_input_object' is set
if @api_client.config.client_side_validation && unblock_contact_input_object.nil?
fail ArgumentError, "Missing the required parameter 'unblock_contact_input_object' when calling TextMagicApi.unblock_contact"
end
# resource path
local_var_path = '/api/v2/contacts/unblock'
# 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(unblock_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)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: TextMagicApi#unblock_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 unblock_sms!\n return false unless txter_sms_blocked?\n\n response = Txter.unblock(txter_sms_phone_number)\n if response.success?\n self.txter_sms_blocked = 'false'\n save\n else\n false\n end\n end",
"def unfollow(actor)\n contact = contact_to!(actor)\n ... | [
"0.6637413",
"0.6398004",
"0.5998675",
"0.59519625",
"0.5891454",
"0.588748",
"0.581624",
"0.5789317",
"0.5748247",
"0.57292205",
"0.56700546",
"0.5669817",
"0.560702",
"0.55992585",
"0.5578341",
"0.5571877",
"0.5570249",
"0.55436623",
"0.5542472",
"0.5518389",
"0.5517373",
... | 0.5019227 | 71 |
Unblock contacts (bulk) Unblock several contacts by blocked contact IDs or unblock all contacts. | def unblock_contacts_bulk(unblock_contacts_bulk_input_object, opts = {})
unblock_contacts_bulk_with_http_info(unblock_contacts_bulk_input_object, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unblock_contacts_bulk_with_http_info(unblock_contacts_bulk_input_object, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: TextMagicApi.unblock_contacts_bulk ...'\n end\n # verify the required parameter 'unblock_contacts_bulk_input_object' is set... | [
"0.6369893",
"0.6232794",
"0.6070122",
"0.6018486",
"0.58013755",
"0.56570464",
"0.56304973",
"0.55874103",
"0.5574325",
"0.5550772",
"0.5537032",
"0.5531225",
"0.5529487",
"0.5502397",
"0.5473065",
"0.5438278",
"0.5427829",
"0.54134524",
"0.5336357",
"0.53106695",
"0.5294269... | 0.76125735 | 0 |
Unblock contacts (bulk) Unblock several contacts by blocked contact IDs or unblock all contacts. | def unblock_contacts_bulk_with_http_info(unblock_contacts_bulk_input_object, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TextMagicApi.unblock_contacts_bulk ...'
end
# verify the required parameter 'unblock_contacts_bulk_input_object' is set
if @api_client.config.client_side_validation && unblock_contacts_bulk_input_object.nil?
fail ArgumentError, "Missing the required parameter 'unblock_contacts_bulk_input_object' when calling TextMagicApi.unblock_contacts_bulk"
end
# resource path
local_var_path = '/api/v2/contacts/unblock/bulk'
# 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(unblock_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#unblock_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 unblock_contacts_bulk(unblock_contacts_bulk_input_object, opts = {})\n unblock_contacts_bulk_with_http_info(unblock_contacts_bulk_input_object, opts)\n nil\n end",
"def ban\n self.enabled = false\n save\n\n hosts.each do |host|\n if host.client.present?\n host.disable_jobs_a... | [
"0.7611498",
"0.6233228",
"0.6068154",
"0.6017195",
"0.5801096",
"0.5655811",
"0.56297696",
"0.558648",
"0.5572406",
"0.5550047",
"0.5536541",
"0.553115",
"0.5528196",
"0.5500703",
"0.54727954",
"0.5437766",
"0.5428065",
"0.5411966",
"0.5336625",
"0.5309616",
"0.52927834",
... | 0.6369548 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.