Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Latest commit

 

History

History
157 lines (112 loc) · 4.38 KB

File metadata and controls

157 lines (112 loc) · 4.38 KB

Cfchat::ContactApi

All URIs are relative to https://chat.myclickfunnels.com

Method HTTP request Description
contact_inbox_creation POST /api/v1/accounts/{account_id}/contacts/{id}/contact_inboxes Create contact inbox
contactable_inboxes_get GET /api/v1/accounts/{account_id}/contacts/{id}/contactable_inboxes Get Contactable Inboxes

contact_inbox_creation

contact_inbox_creation(account_id, id, data)

Create contact inbox

Create a contact inbox record for an inbox

Examples

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::ContactApi.new
account_id = 56 # Integer | The numeric ID of the account
id = 8.14 # Float | ID of the contact
data = Cfchat::ContactInboxCreationRequest.new({inbox_id: 3.56}) # ContactInboxCreationRequest | 

begin
  # Create contact inbox
  result = api_instance.contact_inbox_creation(account_id, id, data)
  p result
rescue Cfchat::ApiError => e
  puts "Error when calling ContactApi->contact_inbox_creation: #{e}"
end

Using the contact_inbox_creation_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> contact_inbox_creation_with_http_info(account_id, id, data)

begin
  # Create contact inbox
  data, status_code, headers = api_instance.contact_inbox_creation_with_http_info(account_id, id, data)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <ContactInboxes>
rescue Cfchat::ApiError => e
  puts "Error when calling ContactApi->contact_inbox_creation_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
account_id Integer The numeric ID of the account
id Float ID of the contact
data ContactInboxCreationRequest

Return type

ContactInboxes

Authorization

userApiKey

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: application/json; charset=utf-8

contactable_inboxes_get

contactable_inboxes_get(account_id, id)

Get Contactable Inboxes

Get List of contactable Inboxes

Examples

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::ContactApi.new
account_id = 56 # Integer | The numeric ID of the account
id = 8.14 # Float | ID of the contact

begin
  # Get Contactable Inboxes
  result = api_instance.contactable_inboxes_get(account_id, id)
  p result
rescue Cfchat::ApiError => e
  puts "Error when calling ContactApi->contactable_inboxes_get: #{e}"
end

Using the contactable_inboxes_get_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> contactable_inboxes_get_with_http_info(account_id, id)

begin
  # Get Contactable Inboxes
  data, status_code, headers = api_instance.contactable_inboxes_get_with_http_info(account_id, id)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <ContactableInboxes>
rescue Cfchat::ApiError => e
  puts "Error when calling ContactApi->contactable_inboxes_get_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
account_id Integer The numeric ID of the account
id Float ID of the contact

Return type

ContactableInboxes

Authorization

userApiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8