pingram 1.0.42 → 1.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/pingram/api/account_api.rb +26 -0
- data/lib/pingram/api/accounts_api.rb +76 -0
- data/lib/pingram/api/broadcasts_api.rb +28 -0
- data/lib/pingram/api/default_api.rb +2 -0
- data/lib/pingram/api/domains_api.rb +12 -4
- data/lib/pingram/api/editor_api.rb +2 -0
- data/lib/pingram/api/email_api.rb +4 -0
- data/lib/pingram/api/environments_api.rb +2 -0
- data/lib/pingram/api/health_api.rb +2 -0
- data/lib/pingram/api/library_api.rb +4 -0
- data/lib/pingram/api/logs_api.rb +12 -0
- data/lib/pingram/api/members_api.rb +2 -0
- data/lib/pingram/api/numbers_api.rb +10 -0
- data/lib/pingram/api/registrations_api.rb +10 -0
- data/lib/pingram/api/sender_api.rb +2 -0
- data/lib/pingram/api/sms_api.rb +2 -0
- data/lib/pingram/api/sub_notifications_api.rb +4 -0
- data/lib/pingram/api/user_api.rb +6 -0
- data/lib/pingram/api/users_api.rb +2 -0
- data/lib/pingram/api/voice_api.rb +80 -0
- data/lib/pingram/api/webhooks_api.rb +8 -0
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/models/account_summary.rb +304 -0
- data/lib/pingram/models/agent.rb +10 -1
- data/lib/pingram/models/agent1.rb +10 -1
- data/lib/pingram/models/agent_agent_model.rb +2 -0
- data/lib/pingram/models/arm_voice_inbound_claim_request_inbound.rb +2 -0
- data/lib/pingram/models/brand_webhook_response.rb +1 -1
- data/lib/pingram/models/campaign_webhook_response.rb +1 -1
- data/lib/pingram/models/check_domain_dns_request.rb +148 -0
- data/lib/pingram/models/domain_dns_check_records_inner.rb +2 -2
- data/lib/pingram/models/elevenlabs.rb +207 -0
- data/lib/pingram/models/elevenlabs1.rb +207 -0
- data/lib/pingram/models/elevenlabs_eleven_realtime_v1_max.rb +251 -0
- data/lib/pingram/models/elevenlabs_eleven_realtime_v1_mini.rb +251 -0
- data/lib/pingram/models/get_senders_response_inner.rb +68 -4
- data/lib/pingram/models/get_senders_response_inner_verification_records.rb +13 -4
- data/lib/pingram/models/get_senders_response_inner_verification_records_dkim.rb +2 -2
- data/lib/pingram/models/get_voice_call_response_call.rb +30 -1
- data/lib/pingram/models/get_voice_call_response_call_setup.rb +272 -0
- data/lib/pingram/models/get_voice_call_response_call_setup_stream.rb +190 -0
- data/lib/pingram/models/get_voice_call_response_call_setup_transcript.rb +41 -0
- data/lib/pingram/models/google_gemini31_flash_live_preview.rb +22 -1
- data/lib/pingram/models/inbound_config.rb +2 -0
- data/lib/pingram/models/intercom_webhook.rb +1 -1
- data/lib/pingram/models/internal_transfer_body.rb +254 -0
- data/lib/pingram/models/internal_transfer_body_agent_meters_inner.rb +328 -0
- data/lib/pingram/models/list_voice_calls_response_calls_inner.rb +24 -4
- data/lib/pingram/models/member_update_request.rb +1 -1
- data/lib/pingram/models/openai_gpt_live1.rb +22 -1
- data/lib/pingram/models/openai_gpt_realtime21.rb +22 -1
- data/lib/pingram/models/openai_gpt_realtime21_mini.rb +22 -1
- data/lib/pingram/models/script.rb +10 -1
- data/lib/pingram/models/script1.rb +10 -1
- data/lib/pingram/models/script_privacy.rb +43 -8
- data/lib/pingram/models/script_stream.rb +193 -0
- data/lib/pingram/models/sign_in_username_response.rb +1 -1
- data/lib/pingram/models/sign_out_request.rb +1 -1
- data/lib/pingram/models/sms_compliance_countries_response_countries_inner.rb +1 -1
- data/lib/pingram/models/sms_compliance_country.rb +1 -1
- data/lib/pingram/models/stream.rb +207 -0
- data/lib/pingram/models/ten_dlc_brand_admin_update_request.rb +1 -1
- data/lib/pingram/models/transfer1.rb +40 -1
- data/lib/pingram/models/transfer_call_request.rb +196 -0
- data/lib/pingram/models/transfer_destinations_inner.rb +25 -56
- data/lib/pingram/models/update_account_request.rb +184 -0
- data/lib/pingram/models/voice_browser_call_request_config_any_of.rb +3 -1
- data/lib/pingram/models/voice_call_response.rb +32 -5
- data/lib/pingram/version.rb +1 -1
- data/lib/pingram.rb +15 -0
- data/vendor/bundle/ruby/3.2.0/cache/ethon-0.19.2.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/CHANGELOG.md +45 -1
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/README.md +55 -8
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curl.rb +44 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.2/lib/ethon/easy/form.rb +261 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/informations.rb +30 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/mirror.rb +7 -1
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/options.rb +11 -7
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/queryable.rb +5 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.2/lib/ethon/errors/fork_safety.rb +10 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/libc.rb +5 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.2/lib/ethon/multipart.rb +115 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/version.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon.rb +1 -0
- data/vendor/bundle/ruby/3.2.0/specifications/{ethon-0.19.1.gemspec → ethon-0.19.2.gemspec} +4 -4
- metadata +104 -88
- data/vendor/bundle/ruby/3.2.0/cache/ethon-0.19.1.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/form.rb +0 -166
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/fork_safety.rb +0 -10
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/LICENSE +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/ethon.gemspec +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/classes.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/codes.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/constants.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/form_options.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/functions.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/infos.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/introspection.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/introspection_constants.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/messages.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/mime.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/optional.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/options.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/settings.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/share.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/share_constants.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/url.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/url_constants.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/callbacks.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/debug_info.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/features.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/files.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/header.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/headers_api.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/actionable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/custom.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/delete.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/get.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/head.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/options.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/patch.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/post.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/postable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/put.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/putable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/mime.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/operations.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/params.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/response_callbacks.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/share.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/url.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/util.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/ethon_error.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/form_add.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/global_init.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/header.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/invalid_option.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/invalid_value.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/mime.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_add.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_assign.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_fdset.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_perform.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_poll.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_remove.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_timeout.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_wait.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_wakeup.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/select.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/set_option.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/share.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/unsupported_option.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/url.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/loggable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/multi/operations.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/multi/options.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/multi/stack.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/multi.rb +0 -0
|
@@ -19,6 +19,7 @@ module Pingram
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# Remove email suppressions
|
|
22
23
|
# Start removing all email suppressions of the given reason (`retryable` or `bounces`) for users in the environment. Returns immediately after the job is queued — suppressions are not yet cleared when this response is received. Large removals are processed in the background in batches.
|
|
23
24
|
# @param reason [String] Suppression reason to clear (retryable | bounces)
|
|
24
25
|
# @param [Hash] opts the optional parameters
|
|
@@ -28,6 +29,7 @@ module Pingram
|
|
|
28
29
|
data
|
|
29
30
|
end
|
|
30
31
|
|
|
32
|
+
# Remove email suppressions
|
|
31
33
|
# Start removing all email suppressions of the given reason (`retryable` or `bounces`) for users in the environment. Returns immediately after the job is queued — suppressions are not yet cleared when this response is received. Large removals are processed in the background in batches.
|
|
32
34
|
# @param reason [String] Suppression reason to clear (retryable | bounces)
|
|
33
35
|
# @param [Hash] opts the optional parameters
|
|
@@ -80,6 +82,7 @@ module Pingram
|
|
|
80
82
|
return data, status_code, headers
|
|
81
83
|
end
|
|
82
84
|
|
|
85
|
+
# Send an email
|
|
83
86
|
# Send an email. Requires `type`, `to`, `subject`, and `html`. Optional: `fromAddress`, `fromName`, `schedule`, attachments. To reach people outside your account, use an address on a verified domain. The shared Pingram address can only email the account itself and always sends as noreply.
|
|
84
87
|
# @param send_email_request [SendEmailRequest]
|
|
85
88
|
# @param [Hash] opts the optional parameters
|
|
@@ -89,6 +92,7 @@ module Pingram
|
|
|
89
92
|
data
|
|
90
93
|
end
|
|
91
94
|
|
|
95
|
+
# Send an email
|
|
92
96
|
# Send an email. Requires `type`, `to`, `subject`, and `html`. Optional: `fromAddress`, `fromName`, `schedule`, attachments. To reach people outside your account, use an address on a verified domain. The shared Pingram address can only email the account itself and always sends as noreply.
|
|
93
97
|
# @param send_email_request [SendEmailRequest]
|
|
94
98
|
# @param [Hash] opts the optional parameters
|
|
@@ -74,6 +74,7 @@ module Pingram
|
|
|
74
74
|
return data, status_code, headers
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
+
# Update environment settings
|
|
77
78
|
# Update environment settings (title, secret, disable sending, secure mode)
|
|
78
79
|
# @param client_id [String] Environment client ID
|
|
79
80
|
# @param environment_patch_request [EnvironmentPatchRequest]
|
|
@@ -84,6 +85,7 @@ module Pingram
|
|
|
84
85
|
data
|
|
85
86
|
end
|
|
86
87
|
|
|
88
|
+
# Update environment settings
|
|
87
89
|
# Update environment settings (title, secret, disable sending, secure mode)
|
|
88
90
|
# @param client_id [String] Environment client ID
|
|
89
91
|
# @param environment_patch_request [EnvironmentPatchRequest]
|
|
@@ -19,6 +19,7 @@ module Pingram
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# Perform health checks on our internal systems
|
|
22
23
|
# Perform health checks on our internal systems.
|
|
23
24
|
# @param [Hash] opts the optional parameters
|
|
24
25
|
# @return [MessageResponse]
|
|
@@ -27,6 +28,7 @@ module Pingram
|
|
|
27
28
|
data
|
|
28
29
|
end
|
|
29
30
|
|
|
31
|
+
# Perform health checks on our internal systems
|
|
30
32
|
# Perform health checks on our internal systems.
|
|
31
33
|
# @param [Hash] opts the optional parameters
|
|
32
34
|
# @return [Array<(MessageResponse, Integer, Hash)>] MessageResponse data, response status code and response headers
|
|
@@ -19,6 +19,7 @@ module Pingram
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# Create an upload slot in the account library
|
|
22
23
|
# Create an upload slot in the account library. contentType must be image/png, image/jpeg, image/gif, or image/webp. PUT the file to the returned uploadUrl with that Content-Type, then use the returned url in emails and the editor.
|
|
23
24
|
# @param use_case [String] Library use-case
|
|
24
25
|
# @param create_library_request [CreateLibraryRequest]
|
|
@@ -29,6 +30,7 @@ module Pingram
|
|
|
29
30
|
data
|
|
30
31
|
end
|
|
31
32
|
|
|
33
|
+
# Create an upload slot in the account library
|
|
32
34
|
# Create an upload slot in the account library. contentType must be image/png, image/jpeg, image/gif, or image/webp. PUT the file to the returned uploadUrl with that Content-Type, then use the returned url in emails and the editor.
|
|
33
35
|
# @param use_case [String] Library use-case
|
|
34
36
|
# @param create_library_request [CreateLibraryRequest]
|
|
@@ -91,6 +93,7 @@ module Pingram
|
|
|
91
93
|
return data, status_code, headers
|
|
92
94
|
end
|
|
93
95
|
|
|
96
|
+
# List files in the account library
|
|
94
97
|
# List files in the account library for a use-case, newest first. Paginate with limit (default 50, max 100) and nextToken.
|
|
95
98
|
# @param use_case [String] Library use-case
|
|
96
99
|
# @param [Hash] opts the optional parameters
|
|
@@ -102,6 +105,7 @@ module Pingram
|
|
|
102
105
|
data
|
|
103
106
|
end
|
|
104
107
|
|
|
108
|
+
# List files in the account library
|
|
105
109
|
# List files in the account library for a use-case, newest first. Paginate with limit (default 50, max 100) and nextToken.
|
|
106
110
|
# @param use_case [String] Library use-case
|
|
107
111
|
# @param [Hash] opts the optional parameters
|
data/lib/pingram/api/logs_api.rb
CHANGED
|
@@ -19,6 +19,7 @@ module Pingram
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# Look up email and SMS delivery status
|
|
22
23
|
# Look up email and SMS delivery status for up to 25 tracking IDs. Each entry is the tracking id, channel (EMAIL or SMS), status, and the time that status was recorded. The result does not include recipients, phone numbers, user ids, request bodies, IP addresses, account ids, or user-agent data. Unknown tracking ids are omitted. Other channels are not included.
|
|
23
24
|
# @param tracking_ids [String] Comma-separated tracking IDs (URL encoded, max 25)
|
|
24
25
|
# @param [Hash] opts the optional parameters
|
|
@@ -28,6 +29,7 @@ module Pingram
|
|
|
28
29
|
data
|
|
29
30
|
end
|
|
30
31
|
|
|
32
|
+
# Look up email and SMS delivery status
|
|
31
33
|
# Look up email and SMS delivery status for up to 25 tracking IDs. Each entry is the tracking id, channel (EMAIL or SMS), status, and the time that status was recorded. The result does not include recipients, phone numbers, user ids, request bodies, IP addresses, account ids, or user-agent data. Unknown tracking ids are omitted. Other channels are not included.
|
|
32
34
|
# @param tracking_ids [String] Comma-separated tracking IDs (URL encoded, max 25)
|
|
33
35
|
# @param [Hash] opts the optional parameters
|
|
@@ -135,6 +137,7 @@ module Pingram
|
|
|
135
137
|
return data, status_code, headers
|
|
136
138
|
end
|
|
137
139
|
|
|
140
|
+
# List recent notification logs
|
|
138
141
|
# List recent notification logs for the authenticated account, newest first.
|
|
139
142
|
# @param [Hash] opts the optional parameters
|
|
140
143
|
# @option opts [Float] :limit Maximum number of logs to return (default
|
|
@@ -145,6 +148,7 @@ module Pingram
|
|
|
145
148
|
data
|
|
146
149
|
end
|
|
147
150
|
|
|
151
|
+
# List recent notification logs
|
|
148
152
|
# List recent notification logs for the authenticated account, newest first.
|
|
149
153
|
# @param [Hash] opts the optional parameters
|
|
150
154
|
# @option opts [Float] :limit Maximum number of logs to return (default
|
|
@@ -196,6 +200,7 @@ module Pingram
|
|
|
196
200
|
return data, status_code, headers
|
|
197
201
|
end
|
|
198
202
|
|
|
203
|
+
# Get logs by tracking IDs (comma-separated, max 25 IDs)
|
|
199
204
|
# Get logs by tracking IDs (comma-separated, max 25 IDs). Returns full log objects with personally identifiable information (recipients, user ids, phone numbers, and request details). For a simple delivery check, use Get Delivery Status.
|
|
200
205
|
# @param tracking_ids [String] Comma-separated tracking IDs (URL encoded)
|
|
201
206
|
# @param [Hash] opts the optional parameters
|
|
@@ -205,6 +210,7 @@ module Pingram
|
|
|
205
210
|
data
|
|
206
211
|
end
|
|
207
212
|
|
|
213
|
+
# Get logs by tracking IDs (comma-separated, max 25 IDs)
|
|
208
214
|
# Get logs by tracking IDs (comma-separated, max 25 IDs). Returns full log objects with personally identifiable information (recipients, user ids, phone numbers, and request details). For a simple delivery check, use Get Delivery Status.
|
|
209
215
|
# @param tracking_ids [String] Comma-separated tracking IDs (URL encoded)
|
|
210
216
|
# @param [Hash] opts the optional parameters
|
|
@@ -257,6 +263,7 @@ module Pingram
|
|
|
257
263
|
return data, status_code, headers
|
|
258
264
|
end
|
|
259
265
|
|
|
266
|
+
# Get results from a log query started with Start Log Query
|
|
260
267
|
# Get results from a log query started with Start Log Query. Poll until status is Complete.
|
|
261
268
|
# @param query_id [String] Query ID returned by Start Log Query
|
|
262
269
|
# @param [Hash] opts the optional parameters
|
|
@@ -266,6 +273,7 @@ module Pingram
|
|
|
266
273
|
data
|
|
267
274
|
end
|
|
268
275
|
|
|
276
|
+
# Get results from a log query started with Start Log Query
|
|
269
277
|
# Get results from a log query started with Start Log Query. Poll until status is Complete.
|
|
270
278
|
# @param query_id [String] Query ID returned by Start Log Query
|
|
271
279
|
# @param [Hash] opts the optional parameters
|
|
@@ -318,6 +326,7 @@ module Pingram
|
|
|
318
326
|
return data, status_code, headers
|
|
319
327
|
end
|
|
320
328
|
|
|
329
|
+
# Resend the EMAIL_INBOUND webhook for one inbound email
|
|
321
330
|
# Resend the EMAIL_INBOUND webhook for one inbound email. Uses the original tracking ID and does not count another email. Refused when the message is older than 30 days.
|
|
322
331
|
# @param tracking_id [String] Tracking ID of the inbound email
|
|
323
332
|
# @param [Hash] opts the optional parameters
|
|
@@ -327,6 +336,7 @@ module Pingram
|
|
|
327
336
|
data
|
|
328
337
|
end
|
|
329
338
|
|
|
339
|
+
# Resend the EMAIL_INBOUND webhook for one inbound email
|
|
330
340
|
# Resend the EMAIL_INBOUND webhook for one inbound email. Uses the original tracking ID and does not count another email. Refused when the message is older than 30 days.
|
|
331
341
|
# @param tracking_id [String] Tracking ID of the inbound email
|
|
332
342
|
# @param [Hash] opts the optional parameters
|
|
@@ -379,6 +389,7 @@ module Pingram
|
|
|
379
389
|
return data, status_code, headers
|
|
380
390
|
end
|
|
381
391
|
|
|
392
|
+
# Start an asynchronous log search over a date range
|
|
382
393
|
# Start an asynchronous log search over a date range. Returns a `queryId`; poll with Get Log Query Results until status is Complete.
|
|
383
394
|
# @param log_query_post_body [LogQueryPostBody]
|
|
384
395
|
# @param [Hash] opts the optional parameters
|
|
@@ -388,6 +399,7 @@ module Pingram
|
|
|
388
399
|
data
|
|
389
400
|
end
|
|
390
401
|
|
|
402
|
+
# Start an asynchronous log search over a date range
|
|
391
403
|
# Start an asynchronous log search over a date range. Returns a `queryId`; poll with Get Log Query Results until status is Complete.
|
|
392
404
|
# @param log_query_post_body [LogQueryPostBody]
|
|
393
405
|
# @param [Hash] opts the optional parameters
|
|
@@ -352,6 +352,7 @@ module Pingram
|
|
|
352
352
|
return data, status_code, headers
|
|
353
353
|
end
|
|
354
354
|
|
|
355
|
+
# Update a member
|
|
355
356
|
# Updates a member. Account owners can set role to \"owner\" or \"admin\" on other members.
|
|
356
357
|
# @param env_id [String] Environment ID
|
|
357
358
|
# @param user_id [String] User ID to update
|
|
@@ -363,6 +364,7 @@ module Pingram
|
|
|
363
364
|
data
|
|
364
365
|
end
|
|
365
366
|
|
|
367
|
+
# Update a member
|
|
366
368
|
# Updates a member. Account owners can set role to \"owner\" or \"admin\" on other members.
|
|
367
369
|
# @param env_id [String] Environment ID
|
|
368
370
|
# @param user_id [String] User ID to update
|
|
@@ -19,6 +19,7 @@ module Pingram
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# List phone numbers
|
|
22
23
|
# List active phone numbers registered for the account, including voice agent binding state.
|
|
23
24
|
# @param [Hash] opts the optional parameters
|
|
24
25
|
# @return [ListPhoneNumbersResponse]
|
|
@@ -27,6 +28,7 @@ module Pingram
|
|
|
27
28
|
data
|
|
28
29
|
end
|
|
29
30
|
|
|
31
|
+
# List phone numbers
|
|
30
32
|
# List active phone numbers registered for the account, including voice agent binding state.
|
|
31
33
|
# @param [Hash] opts the optional parameters
|
|
32
34
|
# @return [Array<(ListPhoneNumbersResponse, Integer, Hash)>] ListPhoneNumbersResponse data, response status code and response headers
|
|
@@ -74,6 +76,7 @@ module Pingram
|
|
|
74
76
|
return data, status_code, headers
|
|
75
77
|
end
|
|
76
78
|
|
|
79
|
+
# List released phone numbers
|
|
77
80
|
# List released phone numbers. Released numbers may be purchased again with 2 weeks of being released. Released numbers may be removed from released list after 2 weeks.
|
|
78
81
|
# @param [Hash] opts the optional parameters
|
|
79
82
|
# @return [ListReleasedPhoneNumbersResponse]
|
|
@@ -82,6 +85,7 @@ module Pingram
|
|
|
82
85
|
data
|
|
83
86
|
end
|
|
84
87
|
|
|
88
|
+
# List released phone numbers
|
|
85
89
|
# List released phone numbers. Released numbers may be purchased again with 2 weeks of being released. Released numbers may be removed from released list after 2 weeks.
|
|
86
90
|
# @param [Hash] opts the optional parameters
|
|
87
91
|
# @return [Array<(ListReleasedPhoneNumbersResponse, Integer, Hash)>] ListReleasedPhoneNumbersResponse data, response status code and response headers
|
|
@@ -129,6 +133,7 @@ module Pingram
|
|
|
129
133
|
return data, status_code, headers
|
|
130
134
|
end
|
|
131
135
|
|
|
136
|
+
# Purchase a phone number
|
|
132
137
|
# Purchase a phone number for the authenticated account, or reactivate a released number owned by the account (preserves original createdAt). Pass `phoneNumber` in E.164 format (e.g. +15551234567).
|
|
133
138
|
# @param order_phone_number_request [OrderPhoneNumberRequest]
|
|
134
139
|
# @param [Hash] opts the optional parameters
|
|
@@ -138,6 +143,7 @@ module Pingram
|
|
|
138
143
|
data
|
|
139
144
|
end
|
|
140
145
|
|
|
146
|
+
# Purchase a phone number
|
|
141
147
|
# Purchase a phone number for the authenticated account, or reactivate a released number owned by the account (preserves original createdAt). Pass `phoneNumber` in E.164 format (e.g. +15551234567).
|
|
142
148
|
# @param order_phone_number_request [OrderPhoneNumberRequest]
|
|
143
149
|
# @param [Hash] opts the optional parameters
|
|
@@ -195,6 +201,7 @@ module Pingram
|
|
|
195
201
|
return data, status_code, headers
|
|
196
202
|
end
|
|
197
203
|
|
|
204
|
+
# Release a phone number from the account
|
|
198
205
|
# Release a phone number from the account. No refund for the current billing month.
|
|
199
206
|
# @param phone_number [String] E.164 phone number to release
|
|
200
207
|
# @param [Hash] opts the optional parameters
|
|
@@ -204,6 +211,7 @@ module Pingram
|
|
|
204
211
|
data
|
|
205
212
|
end
|
|
206
213
|
|
|
214
|
+
# Release a phone number from the account
|
|
207
215
|
# Release a phone number from the account. No refund for the current billing month.
|
|
208
216
|
# @param phone_number [String] E.164 phone number to release
|
|
209
217
|
# @param [Hash] opts the optional parameters
|
|
@@ -256,6 +264,7 @@ module Pingram
|
|
|
256
264
|
return data, status_code, headers
|
|
257
265
|
end
|
|
258
266
|
|
|
267
|
+
# Search for available phone numbers to purchase
|
|
259
268
|
# Search for available phone numbers to purchase. Requires `countryCode` (e.g. US, CA). Use before ordering a number.
|
|
260
269
|
# @param country_code [String] ISO 3166-1 alpha-2 country code (e.g., US, CA)
|
|
261
270
|
# @param [Hash] opts the optional parameters
|
|
@@ -268,6 +277,7 @@ module Pingram
|
|
|
268
277
|
data
|
|
269
278
|
end
|
|
270
279
|
|
|
280
|
+
# Search for available phone numbers to purchase
|
|
271
281
|
# Search for available phone numbers to purchase. Requires `countryCode` (e.g. US, CA). Use before ordering a number.
|
|
272
282
|
# @param country_code [String] ISO 3166-1 alpha-2 country code (e.g., US, CA)
|
|
273
283
|
# @param [Hash] opts the optional parameters
|
|
@@ -19,6 +19,7 @@ module Pingram
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# Create a new 10DLC brand registration
|
|
22
23
|
# Create a new 10DLC brand registration. Sets brandStatus to pending_review; Pingram handles carrier submission after review.
|
|
23
24
|
# @param ten_dlc_brand_create_request [TenDlcBrandCreateRequest]
|
|
24
25
|
# @param [Hash] opts the optional parameters
|
|
@@ -28,6 +29,7 @@ module Pingram
|
|
|
28
29
|
data
|
|
29
30
|
end
|
|
30
31
|
|
|
32
|
+
# Create a new 10DLC brand registration
|
|
31
33
|
# Create a new 10DLC brand registration. Sets brandStatus to pending_review; Pingram handles carrier submission after review.
|
|
32
34
|
# @param ten_dlc_brand_create_request [TenDlcBrandCreateRequest]
|
|
33
35
|
# @param [Hash] opts the optional parameters
|
|
@@ -85,6 +87,7 @@ module Pingram
|
|
|
85
87
|
return data, status_code, headers
|
|
86
88
|
end
|
|
87
89
|
|
|
90
|
+
# Get the 10DLC brand registration
|
|
88
91
|
# Get the 10DLC brand registration for the authenticated account. Returns null when no registration exists yet.
|
|
89
92
|
# @param [Hash] opts the optional parameters
|
|
90
93
|
# @return [TenDlcBrandRegistration]
|
|
@@ -93,6 +96,7 @@ module Pingram
|
|
|
93
96
|
data
|
|
94
97
|
end
|
|
95
98
|
|
|
99
|
+
# Get the 10DLC brand registration
|
|
96
100
|
# Get the 10DLC brand registration for the authenticated account. Returns null when no registration exists yet.
|
|
97
101
|
# @param [Hash] opts the optional parameters
|
|
98
102
|
# @return [Array<(TenDlcBrandRegistration, Integer, Hash)>] TenDlcBrandRegistration data, response status code and response headers
|
|
@@ -140,6 +144,7 @@ module Pingram
|
|
|
140
144
|
return data, status_code, headers
|
|
141
145
|
end
|
|
142
146
|
|
|
147
|
+
# Get the 10DLC campaign registration
|
|
143
148
|
# Get the 10DLC campaign registration for the authenticated account. Returns null when no brand registration exists yet.
|
|
144
149
|
# @param [Hash] opts the optional parameters
|
|
145
150
|
# @return [TenDlcCampaignRegistration]
|
|
@@ -148,6 +153,7 @@ module Pingram
|
|
|
148
153
|
data
|
|
149
154
|
end
|
|
150
155
|
|
|
156
|
+
# Get the 10DLC campaign registration
|
|
151
157
|
# Get the 10DLC campaign registration for the authenticated account. Returns null when no brand registration exists yet.
|
|
152
158
|
# @param [Hash] opts the optional parameters
|
|
153
159
|
# @return [Array<(TenDlcCampaignRegistration, Integer, Hash)>] TenDlcCampaignRegistration data, response status code and response headers
|
|
@@ -195,6 +201,7 @@ module Pingram
|
|
|
195
201
|
return data, status_code, headers
|
|
196
202
|
end
|
|
197
203
|
|
|
204
|
+
# Update the 10DLC brand
|
|
198
205
|
# Overwrite business fields on this account's existing US 10DLC brand registration (legal name, address, tax ID, website, compliance contact, and related identity). Fields you omit stay; values you send replace what was stored and are not kept as history. Does not create a registration, submit it to carriers, change brandStatus, or delete it. Workflow status stays under Pingram's control.
|
|
199
206
|
# @param ten_dlc_brand_update_request [TenDlcBrandUpdateRequest]
|
|
200
207
|
# @param [Hash] opts the optional parameters
|
|
@@ -204,6 +211,7 @@ module Pingram
|
|
|
204
211
|
data
|
|
205
212
|
end
|
|
206
213
|
|
|
214
|
+
# Update the 10DLC brand
|
|
207
215
|
# Overwrite business fields on this account's existing US 10DLC brand registration (legal name, address, tax ID, website, compliance contact, and related identity). Fields you omit stay; values you send replace what was stored and are not kept as history. Does not create a registration, submit it to carriers, change brandStatus, or delete it. Workflow status stays under Pingram's control.
|
|
208
216
|
# @param ten_dlc_brand_update_request [TenDlcBrandUpdateRequest]
|
|
209
217
|
# @param [Hash] opts the optional parameters
|
|
@@ -261,6 +269,7 @@ module Pingram
|
|
|
261
269
|
return data, status_code, headers
|
|
262
270
|
end
|
|
263
271
|
|
|
272
|
+
# Update the 10DLC campaign
|
|
264
273
|
# Overwrite campaign fields on this account's existing US 10DLC campaign (description, samples, opt-in and opt-out text, use case, and related settings). Fields you send replace the stored values and the previous text is not kept; omitted fields stay. Editing is refused once the campaign is in_progress or approved. Does not submit the campaign to carriers, change campaignStatus, or delete it.
|
|
265
274
|
# @param ten_dlc_campaign_update_request [TenDlcCampaignUpdateRequest]
|
|
266
275
|
# @param [Hash] opts the optional parameters
|
|
@@ -270,6 +279,7 @@ module Pingram
|
|
|
270
279
|
data
|
|
271
280
|
end
|
|
272
281
|
|
|
282
|
+
# Update the 10DLC campaign
|
|
273
283
|
# Overwrite campaign fields on this account's existing US 10DLC campaign (description, samples, opt-in and opt-out text, use case, and related settings). Fields you send replace the stored values and the previous text is not kept; omitted fields stay. Editing is refused once the campaign is in_progress or approved. Does not submit the campaign to carriers, change campaignStatus, or delete it.
|
|
274
284
|
# @param ten_dlc_campaign_update_request [TenDlcCampaignUpdateRequest]
|
|
275
285
|
# @param [Hash] opts the optional parameters
|
|
@@ -146,6 +146,7 @@ module Pingram
|
|
|
146
146
|
return data, status_code, headers
|
|
147
147
|
end
|
|
148
148
|
|
|
149
|
+
# Update a scheduled notification
|
|
149
150
|
# Update the body or schedule of an already scheduled notification.
|
|
150
151
|
# @param tracking_id [String] The tracking ID of the scheduled notification
|
|
151
152
|
# @param sender_post_body [SenderPostBody]
|
|
@@ -156,6 +157,7 @@ module Pingram
|
|
|
156
157
|
data
|
|
157
158
|
end
|
|
158
159
|
|
|
160
|
+
# Update a scheduled notification
|
|
159
161
|
# Update the body or schedule of an already scheduled notification.
|
|
160
162
|
# @param tracking_id [String] The tracking ID of the scheduled notification
|
|
161
163
|
# @param sender_post_body [SenderPostBody]
|
data/lib/pingram/api/sms_api.rb
CHANGED
|
@@ -19,6 +19,7 @@ module Pingram
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# Send an SMS or MMS directly without a template
|
|
22
23
|
# Send an SMS or MMS directly without a template. Requires `type` and `to`. Pass `message` and/or `mediaUrls`. Optional: `from`, `schedule`.
|
|
23
24
|
# @param send_sms_request [SendSmsRequest]
|
|
24
25
|
# @param [Hash] opts the optional parameters
|
|
@@ -28,6 +29,7 @@ module Pingram
|
|
|
28
29
|
data
|
|
29
30
|
end
|
|
30
31
|
|
|
32
|
+
# Send an SMS or MMS directly without a template
|
|
31
33
|
# Send an SMS or MMS directly without a template. Requires `type` and `to`. Pass `message` and/or `mediaUrls`. Optional: `from`, `schedule`.
|
|
32
34
|
# @param send_sms_request [SendSmsRequest]
|
|
33
35
|
# @param [Hash] opts the optional parameters
|
|
@@ -19,6 +19,7 @@ module Pingram
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# This endpoint is no longer maintained and should not be used
|
|
22
23
|
# This endpoint is no longer maintained and should not be used.
|
|
23
24
|
# @param notification_id [String] The notification ID
|
|
24
25
|
# @param sub_notification_id [String] The sub-notification ID
|
|
@@ -29,6 +30,7 @@ module Pingram
|
|
|
29
30
|
nil
|
|
30
31
|
end
|
|
31
32
|
|
|
33
|
+
# This endpoint is no longer maintained and should not be used
|
|
32
34
|
# This endpoint is no longer maintained and should not be used.
|
|
33
35
|
# @param notification_id [String] The notification ID
|
|
34
36
|
# @param sub_notification_id [String] The sub-notification ID
|
|
@@ -86,6 +88,7 @@ module Pingram
|
|
|
86
88
|
return data, status_code, headers
|
|
87
89
|
end
|
|
88
90
|
|
|
91
|
+
# This endpoint is no longer maintained and should not be used
|
|
89
92
|
# This endpoint is no longer maintained and should not be used.
|
|
90
93
|
# @param notification_id [String] The notification ID
|
|
91
94
|
# @param sub_notification_id [String] The sub-notification ID
|
|
@@ -97,6 +100,7 @@ module Pingram
|
|
|
97
100
|
data
|
|
98
101
|
end
|
|
99
102
|
|
|
103
|
+
# This endpoint is no longer maintained and should not be used
|
|
100
104
|
# This endpoint is no longer maintained and should not be used.
|
|
101
105
|
# @param notification_id [String] The notification ID
|
|
102
106
|
# @param sub_notification_id [String] The sub-notification ID
|
data/lib/pingram/api/user_api.rb
CHANGED
|
@@ -19,6 +19,7 @@ module Pingram
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# Get account metadata
|
|
22
23
|
# Get account-level metadata including logo, VAPID key, and web push status
|
|
23
24
|
# @param [Hash] opts the optional parameters
|
|
24
25
|
# @return [GetAccountMetadataResponse]
|
|
@@ -27,6 +28,7 @@ module Pingram
|
|
|
27
28
|
data
|
|
28
29
|
end
|
|
29
30
|
|
|
31
|
+
# Get account metadata
|
|
30
32
|
# Get account-level metadata including logo, VAPID key, and web push status
|
|
31
33
|
# @param [Hash] opts the optional parameters
|
|
32
34
|
# @return [Array<(GetAccountMetadataResponse, Integer, Hash)>] GetAccountMetadataResponse data, response status code and response headers
|
|
@@ -74,6 +76,7 @@ module Pingram
|
|
|
74
76
|
return data, status_code, headers
|
|
75
77
|
end
|
|
76
78
|
|
|
79
|
+
# Get a user by ID
|
|
77
80
|
# Get a user by ID. All users exist implicitly, returns basic user object if not found in DB.
|
|
78
81
|
# @param user_id [String] User ID
|
|
79
82
|
# @param [Hash] opts the optional parameters
|
|
@@ -83,6 +86,7 @@ module Pingram
|
|
|
83
86
|
data
|
|
84
87
|
end
|
|
85
88
|
|
|
89
|
+
# Get a user by ID
|
|
86
90
|
# Get a user by ID. All users exist implicitly, returns basic user object if not found in DB.
|
|
87
91
|
# @param user_id [String] User ID
|
|
88
92
|
# @param [Hash] opts the optional parameters
|
|
@@ -135,6 +139,7 @@ module Pingram
|
|
|
135
139
|
return data, status_code, headers
|
|
136
140
|
end
|
|
137
141
|
|
|
142
|
+
# Create or update a user with the given ID
|
|
138
143
|
# Create or update a user with the given ID. Updates lastSeenTime automatically.
|
|
139
144
|
# @param user_id [String] User ID
|
|
140
145
|
# @param post_user_request [PostUserRequest]
|
|
@@ -145,6 +150,7 @@ module Pingram
|
|
|
145
150
|
data
|
|
146
151
|
end
|
|
147
152
|
|
|
153
|
+
# Create or update a user with the given ID
|
|
148
154
|
# Create or update a user with the given ID. Updates lastSeenTime automatically.
|
|
149
155
|
# @param user_id [String] User ID
|
|
150
156
|
# @param post_user_request [PostUserRequest]
|
|
@@ -19,6 +19,7 @@ module Pingram
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# Delete a user
|
|
22
23
|
# Delete a user and all associated data (in-app notifications, preferences, and user record)
|
|
23
24
|
# @param user_id [String] User ID
|
|
24
25
|
# @param [Hash] opts the optional parameters
|
|
@@ -29,6 +30,7 @@ module Pingram
|
|
|
29
30
|
data
|
|
30
31
|
end
|
|
31
32
|
|
|
33
|
+
# Delete a user
|
|
32
34
|
# Delete a user and all associated data (in-app notifications, preferences, and user record)
|
|
33
35
|
# @param user_id [String] User ID
|
|
34
36
|
# @param [Hash] opts the optional parameters
|
|
@@ -19,6 +19,7 @@ module Pingram
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# Arm the shared test number
|
|
22
23
|
# Arm the shared test number so the next call from this user's phone uses this inbound behavior
|
|
23
24
|
# @param arm_voice_inbound_claim_request [ArmVoiceInboundClaimRequest]
|
|
24
25
|
# @param [Hash] opts the optional parameters
|
|
@@ -28,6 +29,7 @@ module Pingram
|
|
|
28
29
|
data
|
|
29
30
|
end
|
|
30
31
|
|
|
32
|
+
# Arm the shared test number
|
|
31
33
|
# Arm the shared test number so the next call from this user's phone uses this inbound behavior
|
|
32
34
|
# @param arm_voice_inbound_claim_request [ArmVoiceInboundClaimRequest]
|
|
33
35
|
# @param [Hash] opts the optional parameters
|
|
@@ -85,6 +87,7 @@ module Pingram
|
|
|
85
87
|
return data, status_code, headers
|
|
86
88
|
end
|
|
87
89
|
|
|
90
|
+
# Place an outbound call. The config is not saved
|
|
88
91
|
# Place an outbound call. The config is not saved.
|
|
89
92
|
# @param voice_call_request [VoiceCallRequest]
|
|
90
93
|
# @param [Hash] opts the optional parameters
|
|
@@ -94,6 +97,7 @@ module Pingram
|
|
|
94
97
|
data
|
|
95
98
|
end
|
|
96
99
|
|
|
100
|
+
# Place an outbound call. The config is not saved
|
|
97
101
|
# Place an outbound call. The config is not saved.
|
|
98
102
|
# @param voice_call_request [VoiceCallRequest]
|
|
99
103
|
# @param [Hash] opts the optional parameters
|
|
@@ -212,6 +216,7 @@ module Pingram
|
|
|
212
216
|
return data, status_code, headers
|
|
213
217
|
end
|
|
214
218
|
|
|
219
|
+
# Place a browser playground call
|
|
215
220
|
# Place a browser playground call. Script calls use POST /voice/call.
|
|
216
221
|
# @param voice_browser_call_request [VoiceBrowserCallRequest]
|
|
217
222
|
# @param [Hash] opts the optional parameters
|
|
@@ -221,6 +226,7 @@ module Pingram
|
|
|
221
226
|
data
|
|
222
227
|
end
|
|
223
228
|
|
|
229
|
+
# Place a browser playground call
|
|
224
230
|
# Place a browser playground call. Script calls use POST /voice/call.
|
|
225
231
|
# @param voice_browser_call_request [VoiceBrowserCallRequest]
|
|
226
232
|
# @param [Hash] opts the optional parameters
|
|
@@ -278,6 +284,7 @@ module Pingram
|
|
|
278
284
|
return data, status_code, headers
|
|
279
285
|
end
|
|
280
286
|
|
|
287
|
+
# Get a call recording and transcript
|
|
281
288
|
# Get a call with transcript timeline and recording playback URL
|
|
282
289
|
# @param tracking_id [String] Call tracking id
|
|
283
290
|
# @param [Hash] opts the optional parameters
|
|
@@ -287,6 +294,7 @@ module Pingram
|
|
|
287
294
|
data
|
|
288
295
|
end
|
|
289
296
|
|
|
297
|
+
# Get a call recording and transcript
|
|
290
298
|
# Get a call with transcript timeline and recording playback URL
|
|
291
299
|
# @param tracking_id [String] Call tracking id
|
|
292
300
|
# @param [Hash] opts the optional parameters
|
|
@@ -471,5 +479,77 @@ module Pingram
|
|
|
471
479
|
end
|
|
472
480
|
return data, status_code, headers
|
|
473
481
|
end
|
|
482
|
+
|
|
483
|
+
# Move a live phone call to another number
|
|
484
|
+
# @param tracking_id [String] Call tracking id
|
|
485
|
+
# @param transfer_call_request [TransferCallRequest]
|
|
486
|
+
# @param [Hash] opts the optional parameters
|
|
487
|
+
# @return [MessageResponse]
|
|
488
|
+
def voice_transfer(tracking_id, transfer_call_request, opts = {})
|
|
489
|
+
data, _status_code, _headers = voice_transfer_with_http_info(tracking_id, transfer_call_request, opts)
|
|
490
|
+
data
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
# Move a live phone call to another number
|
|
494
|
+
# @param tracking_id [String] Call tracking id
|
|
495
|
+
# @param transfer_call_request [TransferCallRequest]
|
|
496
|
+
# @param [Hash] opts the optional parameters
|
|
497
|
+
# @return [Array<(MessageResponse, Integer, Hash)>] MessageResponse data, response status code and response headers
|
|
498
|
+
def voice_transfer_with_http_info(tracking_id, transfer_call_request, opts = {})
|
|
499
|
+
if @api_client.config.debugging
|
|
500
|
+
@api_client.config.logger.debug 'Calling API: VoiceApi.voice_transfer ...'
|
|
501
|
+
end
|
|
502
|
+
# verify the required parameter 'tracking_id' is set
|
|
503
|
+
if @api_client.config.client_side_validation && tracking_id.nil?
|
|
504
|
+
fail ArgumentError, "Missing the required parameter 'tracking_id' when calling VoiceApi.voice_transfer"
|
|
505
|
+
end
|
|
506
|
+
# verify the required parameter 'transfer_call_request' is set
|
|
507
|
+
if @api_client.config.client_side_validation && transfer_call_request.nil?
|
|
508
|
+
fail ArgumentError, "Missing the required parameter 'transfer_call_request' when calling VoiceApi.voice_transfer"
|
|
509
|
+
end
|
|
510
|
+
# resource path
|
|
511
|
+
local_var_path = '/voice/calls/{trackingId}/transfer'.sub('{' + 'trackingId' + '}', CGI.escape(tracking_id.to_s))
|
|
512
|
+
|
|
513
|
+
# query parameters
|
|
514
|
+
query_params = opts[:query_params] || {}
|
|
515
|
+
|
|
516
|
+
# header parameters
|
|
517
|
+
header_params = opts[:header_params] || {}
|
|
518
|
+
# HTTP header 'Accept' (if needed)
|
|
519
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
520
|
+
# HTTP header 'Content-Type'
|
|
521
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
522
|
+
if !content_type.nil?
|
|
523
|
+
header_params['Content-Type'] = content_type
|
|
524
|
+
end
|
|
525
|
+
|
|
526
|
+
# form parameters
|
|
527
|
+
form_params = opts[:form_params] || {}
|
|
528
|
+
|
|
529
|
+
# http body (model)
|
|
530
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(transfer_call_request)
|
|
531
|
+
|
|
532
|
+
# return_type
|
|
533
|
+
return_type = opts[:debug_return_type] || 'MessageResponse'
|
|
534
|
+
|
|
535
|
+
# auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
|
|
536
|
+
auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
|
|
537
|
+
|
|
538
|
+
new_options = opts.merge(
|
|
539
|
+
:operation => :"VoiceApi.voice_transfer",
|
|
540
|
+
:header_params => header_params,
|
|
541
|
+
:query_params => query_params,
|
|
542
|
+
:form_params => form_params,
|
|
543
|
+
:body => post_body,
|
|
544
|
+
:auth_names => auth_names,
|
|
545
|
+
:return_type => return_type
|
|
546
|
+
)
|
|
547
|
+
|
|
548
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
549
|
+
if @api_client.config.debugging
|
|
550
|
+
@api_client.config.logger.debug "API called: VoiceApi#voice_transfer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
551
|
+
end
|
|
552
|
+
return data, status_code, headers
|
|
553
|
+
end
|
|
474
554
|
end
|
|
475
555
|
end
|