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

Latest commit

 

History

History
210 lines (144 loc) · 6.03 KB

File metadata and controls

210 lines (144 loc) · 6.03 KB

Cfchat::ContactsAPIApi

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

Method HTTP request Description
create_a_contact POST /public/api/v1/inboxes/{inbox_identifier}/contacts Create a contact
get_details_of_a_contact GET /public/api/v1/inboxes/{inbox_identifier}/contacts/{contact_identifier} Get a contact
update_a_contact PATCH /public/api/v1/inboxes/{inbox_identifier}/contacts/{contact_identifier} Update a contact

create_a_contact

create_a_contact(inbox_identifier, data)

Create a contact

Create a contact

Examples

require 'time'
require 'cfchat'

api_instance = Cfchat::ContactsAPIApi.new
inbox_identifier = 'inbox_identifier_example' # String | The identifier obtained from API inbox channel
data = Cfchat::PublicContactCreateUpdatePayload.new # PublicContactCreateUpdatePayload | 

begin
  # Create a contact
  result = api_instance.create_a_contact(inbox_identifier, data)
  p result
rescue Cfchat::ApiError => e
  puts "Error when calling ContactsAPIApi->create_a_contact: #{e}"
end

Using the create_a_contact_with_http_info variant

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

<Array(, Integer, Hash)> create_a_contact_with_http_info(inbox_identifier, data)

begin
  # Create a contact
  data, status_code, headers = api_instance.create_a_contact_with_http_info(inbox_identifier, data)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <PublicContact>
rescue Cfchat::ApiError => e
  puts "Error when calling ContactsAPIApi->create_a_contact_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
inbox_identifier String The identifier obtained from API inbox channel
data PublicContactCreateUpdatePayload

Return type

PublicContact

Authorization

No authorization required

HTTP request headers

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

get_details_of_a_contact

get_details_of_a_contact(inbox_identifier, contact_identifier)

Get a contact

Get the details of a contact

Examples

require 'time'
require 'cfchat'

api_instance = Cfchat::ContactsAPIApi.new
inbox_identifier = 'inbox_identifier_example' # String | The identifier obtained from API inbox channel
contact_identifier = 'contact_identifier_example' # String | The source id of contact obtained on contact create

begin
  # Get a contact
  result = api_instance.get_details_of_a_contact(inbox_identifier, contact_identifier)
  p result
rescue Cfchat::ApiError => e
  puts "Error when calling ContactsAPIApi->get_details_of_a_contact: #{e}"
end

Using the get_details_of_a_contact_with_http_info variant

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

<Array(, Integer, Hash)> get_details_of_a_contact_with_http_info(inbox_identifier, contact_identifier)

begin
  # Get a contact
  data, status_code, headers = api_instance.get_details_of_a_contact_with_http_info(inbox_identifier, contact_identifier)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <PublicContact>
rescue Cfchat::ApiError => e
  puts "Error when calling ContactsAPIApi->get_details_of_a_contact_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
inbox_identifier String The identifier obtained from API inbox channel
contact_identifier String The source id of contact obtained on contact create

Return type

PublicContact

Authorization

No authorization required

HTTP request headers

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

update_a_contact

update_a_contact(inbox_identifier, contact_identifier, data)

Update a contact

Update a contact's attributes

Examples

require 'time'
require 'cfchat'

api_instance = Cfchat::ContactsAPIApi.new
inbox_identifier = 'inbox_identifier_example' # String | The identifier obtained from API inbox channel
contact_identifier = 'contact_identifier_example' # String | The source id of contact obtained on contact create
data = Cfchat::PublicContactCreateUpdatePayload.new # PublicContactCreateUpdatePayload | 

begin
  # Update a contact
  result = api_instance.update_a_contact(inbox_identifier, contact_identifier, data)
  p result
rescue Cfchat::ApiError => e
  puts "Error when calling ContactsAPIApi->update_a_contact: #{e}"
end

Using the update_a_contact_with_http_info variant

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

<Array(, Integer, Hash)> update_a_contact_with_http_info(inbox_identifier, contact_identifier, data)

begin
  # Update a contact
  data, status_code, headers = api_instance.update_a_contact_with_http_info(inbox_identifier, contact_identifier, data)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <PublicContact>
rescue Cfchat::ApiError => e
  puts "Error when calling ContactsAPIApi->update_a_contact_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
inbox_identifier String The identifier obtained from API inbox channel
contact_identifier String The source id of contact obtained on contact create
data PublicContactCreateUpdatePayload

Return type

PublicContact

Authorization

No authorization required

HTTP request headers

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