All URIs are relative to https://chat.myclickfunnels.com
Method | HTTP request | Description |
---|---|---|
create_a_custom_filter | POST /api/v1/accounts/{account_id}/custom_filters | Create a custom filter |
delete_a_custom_filter | DELETE /api/v1/accounts/{account_id}/custom_filters/{custom_filter_id} | Delete a custom filter |
get_details_of_a_single_custom_filter | GET /api/v1/accounts/{account_id}/custom_filters/{custom_filter_id} | Get a custom filter details |
list_all_filters | GET /api/v1/accounts/{account_id}/custom_filters | List all custom filters |
update_a_custom_filter | PATCH /api/v1/accounts/{account_id}/custom_filters/{custom_filter_id} | Update a custom filter |
create_a_custom_filter(account_id, data, opts)
Create a custom filter
Create a custom filter in the account
require 'time'
require 'cfchat'
# setup authorization
Cfchat.configure do |config|
# Configure API key authorization: userApiKey
config.api_key['userApiKey'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['userApiKey'] = 'Bearer'
end
api_instance = Cfchat::CustomFiltersApi.new
account_id = 56 # Integer | The numeric ID of the account
data = Cfchat::CustomFilterCreateUpdatePayload.new # CustomFilterCreateUpdatePayload |
opts = {
filter_type: 'conversation' # String | The type of custom filter
}
begin
# Create a custom filter
result = api_instance.create_a_custom_filter(account_id, data, opts)
p result
rescue Cfchat::ApiError => e
puts "Error when calling CustomFiltersApi->create_a_custom_filter: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> create_a_custom_filter_with_http_info(account_id, data, opts)
begin
# Create a custom filter
data, status_code, headers = api_instance.create_a_custom_filter_with_http_info(account_id, data, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <CustomFilter>
rescue Cfchat::ApiError => e
puts "Error when calling CustomFiltersApi->create_a_custom_filter_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
account_id | Integer | The numeric ID of the account | |
data | CustomFilterCreateUpdatePayload | ||
filter_type | String | The type of custom filter | [optional] |
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
delete_a_custom_filter(account_id, custom_filter_id)
Delete a custom filter
Delete a custom filter from the account
require 'time'
require 'cfchat'
# setup authorization
Cfchat.configure do |config|
# Configure API key authorization: userApiKey
config.api_key['userApiKey'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['userApiKey'] = 'Bearer'
end
api_instance = Cfchat::CustomFiltersApi.new
account_id = 56 # Integer | The numeric ID of the account
custom_filter_id = 56 # Integer | The numeric ID of the custom filter
begin
# Delete a custom filter
api_instance.delete_a_custom_filter(account_id, custom_filter_id)
rescue Cfchat::ApiError => e
puts "Error when calling CustomFiltersApi->delete_a_custom_filter: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> delete_a_custom_filter_with_http_info(account_id, custom_filter_id)
begin
# Delete a custom filter
data, status_code, headers = api_instance.delete_a_custom_filter_with_http_info(account_id, custom_filter_id)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue Cfchat::ApiError => e
puts "Error when calling CustomFiltersApi->delete_a_custom_filter_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
account_id | Integer | The numeric ID of the account | |
custom_filter_id | Integer | The numeric ID of the custom filter |
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined
get_details_of_a_single_custom_filter(account_id, custom_filter_id)
Get a custom filter details
Get the details of a custom filter in the account
require 'time'
require 'cfchat'
# setup authorization
Cfchat.configure do |config|
# Configure API key authorization: userApiKey
config.api_key['userApiKey'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['userApiKey'] = 'Bearer'
end
api_instance = Cfchat::CustomFiltersApi.new
account_id = 56 # Integer | The numeric ID of the account
custom_filter_id = 56 # Integer | The numeric ID of the custom filter
begin
# Get a custom filter details
result = api_instance.get_details_of_a_single_custom_filter(account_id, custom_filter_id)
p result
rescue Cfchat::ApiError => e
puts "Error when calling CustomFiltersApi->get_details_of_a_single_custom_filter: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_details_of_a_single_custom_filter_with_http_info(account_id, custom_filter_id)
begin
# Get a custom filter details
data, status_code, headers = api_instance.get_details_of_a_single_custom_filter_with_http_info(account_id, custom_filter_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <CustomFilter>
rescue Cfchat::ApiError => e
puts "Error when calling CustomFiltersApi->get_details_of_a_single_custom_filter_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
account_id | Integer | The numeric ID of the account | |
custom_filter_id | Integer | The numeric ID of the custom filter |
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
<Array> list_all_filters(account_id, opts)
List all custom filters
List all custom filters in a category of a user
require 'time'
require 'cfchat'
# setup authorization
Cfchat.configure do |config|
# Configure API key authorization: userApiKey
config.api_key['userApiKey'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['userApiKey'] = 'Bearer'
end
api_instance = Cfchat::CustomFiltersApi.new
account_id = 56 # Integer | The numeric ID of the account
opts = {
filter_type: 'conversation' # String | The type of custom filter
}
begin
# List all custom filters
result = api_instance.list_all_filters(account_id, opts)
p result
rescue Cfchat::ApiError => e
puts "Error when calling CustomFiltersApi->list_all_filters: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(<Array>, Integer, Hash)> list_all_filters_with_http_info(account_id, opts)
begin
# List all custom filters
data, status_code, headers = api_instance.list_all_filters_with_http_info(account_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <Array<CustomFilter>>
rescue Cfchat::ApiError => e
puts "Error when calling CustomFiltersApi->list_all_filters_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
account_id | Integer | The numeric ID of the account | |
filter_type | String | The type of custom filter | [optional] |
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
update_a_custom_filter(account_id, custom_filter_id, data)
Update a custom filter
Update a custom filter's attributes
require 'time'
require 'cfchat'
# setup authorization
Cfchat.configure do |config|
# Configure API key authorization: userApiKey
config.api_key['userApiKey'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['userApiKey'] = 'Bearer'
end
api_instance = Cfchat::CustomFiltersApi.new
account_id = 56 # Integer | The numeric ID of the account
custom_filter_id = 56 # Integer | The numeric ID of the custom filter
data = Cfchat::CustomFilterCreateUpdatePayload.new # CustomFilterCreateUpdatePayload |
begin
# Update a custom filter
result = api_instance.update_a_custom_filter(account_id, custom_filter_id, data)
p result
rescue Cfchat::ApiError => e
puts "Error when calling CustomFiltersApi->update_a_custom_filter: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> update_a_custom_filter_with_http_info(account_id, custom_filter_id, data)
begin
# Update a custom filter
data, status_code, headers = api_instance.update_a_custom_filter_with_http_info(account_id, custom_filter_id, data)
p status_code # => 2xx
p headers # => { ... }
p data # => <CustomFilter>
rescue Cfchat::ApiError => e
puts "Error when calling CustomFiltersApi->update_a_custom_filter_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
account_id | Integer | The numeric ID of the account | |
custom_filter_id | Integer | The numeric ID of the custom filter | |
data | CustomFilterCreateUpdatePayload |
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8