All URIs are relative to https://api-na.myconnectwise.net/v4_6_release/apis/3.0
Method | HTTP request | Description |
---|---|---|
service_surveys_count_get | GET /service/surveys/count | |
service_surveys_get | GET /service/surveys | |
service_surveys_id_delete | DELETE /service/surveys/{id} | |
service_surveys_id_get | GET /service/surveys/{id} | |
service_surveys_id_patch | PATCH /service/surveys/{id} | |
service_surveys_id_put | PUT /service/surveys/{id} | |
service_surveys_post | POST /service/surveys |
Count service_surveys_count_get(opts)
Get Surveys Count
# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
Connectwise.configure do |config|
# Configure HTTP basic authorization: BasicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = Connectwise::SurveysApi.new
opts = {
conditions: "conditions_example" # String |
}
begin
result = api_instance.service_surveys_count_get(opts)
p result
rescue Connectwise::ApiError => e
puts "Exception when calling SurveysApi->service_surveys_count_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
conditions | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
Array<Survey> service_surveys_get(opts)
Get Surveys
# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
Connectwise.configure do |config|
# Configure HTTP basic authorization: BasicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = Connectwise::SurveysApi.new
opts = {
conditions: "conditions_example" # String |
order_by: "order_by_example", # String |
page: 56, # Integer |
page_size: 56 # Integer |
}
begin
result = api_instance.service_surveys_get(opts)
p result
rescue Connectwise::ApiError => e
puts "Exception when calling SurveysApi->service_surveys_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
conditions | String | [optional] | |
order_by | String | [optional] | |
page | Integer | [optional] | |
page_size | Integer | [optional] |
- Content-Type: Not defined
- Accept: application/json
service_surveys_id_delete(id)
Delete Survey By Id
# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
Connectwise.configure do |config|
# Configure HTTP basic authorization: BasicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = Connectwise::SurveysApi.new
id = 56 # Integer |
begin
api_instance.service_surveys_id_delete(id)
rescue Connectwise::ApiError => e
puts "Exception when calling SurveysApi->service_surveys_id_delete: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer |
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Survey service_surveys_id_get(id)
Get Survey By Id
# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
Connectwise.configure do |config|
# Configure HTTP basic authorization: BasicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = Connectwise::SurveysApi.new
id = 56 # Integer |
begin
result = api_instance.service_surveys_id_get(id)
p result
rescue Connectwise::ApiError => e
puts "Exception when calling SurveysApi->service_surveys_id_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer |
- Content-Type: Not defined
- Accept: application/json
Survey service_surveys_id_patch(id, operations)
Update Survey
# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
Connectwise.configure do |config|
# Configure HTTP basic authorization: BasicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = Connectwise::SurveysApi.new
id = 56 # Integer |
operations = [Connectwise::PatchOperation.new] # Array<PatchOperation> |
begin
result = api_instance.service_surveys_id_patch(id, operations)
p result
rescue Connectwise::ApiError => e
puts "Exception when calling SurveysApi->service_surveys_id_patch: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
operations | Array<PatchOperation> |
- Content-Type: application/json
- Accept: application/json
Survey service_surveys_id_put(id, survey)
Replace Survey
# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
Connectwise.configure do |config|
# Configure HTTP basic authorization: BasicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = Connectwise::SurveysApi.new
id = 56 # Integer |
survey = Connectwise::Survey.new # Survey |
begin
result = api_instance.service_surveys_id_put(id, survey)
p result
rescue Connectwise::ApiError => e
puts "Exception when calling SurveysApi->service_surveys_id_put: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
survey | Survey |
- Content-Type: application/json
- Accept: application/json
Survey service_surveys_post(survey)
Create Survey
# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
Connectwise.configure do |config|
# Configure HTTP basic authorization: BasicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = Connectwise::SurveysApi.new
survey = Connectwise::Survey.new # Survey |
begin
result = api_instance.service_surveys_post(survey)
p result
rescue Connectwise::ApiError => e
puts "Exception when calling SurveysApi->service_surveys_post: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
survey | Survey |
- Content-Type: application/json
- Accept: application/json