All URIs are relative to https://whatpulse.test/api/v1
| Method | HTTP request | Description |
|---|---|---|
| v1_users_profiles | GET /users/{id}/profiles | Get user profiles |
v1_users_profiles(id, opts)
Get user profiles
Get a list of client profiles for a specific user. Client profiles represent different software configurations or applications tracked by WhatPulse. You can filter by deletion status and control pagination. The response includes profile information with associated computer details.
require 'time'
require 'whatpulse-sdk'
# setup authorization
WhatpulseSdk.configure do |config|
# Configure Bearer authorization: http
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = WhatpulseSdk::ProfilesApi.new
id = 'id_example' # String | User ID or username
opts = {
is_deleted: '1', # String |
per_page: 56 # Integer |
}
begin
# Get user profiles
result = api_instance.v1_users_profiles(id, opts)
p result
rescue WhatpulseSdk::ApiError => e
puts "Error when calling ProfilesApi->v1_users_profiles: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> v1_users_profiles_with_http_info(id, opts)
begin
# Get user profiles
data, status_code, headers = api_instance.v1_users_profiles_with_http_info(id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <V1UsersProfiles200Response>
rescue WhatpulseSdk::ApiError => e
puts "Error when calling ProfilesApi->v1_users_profiles_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | User ID or username | |
| is_deleted | String | [optional] | |
| per_page | Integer | [optional] |
- Content-Type: Not defined
- Accept: application/json