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

Latest commit

 

History

History
76 lines (52 loc) · 1.64 KB

File metadata and controls

76 lines (52 loc) · 1.64 KB

Cfchat::ProfileApi

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

Method HTTP request Description
fetch_profile GET /api/v1/profile Fetch user profile

fetch_profile

fetch_profile

Fetch user profile

Get the user profile details

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::ProfileApi.new

begin
  # Fetch user profile
  result = api_instance.fetch_profile
  p result
rescue Cfchat::ApiError => e
  puts "Error when calling ProfileApi->fetch_profile: #{e}"
end

Using the fetch_profile_with_http_info variant

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

<Array(, Integer, Hash)> fetch_profile_with_http_info

begin
  # Fetch user profile
  data, status_code, headers = api_instance.fetch_profile_with_http_info
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <User>
rescue Cfchat::ApiError => e
  puts "Error when calling ProfileApi->fetch_profile_with_http_info: #{e}"
end

Parameters

This endpoint does not need any parameter.

Return type

User

Authorization

userApiKey

HTTP request headers

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