phone_com_client 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +69 -0
- data/LICENSE +21 -0
- data/README.md +344 -0
- data/Rakefile +8 -0
- data/docs/AccountFull.md +14 -0
- data/docs/AccountSummary.md +9 -0
- data/docs/AccountsApi.md +127 -0
- data/docs/Address.md +13 -0
- data/docs/AddressListContacts.md +13 -0
- data/docs/ApplicationFull.md +9 -0
- data/docs/ApplicationSummary.md +9 -0
- data/docs/ApplicationsApi.md +137 -0
- data/docs/AvailableNumbersApi.md +94 -0
- data/docs/AvailableNumbersFull.md +18 -0
- data/docs/CallDetails.md +12 -0
- data/docs/CallFull.md +8 -0
- data/docs/CallLogFull.md +27 -0
- data/docs/CallLogsApi.md +149 -0
- data/docs/CallNotifications.md +9 -0
- data/docs/CallbackObject.md +13 -0
- data/docs/CallerIdFull.md +10 -0
- data/docs/CallerIdPhoneNumber.md +9 -0
- data/docs/CallerIdsApi.md +82 -0
- data/docs/CallsApi.md +67 -0
- data/docs/ContactAccount.md +14 -0
- data/docs/ContactFull.md +26 -0
- data/docs/ContactResponse.md +14 -0
- data/docs/ContactSummary.md +15 -0
- data/docs/ContactsApi.md +333 -0
- data/docs/CreateCallParams.md +15 -0
- data/docs/CreateContactParams.md +23 -0
- data/docs/CreateDeviceParams.md +9 -0
- data/docs/CreateExtensionParams.md +20 -0
- data/docs/CreateGroupParams.md +8 -0
- data/docs/CreateListenerParams.md +10 -0
- data/docs/CreateMediaParams.md +17 -0
- data/docs/CreateMenuParams.md +14 -0
- data/docs/CreateOauthParams.md +16 -0
- data/docs/CreatePaymentParams.md +11 -0
- data/docs/CreatePhoneNumberParams.md +15 -0
- data/docs/CreatePricingParams.md +10 -0
- data/docs/CreateQueueParams.md +14 -0
- data/docs/CreateRedirectUriParams.md +8 -0
- data/docs/CreateRouteParams.md +10 -0
- data/docs/CreateSmsParams.md +11 -0
- data/docs/CreateSubaccountParams.md +11 -0
- data/docs/CreateTrunkParams.md +14 -0
- data/docs/DefaultApi.md +57 -0
- data/docs/DeleteEntry.md +8 -0
- data/docs/DeviceFull.md +11 -0
- data/docs/DeviceMembership.md +9 -0
- data/docs/DeviceSummary.md +9 -0
- data/docs/DevicesApi.md +316 -0
- data/docs/Email.md +9 -0
- data/docs/ExpressServiceCodeFull.md +10 -0
- data/docs/ExpressServiceCodesApi.md +125 -0
- data/docs/ExtensionFull.md +24 -0
- data/docs/ExtensionSummary.md +10 -0
- data/docs/ExtensionsApi.md +262 -0
- data/docs/FilterCallLogs.md +13 -0
- data/docs/FilterIdArray.md +8 -0
- data/docs/FilterIdDirectionFrom.md +10 -0
- data/docs/FilterIdExtensionNameArray.md +10 -0
- data/docs/FilterIdGroupIdUpdatedAtArray.md +10 -0
- data/docs/FilterIdNameArray.md +9 -0
- data/docs/FilterIdNamePhoneNumberArray.md +10 -0
- data/docs/FilterListAvailableNumbers.md +17 -0
- data/docs/FilterListPhoneNumbersRegions.md +14 -0
- data/docs/FilterNameNumberArray.md +9 -0
- data/docs/FilterVoicemailArray.md +13 -0
- data/docs/FromObject.md +11 -0
- data/docs/GetOauthAccessToken.md +10 -0
- data/docs/Greeting.md +11 -0
- data/docs/GreetingInput.md +11 -0
- data/docs/GroupFull.md +9 -0
- data/docs/GroupListContacts.md +9 -0
- data/docs/GroupSummary.md +9 -0
- data/docs/GroupsApi.md +329 -0
- data/docs/HoldMusic.md +9 -0
- data/docs/Line.md +9 -0
- data/docs/ListAccounts.md +13 -0
- data/docs/ListApplications.md +13 -0
- data/docs/ListAvailableNumbers.md +13 -0
- data/docs/ListCallLogs.md +13 -0
- data/docs/ListCallerIds.md +13 -0
- data/docs/ListContacts.md +13 -0
- data/docs/ListDevices.md +13 -0
- data/docs/ListExpressServiceCodes.md +13 -0
- data/docs/ListExtensions.md +13 -0
- data/docs/ListGroups.md +13 -0
- data/docs/ListListeners.md +13 -0
- data/docs/ListMedia.md +13 -0
- data/docs/ListMenus.md +13 -0
- data/docs/ListOauthClients.md +13 -0
- data/docs/ListOauthClientsRedirectUris.md +12 -0
- data/docs/ListPaymentMethods.md +13 -0
- data/docs/ListPhoneNumbers.md +13 -0
- data/docs/ListPhoneNumbersRegions.md +14 -0
- data/docs/ListPricings.md +13 -0
- data/docs/ListQueues.md +13 -0
- data/docs/ListRoutes.md +13 -0
- data/docs/ListSchedules.md +13 -0
- data/docs/ListSms.md +13 -0
- data/docs/ListTrunks.md +13 -0
- data/docs/ListVoicemail.md +13 -0
- data/docs/ListenerFull.md +14 -0
- data/docs/ListenersApi.md +312 -0
- data/docs/MediaApi.md +441 -0
- data/docs/MediaFull.md +10 -0
- data/docs/MediaSummary.md +9 -0
- data/docs/Member.md +9 -0
- data/docs/MenuFull.md +15 -0
- data/docs/MenuSummary.md +9 -0
- data/docs/MenusApi.md +316 -0
- data/docs/Notification.md +9 -0
- data/docs/NumberRegionsApi.md +98 -0
- data/docs/OauthAccessToken.md +12 -0
- data/docs/OauthApi.md +176 -0
- data/docs/OauthClientFull.md +9 -0
- data/docs/OauthClientRedirectUriFull.md +10 -0
- data/docs/OauthClientsApi.md +191 -0
- data/docs/OauthClientsRedirectUrisApi.md +262 -0
- data/docs/Option.md +9 -0
- data/docs/PatchPaymentParams.md +8 -0
- data/docs/PatchSmsParams.md +8 -0
- data/docs/PatchVoicemailParams.md +8 -0
- data/docs/PaymentFull.md +20 -0
- data/docs/PaymentMethodsApi.md +311 -0
- data/docs/PaymentSummary.md +13 -0
- data/docs/PhoneNumberContact.md +10 -0
- data/docs/PhoneNumberFull.md +16 -0
- data/docs/PhoneNumbersApi.md +262 -0
- data/docs/PhoneNumbersRegionFull.md +15 -0
- data/docs/PingResponse.md +11 -0
- data/docs/PricingFull.md +13 -0
- data/docs/PricingObject.md +9 -0
- data/docs/QueueFull.md +15 -0
- data/docs/QueueSummary.md +9 -0
- data/docs/QueuesApi.md +316 -0
- data/docs/Recipient.md +9 -0
- data/docs/RedirectUriFull.md +10 -0
- data/docs/ReplaceExtensionParams.md +21 -0
- data/docs/ReplaceMenuParams.md +14 -0
- data/docs/ReplacePhoneNumberParams.md +13 -0
- data/docs/RouteFull.md +11 -0
- data/docs/RouteSummary.md +9 -0
- data/docs/RoutesApi.md +316 -0
- data/docs/RuleSet.md +9 -0
- data/docs/RuleSetAction.md +17 -0
- data/docs/RuleSetFilter.md +11 -0
- data/docs/RuleSetForwardItem.md +14 -0
- data/docs/ScheduleFull.md +9 -0
- data/docs/ScheduleSummary.md +9 -0
- data/docs/SchedulesApi.md +137 -0
- data/docs/ScopeDetails.md +8 -0
- data/docs/SipAuthentication.md +11 -0
- data/docs/SmsApi.md +265 -0
- data/docs/SmsForwarding.md +10 -0
- data/docs/SmsForwardingParams.md +10 -0
- data/docs/SmsFull.md +15 -0
- data/docs/SortCallLogs.md +10 -0
- data/docs/SortId.md +8 -0
- data/docs/SortIdCreatedAt.md +9 -0
- data/docs/SortIdExtensionName.md +10 -0
- data/docs/SortIdName.md +9 -0
- data/docs/SortIdNamePhoneNumber.md +10 -0
- data/docs/SortIdUpdatedAt.md +9 -0
- data/docs/SortListAvailableNumbers.md +10 -0
- data/docs/SortListPhoneNumbersRegions.md +14 -0
- data/docs/SortNameNumber.md +9 -0
- data/docs/SubaccountPricingApi.md +261 -0
- data/docs/SubaccountsApi.md +133 -0
- data/docs/TrunkFull.md +15 -0
- data/docs/TrunkSummary.md +9 -0
- data/docs/TrunksApi.md +314 -0
- data/docs/Voicemail.md +13 -0
- data/docs/VoicemailApi.md +207 -0
- data/docs/VoicemailFull.md +16 -0
- data/docs/VoicemailInput.md +13 -0
- data/git_push.sh +55 -0
- data/lib/phone_com_client/api/accounts_api.rb +144 -0
- data/lib/phone_com_client/api/applications_api.rb +166 -0
- data/lib/phone_com_client/api/available_numbers_api.rb +131 -0
- data/lib/phone_com_client/api/call_logs_api.rb +204 -0
- data/lib/phone_com_client/api/caller_ids_api.rb +112 -0
- data/lib/phone_com_client/api/calls_api.rb +79 -0
- data/lib/phone_com_client/api/contacts_api.rb +377 -0
- data/lib/phone_com_client/api/default_api.rb +71 -0
- data/lib/phone_com_client/api/devices_api.rb +344 -0
- data/lib/phone_com_client/api/express_service_codes_api.rb +140 -0
- data/lib/phone_com_client/api/extensions_api.rb +294 -0
- data/lib/phone_com_client/api/groups_api.rb +382 -0
- data/lib/phone_com_client/api/listeners_api.rb +334 -0
- data/lib/phone_com_client/api/media_api.rb +470 -0
- data/lib/phone_com_client/api/menus_api.rb +344 -0
- data/lib/phone_com_client/api/number_regions_api.rb +149 -0
- data/lib/phone_com_client/api/oauth_api.rb +196 -0
- data/lib/phone_com_client/api/oauth_clients_api.rb +216 -0
- data/lib/phone_com_client/api/oauth_clients_redirect_uris_api.rb +296 -0
- data/lib/phone_com_client/api/payment_methods_api.rb +338 -0
- data/lib/phone_com_client/api/phone_numbers_api.rb +294 -0
- data/lib/phone_com_client/api/queues_api.rb +344 -0
- data/lib/phone_com_client/api/routes_api.rb +344 -0
- data/lib/phone_com_client/api/schedules_api.rb +166 -0
- data/lib/phone_com_client/api/sms_api.rb +316 -0
- data/lib/phone_com_client/api/subaccount_pricing_api.rb +300 -0
- data/lib/phone_com_client/api/subaccounts_api.rb +156 -0
- data/lib/phone_com_client/api/trunks_api.rb +352 -0
- data/lib/phone_com_client/api/voicemail_api.rb +252 -0
- data/lib/phone_com_client/api_client.rb +389 -0
- data/lib/phone_com_client/api_error.rb +38 -0
- data/lib/phone_com_client/configuration.rb +209 -0
- data/lib/phone_com_client/models/account_full.rb +245 -0
- data/lib/phone_com_client/models/account_summary.rb +195 -0
- data/lib/phone_com_client/models/address.rb +250 -0
- data/lib/phone_com_client/models/address_list_contacts.rb +234 -0
- data/lib/phone_com_client/models/application_full.rb +195 -0
- data/lib/phone_com_client/models/application_summary.rb +195 -0
- data/lib/phone_com_client/models/available_numbers_full.rb +285 -0
- data/lib/phone_com_client/models/call_details.rb +225 -0
- data/lib/phone_com_client/models/call_full.rb +185 -0
- data/lib/phone_com_client/models/call_log_full.rb +377 -0
- data/lib/phone_com_client/models/call_notifications.rb +197 -0
- data/lib/phone_com_client/models/callback_object.rb +234 -0
- data/lib/phone_com_client/models/caller_id_full.rb +205 -0
- data/lib/phone_com_client/models/caller_id_phone_number.rb +210 -0
- data/lib/phone_com_client/models/contact_account.rb +243 -0
- data/lib/phone_com_client/models/contact_full.rb +370 -0
- data/lib/phone_com_client/models/contact_response.rb +243 -0
- data/lib/phone_com_client/models/contact_summary.rb +255 -0
- data/lib/phone_com_client/models/create_call_params.rb +254 -0
- data/lib/phone_com_client/models/create_contact_params.rb +340 -0
- data/lib/phone_com_client/models/create_device_params.rb +196 -0
- data/lib/phone_com_client/models/create_extension_params.rb +302 -0
- data/lib/phone_com_client/models/create_group_params.rb +184 -0
- data/lib/phone_com_client/models/create_listener_params.rb +206 -0
- data/lib/phone_com_client/models/create_media_params.rb +274 -0
- data/lib/phone_com_client/models/create_menu_params.rb +239 -0
- data/lib/phone_com_client/models/create_oauth_params.rb +264 -0
- data/lib/phone_com_client/models/create_payment_params.rb +214 -0
- data/lib/phone_com_client/models/create_phone_number_params.rb +251 -0
- data/lib/phone_com_client/models/create_pricing_params.rb +204 -0
- data/lib/phone_com_client/models/create_queue_params.rb +246 -0
- data/lib/phone_com_client/models/create_redirect_uri_params.rb +184 -0
- data/lib/phone_com_client/models/create_route_params.rb +206 -0
- data/lib/phone_com_client/models/create_sms_params.rb +229 -0
- data/lib/phone_com_client/models/create_subaccount_params.rb +224 -0
- data/lib/phone_com_client/models/create_trunk_params.rb +246 -0
- data/lib/phone_com_client/models/delete_entry.rb +183 -0
- data/lib/phone_com_client/models/device_full.rb +216 -0
- data/lib/phone_com_client/models/device_membership.rb +195 -0
- data/lib/phone_com_client/models/device_summary.rb +195 -0
- data/lib/phone_com_client/models/email.rb +194 -0
- data/lib/phone_com_client/models/express_service_code_full.rb +207 -0
- data/lib/phone_com_client/models/extension_full.rb +342 -0
- data/lib/phone_com_client/models/extension_summary.rb +205 -0
- data/lib/phone_com_client/models/filter_call_logs.rb +228 -0
- data/lib/phone_com_client/models/filter_id_array.rb +183 -0
- data/lib/phone_com_client/models/filter_id_direction_from.rb +201 -0
- data/lib/phone_com_client/models/filter_id_extension_name_array.rb +201 -0
- data/lib/phone_com_client/models/filter_id_group_id_updated_at_array.rb +201 -0
- data/lib/phone_com_client/models/filter_id_name_array.rb +192 -0
- data/lib/phone_com_client/models/filter_id_name_phone_number_array.rb +201 -0
- data/lib/phone_com_client/models/filter_list_available_numbers.rb +264 -0
- data/lib/phone_com_client/models/filter_list_phone_numbers_regions.rb +237 -0
- data/lib/phone_com_client/models/filter_name_number_array.rb +192 -0
- data/lib/phone_com_client/models/filter_voicemail_array.rb +228 -0
- data/lib/phone_com_client/models/from_object.rb +215 -0
- data/lib/phone_com_client/models/get_oauth_access_token.rb +203 -0
- data/lib/phone_com_client/models/greeting.rb +215 -0
- data/lib/phone_com_client/models/greeting_input.rb +215 -0
- data/lib/phone_com_client/models/group_full.rb +195 -0
- data/lib/phone_com_client/models/group_list_contacts.rb +195 -0
- data/lib/phone_com_client/models/group_summary.rb +195 -0
- data/lib/phone_com_client/models/hold_music.rb +195 -0
- data/lib/phone_com_client/models/line.rb +194 -0
- data/lib/phone_com_client/models/list_accounts.rb +230 -0
- data/lib/phone_com_client/models/list_applications.rb +230 -0
- data/lib/phone_com_client/models/list_available_numbers.rb +230 -0
- data/lib/phone_com_client/models/list_call_logs.rb +230 -0
- data/lib/phone_com_client/models/list_caller_ids.rb +230 -0
- data/lib/phone_com_client/models/list_contacts.rb +230 -0
- data/lib/phone_com_client/models/list_devices.rb +230 -0
- data/lib/phone_com_client/models/list_express_service_codes.rb +232 -0
- data/lib/phone_com_client/models/list_extensions.rb +230 -0
- data/lib/phone_com_client/models/list_groups.rb +230 -0
- data/lib/phone_com_client/models/list_listeners.rb +230 -0
- data/lib/phone_com_client/models/list_media.rb +230 -0
- data/lib/phone_com_client/models/list_menus.rb +230 -0
- data/lib/phone_com_client/models/list_oauth_clients.rb +230 -0
- data/lib/phone_com_client/models/list_oauth_clients_redirect_uris.rb +221 -0
- data/lib/phone_com_client/models/list_payment_methods.rb +230 -0
- data/lib/phone_com_client/models/list_phone_numbers.rb +231 -0
- data/lib/phone_com_client/models/list_phone_numbers_regions.rb +241 -0
- data/lib/phone_com_client/models/list_pricings.rb +230 -0
- data/lib/phone_com_client/models/list_queues.rb +230 -0
- data/lib/phone_com_client/models/list_routes.rb +230 -0
- data/lib/phone_com_client/models/list_schedules.rb +230 -0
- data/lib/phone_com_client/models/list_sms.rb +230 -0
- data/lib/phone_com_client/models/list_trunks.rb +230 -0
- data/lib/phone_com_client/models/list_voicemail.rb +230 -0
- data/lib/phone_com_client/models/listener_full.rb +244 -0
- data/lib/phone_com_client/models/media_full.rb +220 -0
- data/lib/phone_com_client/models/media_summary.rb +195 -0
- data/lib/phone_com_client/models/member.rb +194 -0
- data/lib/phone_com_client/models/menu_full.rb +257 -0
- data/lib/phone_com_client/models/menu_summary.rb +195 -0
- data/lib/phone_com_client/models/notification.rb +197 -0
- data/lib/phone_com_client/models/oauth_access_token.rb +219 -0
- data/lib/phone_com_client/models/oauth_client_full.rb +195 -0
- data/lib/phone_com_client/models/oauth_client_redirect_uri_full.rb +205 -0
- data/lib/phone_com_client/models/option.rb +194 -0
- data/lib/phone_com_client/models/patch_payment_params.rb +184 -0
- data/lib/phone_com_client/models/patch_sms_params.rb +184 -0
- data/lib/phone_com_client/models/patch_voicemail_params.rb +184 -0
- data/lib/phone_com_client/models/payment_full.rb +305 -0
- data/lib/phone_com_client/models/payment_summary.rb +235 -0
- data/lib/phone_com_client/models/phone_number_contact.rb +204 -0
- data/lib/phone_com_client/models/phone_number_full.rb +262 -0
- data/lib/phone_com_client/models/phone_numbers_region_full.rb +255 -0
- data/lib/phone_com_client/models/ping_response.rb +211 -0
- data/lib/phone_com_client/models/pricing_full.rb +235 -0
- data/lib/phone_com_client/models/pricing_object.rb +194 -0
- data/lib/phone_com_client/models/queue_full.rb +266 -0
- data/lib/phone_com_client/models/queue_summary.rb +205 -0
- data/lib/phone_com_client/models/recipient.rb +194 -0
- data/lib/phone_com_client/models/redirect_uri_full.rb +204 -0
- data/lib/phone_com_client/models/replace_extension_params.rb +312 -0
- data/lib/phone_com_client/models/replace_menu_params.rb +239 -0
- data/lib/phone_com_client/models/replace_phone_number_params.rb +251 -0
- data/lib/phone_com_client/models/route_full.rb +217 -0
- data/lib/phone_com_client/models/route_summary.rb +195 -0
- data/lib/phone_com_client/models/rule_set.rb +195 -0
- data/lib/phone_com_client/models/rule_set_action.rb +292 -0
- data/lib/phone_com_client/models/rule_set_filter.rb +230 -0
- data/lib/phone_com_client/models/rule_set_forward_item.rb +294 -0
- data/lib/phone_com_client/models/schedule_full.rb +195 -0
- data/lib/phone_com_client/models/schedule_summary.rb +195 -0
- data/lib/phone_com_client/models/scope_details.rb +183 -0
- data/lib/phone_com_client/models/sip_authentication.rb +215 -0
- data/lib/phone_com_client/models/sms_forwarding.rb +220 -0
- data/lib/phone_com_client/models/sms_forwarding_params.rb +220 -0
- data/lib/phone_com_client/models/sms_full.rb +257 -0
- data/lib/phone_com_client/models/sort_call_logs.rb +201 -0
- data/lib/phone_com_client/models/sort_id.rb +183 -0
- data/lib/phone_com_client/models/sort_id_created_at.rb +192 -0
- data/lib/phone_com_client/models/sort_id_extension_name.rb +201 -0
- data/lib/phone_com_client/models/sort_id_name.rb +192 -0
- data/lib/phone_com_client/models/sort_id_name_phone_number.rb +201 -0
- data/lib/phone_com_client/models/sort_id_updated_at.rb +192 -0
- data/lib/phone_com_client/models/sort_list_available_numbers.rb +201 -0
- data/lib/phone_com_client/models/sort_list_phone_numbers_regions.rb +237 -0
- data/lib/phone_com_client/models/sort_name_number.rb +192 -0
- data/lib/phone_com_client/models/trunk_full.rb +297 -0
- data/lib/phone_com_client/models/trunk_summary.rb +205 -0
- data/lib/phone_com_client/models/voicemail.rb +234 -0
- data/lib/phone_com_client/models/voicemail_full.rb +265 -0
- data/lib/phone_com_client/models/voicemail_input.rb +234 -0
- data/lib/phone_com_client/version.rb +15 -0
- data/lib/phone_com_client.rb +214 -0
- data/phone_com_client.gemspec +45 -0
- data/spec/api/accounts_api_spec.rb +63 -0
- data/spec/api/applications_api_spec.rb +67 -0
- data/spec/api/available_numbers_api_spec.rb +62 -0
- data/spec/api/call_logs_api_spec.rb +73 -0
- data/spec/api/caller_ids_api_spec.rb +55 -0
- data/spec/api/calls_api_spec.rb +48 -0
- data/spec/api/contacts_api_spec.rb +113 -0
- data/spec/api/default_api_spec.rb +46 -0
- data/spec/api/devices_api_spec.rb +107 -0
- data/spec/api/express_service_codes_api_spec.rb +61 -0
- data/spec/api/extensions_api_spec.rb +96 -0
- data/spec/api/groups_api_spec.rb +112 -0
- data/spec/api/listeners_api_spec.rb +105 -0
- data/spec/api/media_api_spec.rb +136 -0
- data/spec/api/menus_api_spec.rb +107 -0
- data/spec/api/number_regions_api_spec.rb +64 -0
- data/spec/api/oauth_api_spec.rb +73 -0
- data/spec/api/oauth_clients_api_spec.rb +78 -0
- data/spec/api/oauth_clients_redirect_uris_api_spec.rb +95 -0
- data/spec/api/payment_methods_api_spec.rb +105 -0
- data/spec/api/phone_numbers_api_spec.rb +96 -0
- data/spec/api/queues_api_spec.rb +107 -0
- data/spec/api/routes_api_spec.rb +107 -0
- data/spec/api/schedules_api_spec.rb +67 -0
- data/spec/api/sms_api_spec.rb +98 -0
- data/spec/api/subaccount_pricing_api_spec.rb +95 -0
- data/spec/api/subaccounts_api_spec.rb +65 -0
- data/spec/api/trunks_api_spec.rb +107 -0
- data/spec/api/voicemail_api_spec.rb +85 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_full_spec.rb +77 -0
- data/spec/models/account_summary_spec.rb +47 -0
- data/spec/models/address_list_contacts_spec.rb +71 -0
- data/spec/models/address_spec.rb +71 -0
- data/spec/models/application_full_spec.rb +47 -0
- data/spec/models/application_summary_spec.rb +47 -0
- data/spec/models/available_numbers_full_spec.rb +101 -0
- data/spec/models/call_details_spec.rb +65 -0
- data/spec/models/call_full_spec.rb +41 -0
- data/spec/models/call_log_full_spec.rb +155 -0
- data/spec/models/call_notifications_spec.rb +47 -0
- data/spec/models/callback_object_spec.rb +71 -0
- data/spec/models/caller_id_full_spec.rb +53 -0
- data/spec/models/caller_id_phone_number_spec.rb +47 -0
- data/spec/models/contact_account_spec.rb +77 -0
- data/spec/models/contact_full_spec.rb +149 -0
- data/spec/models/contact_response_spec.rb +77 -0
- data/spec/models/contact_summary_spec.rb +83 -0
- data/spec/models/create_call_params_spec.rb +83 -0
- data/spec/models/create_contact_params_spec.rb +131 -0
- data/spec/models/create_device_params_spec.rb +47 -0
- data/spec/models/create_extension_params_spec.rb +113 -0
- data/spec/models/create_group_params_spec.rb +41 -0
- data/spec/models/create_listener_params_spec.rb +53 -0
- data/spec/models/create_media_params_spec.rb +95 -0
- data/spec/models/create_menu_params_spec.rb +77 -0
- data/spec/models/create_oauth_params_spec.rb +89 -0
- data/spec/models/create_payment_params_spec.rb +59 -0
- data/spec/models/create_phone_number_params_spec.rb +83 -0
- data/spec/models/create_pricing_params_spec.rb +53 -0
- data/spec/models/create_queue_params_spec.rb +77 -0
- data/spec/models/create_redirect_uri_params_spec.rb +41 -0
- data/spec/models/create_route_params_spec.rb +53 -0
- data/spec/models/create_sms_params_spec.rb +59 -0
- data/spec/models/create_subaccount_params_spec.rb +59 -0
- data/spec/models/create_trunk_params_spec.rb +77 -0
- data/spec/models/delete_entry_spec.rb +41 -0
- data/spec/models/device_full_spec.rb +59 -0
- data/spec/models/device_membership_spec.rb +47 -0
- data/spec/models/device_summary_spec.rb +47 -0
- data/spec/models/email_spec.rb +47 -0
- data/spec/models/express_service_code_full_spec.rb +53 -0
- data/spec/models/extension_full_spec.rb +137 -0
- data/spec/models/extension_summary_spec.rb +53 -0
- data/spec/models/filter_call_logs_spec.rb +71 -0
- data/spec/models/filter_id_array_spec.rb +41 -0
- data/spec/models/filter_id_direction_from_spec.rb +53 -0
- data/spec/models/filter_id_extension_name_array_spec.rb +53 -0
- data/spec/models/filter_id_group_id_updated_at_array_spec.rb +53 -0
- data/spec/models/filter_id_name_array_spec.rb +47 -0
- data/spec/models/filter_id_name_phone_number_array_spec.rb +53 -0
- data/spec/models/filter_list_available_numbers_spec.rb +95 -0
- data/spec/models/filter_list_phone_numbers_regions_spec.rb +77 -0
- data/spec/models/filter_name_number_array_spec.rb +47 -0
- data/spec/models/filter_voicemail_array_spec.rb +71 -0
- data/spec/models/from_object_spec.rb +59 -0
- data/spec/models/get_oauth_access_token_spec.rb +53 -0
- data/spec/models/greeting_input_spec.rb +59 -0
- data/spec/models/greeting_spec.rb +59 -0
- data/spec/models/group_full_spec.rb +47 -0
- data/spec/models/group_list_contacts_spec.rb +47 -0
- data/spec/models/group_summary_spec.rb +47 -0
- data/spec/models/hold_music_spec.rb +47 -0
- data/spec/models/line_spec.rb +47 -0
- data/spec/models/list_accounts_spec.rb +71 -0
- data/spec/models/list_applications_spec.rb +71 -0
- data/spec/models/list_available_numbers_spec.rb +71 -0
- data/spec/models/list_call_logs_spec.rb +71 -0
- data/spec/models/list_caller_ids_spec.rb +71 -0
- data/spec/models/list_contacts_spec.rb +71 -0
- data/spec/models/list_devices_spec.rb +71 -0
- data/spec/models/list_express_service_codes_spec.rb +71 -0
- data/spec/models/list_extensions_spec.rb +71 -0
- data/spec/models/list_groups_spec.rb +71 -0
- data/spec/models/list_listeners_spec.rb +71 -0
- data/spec/models/list_media_spec.rb +71 -0
- data/spec/models/list_menus_spec.rb +71 -0
- data/spec/models/list_oauth_clients_redirect_uris_spec.rb +65 -0
- data/spec/models/list_oauth_clients_spec.rb +71 -0
- data/spec/models/list_payment_methods_spec.rb +71 -0
- data/spec/models/list_phone_numbers_regions_spec.rb +77 -0
- data/spec/models/list_phone_numbers_spec.rb +71 -0
- data/spec/models/list_pricings_spec.rb +71 -0
- data/spec/models/list_queues_spec.rb +71 -0
- data/spec/models/list_routes_spec.rb +71 -0
- data/spec/models/list_schedules_spec.rb +71 -0
- data/spec/models/list_sms_spec.rb +71 -0
- data/spec/models/list_trunks_spec.rb +71 -0
- data/spec/models/list_voicemail_spec.rb +71 -0
- data/spec/models/listener_full_spec.rb +77 -0
- data/spec/models/media_full_spec.rb +53 -0
- data/spec/models/media_summary_spec.rb +47 -0
- data/spec/models/member_spec.rb +47 -0
- data/spec/models/menu_full_spec.rb +83 -0
- data/spec/models/menu_summary_spec.rb +47 -0
- data/spec/models/notification_spec.rb +47 -0
- data/spec/models/oauth_access_token_spec.rb +65 -0
- data/spec/models/oauth_client_full_spec.rb +47 -0
- data/spec/models/oauth_client_redirect_uri_full_spec.rb +53 -0
- data/spec/models/option_spec.rb +47 -0
- data/spec/models/patch_payment_params_spec.rb +41 -0
- data/spec/models/patch_sms_params_spec.rb +41 -0
- data/spec/models/patch_voicemail_params_spec.rb +41 -0
- data/spec/models/payment_full_spec.rb +113 -0
- data/spec/models/payment_summary_spec.rb +71 -0
- data/spec/models/phone_number_contact_spec.rb +53 -0
- data/spec/models/phone_number_full_spec.rb +89 -0
- data/spec/models/phone_numbers_region_full_spec.rb +83 -0
- data/spec/models/ping_response_spec.rb +59 -0
- data/spec/models/pricing_full_spec.rb +71 -0
- data/spec/models/pricing_object_spec.rb +47 -0
- data/spec/models/queue_full_spec.rb +83 -0
- data/spec/models/queue_summary_spec.rb +47 -0
- data/spec/models/recipient_spec.rb +47 -0
- data/spec/models/redirect_uri_full_spec.rb +53 -0
- data/spec/models/replace_extension_params_spec.rb +119 -0
- data/spec/models/replace_menu_params_spec.rb +77 -0
- data/spec/models/replace_phone_number_params_spec.rb +83 -0
- data/spec/models/route_full_spec.rb +59 -0
- data/spec/models/route_summary_spec.rb +47 -0
- data/spec/models/rule_set_action_spec.rb +95 -0
- data/spec/models/rule_set_filter_spec.rb +59 -0
- data/spec/models/rule_set_forward_item_spec.rb +77 -0
- data/spec/models/rule_set_spec.rb +47 -0
- data/spec/models/schedule_full_spec.rb +47 -0
- data/spec/models/schedule_summary_spec.rb +47 -0
- data/spec/models/scope_details_spec.rb +41 -0
- data/spec/models/sip_authentication_spec.rb +59 -0
- data/spec/models/sms_forwarding_params_spec.rb +53 -0
- data/spec/models/sms_forwarding_spec.rb +53 -0
- data/spec/models/sms_full_spec.rb +83 -0
- data/spec/models/sort_call_logs_spec.rb +53 -0
- data/spec/models/sort_id_created_at_spec.rb +47 -0
- data/spec/models/sort_id_extension_name_spec.rb +53 -0
- data/spec/models/sort_id_name_phone_number_spec.rb +53 -0
- data/spec/models/sort_id_name_spec.rb +47 -0
- data/spec/models/sort_id_spec.rb +41 -0
- data/spec/models/sort_id_updated_at_spec.rb +47 -0
- data/spec/models/sort_list_available_numbers_spec.rb +53 -0
- data/spec/models/sort_list_phone_numbers_regions_spec.rb +77 -0
- data/spec/models/sort_name_number_spec.rb +47 -0
- data/spec/models/trunk_full_spec.rb +83 -0
- data/spec/models/trunk_summary_spec.rb +47 -0
- data/spec/models/voicemail_full_spec.rb +89 -0
- data/spec/models/voicemail_input_spec.rb +71 -0
- data/spec/models/voicemail_spec.rb +71 -0
- data/spec/spec_helper.rb +111 -0
- metadata +942 -0
data/docs/MenusApi.md
ADDED
@@ -0,0 +1,316 @@
|
|
1
|
+
# PhoneComClient::MenusApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.phone.com/v4*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_account_menu**](MenusApi.md#create_account_menu) | **POST** /accounts/{account_id}/menus | Create an individual menu.
|
8
|
+
[**delete_account_menu**](MenusApi.md#delete_account_menu) | **DELETE** /accounts/{account_id}/menus/{menu_id} | Delete an individual menu.
|
9
|
+
[**get_account_menu**](MenusApi.md#get_account_menu) | **GET** /accounts/{account_id}/menus/{menu_id} | Show details of an individual menu.
|
10
|
+
[**list_account_menus**](MenusApi.md#list_account_menus) | **GET** /accounts/{account_id}/menus | Get a list of menus for an account.
|
11
|
+
[**replace_account_menu**](MenusApi.md#replace_account_menu) | **PUT** /accounts/{account_id}/menus/{menu_id} | Replace an individual menu.
|
12
|
+
|
13
|
+
|
14
|
+
# **create_account_menu**
|
15
|
+
> MenuFull create_account_menu(account_id, , opts)
|
16
|
+
|
17
|
+
Create an individual menu.
|
18
|
+
|
19
|
+
Create an individual menu. See Account Menus for more info on the properties.
|
20
|
+
|
21
|
+
### Example
|
22
|
+
```ruby
|
23
|
+
# load the gem
|
24
|
+
require 'phone_com_client'
|
25
|
+
# setup authorization
|
26
|
+
PhoneComClient.configure do |config|
|
27
|
+
# Configure API key authorization: apiKey
|
28
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
29
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
30
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
31
|
+
end
|
32
|
+
|
33
|
+
api_instance = PhoneComClient::MenusApi.new
|
34
|
+
|
35
|
+
account_id = 56 # Integer | Account ID
|
36
|
+
|
37
|
+
opts = {
|
38
|
+
data: PhoneComClient::CreateMenuParams.new # CreateMenuParams | Menu data
|
39
|
+
}
|
40
|
+
|
41
|
+
begin
|
42
|
+
#Create an individual menu.
|
43
|
+
result = api_instance.create_account_menu(account_id, , opts)
|
44
|
+
p result
|
45
|
+
rescue PhoneComClient::ApiError => e
|
46
|
+
puts "Exception when calling MenusApi->create_account_menu: #{e}"
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
### Parameters
|
51
|
+
|
52
|
+
Name | Type | Description | Notes
|
53
|
+
------------- | ------------- | ------------- | -------------
|
54
|
+
**account_id** | **Integer**| Account ID |
|
55
|
+
**data** | [**CreateMenuParams**](CreateMenuParams.md)| Menu data | [optional]
|
56
|
+
|
57
|
+
### Return type
|
58
|
+
|
59
|
+
[**MenuFull**](MenuFull.md)
|
60
|
+
|
61
|
+
### Authorization
|
62
|
+
|
63
|
+
[apiKey](../README.md#apiKey)
|
64
|
+
|
65
|
+
### HTTP request headers
|
66
|
+
|
67
|
+
- **Content-Type**: application/json
|
68
|
+
- **Accept**: application/json
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
# **delete_account_menu**
|
73
|
+
> DeleteEntry delete_account_menu(account_id, menu_id)
|
74
|
+
|
75
|
+
Delete an individual menu.
|
76
|
+
|
77
|
+
Delete an individual menu. See Account Menus for more info on the properties.
|
78
|
+
|
79
|
+
### Example
|
80
|
+
```ruby
|
81
|
+
# load the gem
|
82
|
+
require 'phone_com_client'
|
83
|
+
# setup authorization
|
84
|
+
PhoneComClient.configure do |config|
|
85
|
+
# Configure API key authorization: apiKey
|
86
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
87
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
88
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
89
|
+
end
|
90
|
+
|
91
|
+
api_instance = PhoneComClient::MenusApi.new
|
92
|
+
|
93
|
+
account_id = 56 # Integer | Account ID
|
94
|
+
|
95
|
+
menu_id = 56 # Integer | Menu ID
|
96
|
+
|
97
|
+
|
98
|
+
begin
|
99
|
+
#Delete an individual menu.
|
100
|
+
result = api_instance.delete_account_menu(account_id, menu_id)
|
101
|
+
p result
|
102
|
+
rescue PhoneComClient::ApiError => e
|
103
|
+
puts "Exception when calling MenusApi->delete_account_menu: #{e}"
|
104
|
+
end
|
105
|
+
```
|
106
|
+
|
107
|
+
### Parameters
|
108
|
+
|
109
|
+
Name | Type | Description | Notes
|
110
|
+
------------- | ------------- | ------------- | -------------
|
111
|
+
**account_id** | **Integer**| Account ID |
|
112
|
+
**menu_id** | **Integer**| Menu ID |
|
113
|
+
|
114
|
+
### Return type
|
115
|
+
|
116
|
+
[**DeleteEntry**](DeleteEntry.md)
|
117
|
+
|
118
|
+
### Authorization
|
119
|
+
|
120
|
+
[apiKey](../README.md#apiKey)
|
121
|
+
|
122
|
+
### HTTP request headers
|
123
|
+
|
124
|
+
- **Content-Type**: application/json
|
125
|
+
- **Accept**: application/json
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
# **get_account_menu**
|
130
|
+
> MenuFull get_account_menu(account_id, menu_id)
|
131
|
+
|
132
|
+
Show details of an individual menu.
|
133
|
+
|
134
|
+
Show details of an individual menu. See Account Menus for more info on the properties.
|
135
|
+
|
136
|
+
### Example
|
137
|
+
```ruby
|
138
|
+
# load the gem
|
139
|
+
require 'phone_com_client'
|
140
|
+
# setup authorization
|
141
|
+
PhoneComClient.configure do |config|
|
142
|
+
# Configure API key authorization: apiKey
|
143
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
144
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
145
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
146
|
+
end
|
147
|
+
|
148
|
+
api_instance = PhoneComClient::MenusApi.new
|
149
|
+
|
150
|
+
account_id = 56 # Integer | Account ID
|
151
|
+
|
152
|
+
menu_id = 56 # Integer | Menu ID
|
153
|
+
|
154
|
+
|
155
|
+
begin
|
156
|
+
#Show details of an individual menu.
|
157
|
+
result = api_instance.get_account_menu(account_id, menu_id)
|
158
|
+
p result
|
159
|
+
rescue PhoneComClient::ApiError => e
|
160
|
+
puts "Exception when calling MenusApi->get_account_menu: #{e}"
|
161
|
+
end
|
162
|
+
```
|
163
|
+
|
164
|
+
### Parameters
|
165
|
+
|
166
|
+
Name | Type | Description | Notes
|
167
|
+
------------- | ------------- | ------------- | -------------
|
168
|
+
**account_id** | **Integer**| Account ID |
|
169
|
+
**menu_id** | **Integer**| Menu ID |
|
170
|
+
|
171
|
+
### Return type
|
172
|
+
|
173
|
+
[**MenuFull**](MenuFull.md)
|
174
|
+
|
175
|
+
### Authorization
|
176
|
+
|
177
|
+
[apiKey](../README.md#apiKey)
|
178
|
+
|
179
|
+
### HTTP request headers
|
180
|
+
|
181
|
+
- **Content-Type**: application/json
|
182
|
+
- **Accept**: application/json
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
# **list_account_menus**
|
187
|
+
> ListMenus list_account_menus(account_id, , opts)
|
188
|
+
|
189
|
+
Get a list of menus for an account.
|
190
|
+
|
191
|
+
Get a list of menus for an account. See Account Menus for more info on the properties.
|
192
|
+
|
193
|
+
### Example
|
194
|
+
```ruby
|
195
|
+
# load the gem
|
196
|
+
require 'phone_com_client'
|
197
|
+
# setup authorization
|
198
|
+
PhoneComClient.configure do |config|
|
199
|
+
# Configure API key authorization: apiKey
|
200
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
201
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
202
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
203
|
+
end
|
204
|
+
|
205
|
+
api_instance = PhoneComClient::MenusApi.new
|
206
|
+
|
207
|
+
account_id = 56 # Integer | Account ID
|
208
|
+
|
209
|
+
opts = {
|
210
|
+
filters_id: ['filters_id_example'], # Array<String> | ID filter
|
211
|
+
filters_name: ['filters_name_example'], # Array<String> | Name filter
|
212
|
+
sort_id: 'sort_id_example', # String | ID sorting
|
213
|
+
sort_name: 'sort_name_example', # String | Name sorting
|
214
|
+
limit: 56, # Integer | Max results
|
215
|
+
offset: 56, # Integer | Results to skip
|
216
|
+
fields: 'fields_example', # String | Field set
|
217
|
+
}
|
218
|
+
|
219
|
+
begin
|
220
|
+
#Get a list of menus for an account.
|
221
|
+
result = api_instance.list_account_menus(account_id, , opts)
|
222
|
+
p result
|
223
|
+
rescue PhoneComClient::ApiError => e
|
224
|
+
puts "Exception when calling MenusApi->list_account_menus: #{e}"
|
225
|
+
end
|
226
|
+
```
|
227
|
+
|
228
|
+
### Parameters
|
229
|
+
|
230
|
+
Name | Type | Description | Notes
|
231
|
+
------------- | ------------- | ------------- | -------------
|
232
|
+
**account_id** | **Integer**| Account ID |
|
233
|
+
**filters_id** | [**Array<String>**](String.md)| ID filter | [optional]
|
234
|
+
**filters_name** | [**Array<String>**](String.md)| Name filter | [optional]
|
235
|
+
**sort_id** | **String**| ID sorting | [optional]
|
236
|
+
**sort_name** | **String**| Name sorting | [optional]
|
237
|
+
**limit** | **Integer**| Max results | [optional]
|
238
|
+
**offset** | **Integer**| Results to skip | [optional]
|
239
|
+
**fields** | **String**| Field set | [optional]
|
240
|
+
|
241
|
+
### Return type
|
242
|
+
|
243
|
+
[**ListMenus**](ListMenus.md)
|
244
|
+
|
245
|
+
### Authorization
|
246
|
+
|
247
|
+
[apiKey](../README.md#apiKey)
|
248
|
+
|
249
|
+
### HTTP request headers
|
250
|
+
|
251
|
+
- **Content-Type**: application/json
|
252
|
+
- **Accept**: application/json
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
# **replace_account_menu**
|
257
|
+
> MenuFull replace_account_menu(account_id, menu_id, opts)
|
258
|
+
|
259
|
+
Replace an individual menu.
|
260
|
+
|
261
|
+
Replace an individual menu. See Account Menus for more info on the properties.
|
262
|
+
|
263
|
+
### Example
|
264
|
+
```ruby
|
265
|
+
# load the gem
|
266
|
+
require 'phone_com_client'
|
267
|
+
# setup authorization
|
268
|
+
PhoneComClient.configure do |config|
|
269
|
+
# Configure API key authorization: apiKey
|
270
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
271
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
272
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
273
|
+
end
|
274
|
+
|
275
|
+
api_instance = PhoneComClient::MenusApi.new
|
276
|
+
|
277
|
+
account_id = 56 # Integer | Account ID
|
278
|
+
|
279
|
+
menu_id = 56 # Integer | Menu ID
|
280
|
+
|
281
|
+
opts = {
|
282
|
+
data: PhoneComClient::ReplaceMenuParams.new # ReplaceMenuParams | Menu data
|
283
|
+
}
|
284
|
+
|
285
|
+
begin
|
286
|
+
#Replace an individual menu.
|
287
|
+
result = api_instance.replace_account_menu(account_id, menu_id, opts)
|
288
|
+
p result
|
289
|
+
rescue PhoneComClient::ApiError => e
|
290
|
+
puts "Exception when calling MenusApi->replace_account_menu: #{e}"
|
291
|
+
end
|
292
|
+
```
|
293
|
+
|
294
|
+
### Parameters
|
295
|
+
|
296
|
+
Name | Type | Description | Notes
|
297
|
+
------------- | ------------- | ------------- | -------------
|
298
|
+
**account_id** | **Integer**| Account ID |
|
299
|
+
**menu_id** | **Integer**| Menu ID |
|
300
|
+
**data** | [**ReplaceMenuParams**](ReplaceMenuParams.md)| Menu data | [optional]
|
301
|
+
|
302
|
+
### Return type
|
303
|
+
|
304
|
+
[**MenuFull**](MenuFull.md)
|
305
|
+
|
306
|
+
### Authorization
|
307
|
+
|
308
|
+
[apiKey](../README.md#apiKey)
|
309
|
+
|
310
|
+
### HTTP request headers
|
311
|
+
|
312
|
+
- **Content-Type**: application/json
|
313
|
+
- **Accept**: application/json
|
314
|
+
|
315
|
+
|
316
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# PhoneComClient::Notification
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**emails** | **Array<String>** | Array of email addresses | [optional]
|
7
|
+
**sms** | **String** | Phone number capable of receiving SMS messages | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,98 @@
|
|
1
|
+
# PhoneComClient::NumberRegionsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.phone.com/v4*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**list_available_phone_number_regions**](NumberRegionsApi.md#list_available_phone_number_regions) | **GET** /phone-numbers/available/regions |
|
8
|
+
|
9
|
+
|
10
|
+
# **list_available_phone_number_regions**
|
11
|
+
> ListPhoneNumbersRegions list_available_phone_number_regions(opts)
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
This service lists the quantities of available phone numbers by region.
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'phone_com_client'
|
21
|
+
# setup authorization
|
22
|
+
PhoneComClient.configure do |config|
|
23
|
+
# Configure API key authorization: apiKey
|
24
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
25
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
26
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
27
|
+
end
|
28
|
+
|
29
|
+
api_instance = PhoneComClient::NumberRegionsApi.new
|
30
|
+
|
31
|
+
opts = {
|
32
|
+
filters_country_code: ['filters_country_code_example'], # Array<String> | Country Code filter
|
33
|
+
filters_npa: ['filters_npa_example'], # Array<String> | Area Code filter (North America only)
|
34
|
+
filters_nxx: ['filters_nxx_example'], # Array<String> | 2nd set of 3 digits filter (North America only)
|
35
|
+
filters_is_toll_free: ['filters_is_toll_free_example'], # Array<String> | Toll-free status filter
|
36
|
+
filters_city: ['filters_city_example'], # Array<String> | City filter
|
37
|
+
filters_province_postal_code: ['filters_province_postal_code_example'], # Array<String> | State or Province filter
|
38
|
+
filters_country_postal_code: ['filters_country_postal_code_example'], # Array<String> | Country filter
|
39
|
+
sort_country_code: 'sort_country_code_example', # String | International calling code sorting
|
40
|
+
sort_npa: 'sort_npa_example', # String | Area Code sorting (North America only)
|
41
|
+
sort_nxx: 'sort_nxx_example', # String | 2nd set of 3 digits sorting (North America)
|
42
|
+
sort_is_toll_free: 'sort_is_toll_free_example', # String | Toll Free status sorting
|
43
|
+
sort_city: 'sort_city_example', # String | City sorting
|
44
|
+
sort_province_postal_code: 'sort_province_postal_code_example', # String | State or Province sorting
|
45
|
+
sort_country_postal_code: 'sort_country_postal_code_example', # String | Country sorting
|
46
|
+
limit: 56, # Integer | Max results
|
47
|
+
offset: 56, # Integer | Results to skip
|
48
|
+
fields: 'fields_example', # String | Field set
|
49
|
+
group_by: ['group_by_example'] # Array<String> | Fields to group by (supports the same set of fields as the filters and sorting)
|
50
|
+
}
|
51
|
+
|
52
|
+
begin
|
53
|
+
#
|
54
|
+
result = api_instance.list_available_phone_number_regions(opts)
|
55
|
+
p result
|
56
|
+
rescue PhoneComClient::ApiError => e
|
57
|
+
puts "Exception when calling NumberRegionsApi->list_available_phone_number_regions: #{e}"
|
58
|
+
end
|
59
|
+
```
|
60
|
+
|
61
|
+
### Parameters
|
62
|
+
|
63
|
+
Name | Type | Description | Notes
|
64
|
+
------------- | ------------- | ------------- | -------------
|
65
|
+
**filters_country_code** | [**Array<String>**](String.md)| Country Code filter | [optional]
|
66
|
+
**filters_npa** | [**Array<String>**](String.md)| Area Code filter (North America only) | [optional]
|
67
|
+
**filters_nxx** | [**Array<String>**](String.md)| 2nd set of 3 digits filter (North America only) | [optional]
|
68
|
+
**filters_is_toll_free** | [**Array<String>**](String.md)| Toll-free status filter | [optional]
|
69
|
+
**filters_city** | [**Array<String>**](String.md)| City filter | [optional]
|
70
|
+
**filters_province_postal_code** | [**Array<String>**](String.md)| State or Province filter | [optional]
|
71
|
+
**filters_country_postal_code** | [**Array<String>**](String.md)| Country filter | [optional]
|
72
|
+
**sort_country_code** | **String**| International calling code sorting | [optional]
|
73
|
+
**sort_npa** | **String**| Area Code sorting (North America only) | [optional]
|
74
|
+
**sort_nxx** | **String**| 2nd set of 3 digits sorting (North America) | [optional]
|
75
|
+
**sort_is_toll_free** | **String**| Toll Free status sorting | [optional]
|
76
|
+
**sort_city** | **String**| City sorting | [optional]
|
77
|
+
**sort_province_postal_code** | **String**| State or Province sorting | [optional]
|
78
|
+
**sort_country_postal_code** | **String**| Country sorting | [optional]
|
79
|
+
**limit** | **Integer**| Max results | [optional]
|
80
|
+
**offset** | **Integer**| Results to skip | [optional]
|
81
|
+
**fields** | **String**| Field set | [optional]
|
82
|
+
**group_by** | [**Array<String>**](String.md)| Fields to group by (supports the same set of fields as the filters and sorting) | [optional]
|
83
|
+
|
84
|
+
### Return type
|
85
|
+
|
86
|
+
[**ListPhoneNumbersRegions**](ListPhoneNumbersRegions.md)
|
87
|
+
|
88
|
+
### Authorization
|
89
|
+
|
90
|
+
[apiKey](../README.md#apiKey)
|
91
|
+
|
92
|
+
### HTTP request headers
|
93
|
+
|
94
|
+
- **Content-Type**: application/json
|
95
|
+
- **Accept**: application/json
|
96
|
+
|
97
|
+
|
98
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# PhoneComClient::OauthAccessToken
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**access_token** | **String** | | [optional]
|
7
|
+
**token_type** | **String** | | [optional]
|
8
|
+
**scope** | **String** | | [optional]
|
9
|
+
**refresh_token** | **String** | | [optional]
|
10
|
+
**expires_in** | **Integer** | | [optional]
|
11
|
+
|
12
|
+
|
data/docs/OauthApi.md
ADDED
@@ -0,0 +1,176 @@
|
|
1
|
+
# PhoneComClient::OauthApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.phone.com/v4*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_oauth_access_token**](OauthApi.md#create_oauth_access_token) | **POST** /oauth/access-token | To create an access token via the /oauth/access-token API, an API user may choose any one of the grant types it supports: Authorization Code Grant, Client Credential Grant, Password Credential Grant or Refresh Token Grant.
|
8
|
+
[**create_oauth_authorization**](OauthApi.md#create_oauth_authorization) | **GET** /oauth/authorization | Create Authorization Code or Access Token.
|
9
|
+
[**get_oauth_access_token**](OauthApi.md#get_oauth_access_token) | **GET** /oauth/access-token | Retrieve details of an access token, such as scope, expiration and extension ID.
|
10
|
+
|
11
|
+
|
12
|
+
# **create_oauth_access_token**
|
13
|
+
> OauthAccessToken create_oauth_access_token(opts)
|
14
|
+
|
15
|
+
To create an access token via the /oauth/access-token API, an API user may choose any one of the grant types it supports: Authorization Code Grant, Client Credential Grant, Password Credential Grant or Refresh Token Grant.
|
16
|
+
|
17
|
+
To create an access token via the /oauth/access-token API, an API user may choose any one of the grant types it supports: Authorization Code Grant, Client Credential Grant, Password Credential Grant or Refresh Token Grant. For Authorization Code Grant, the input parameter 'code' is generated via the Create Authorization API. NOTE: The Create Access Token API now accepts requests in query string format as well as JSON body format. See OAuth for more details on how to obtain client id and client secret to create an access token at real time.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
```ruby
|
21
|
+
# load the gem
|
22
|
+
require 'phone_com_client'
|
23
|
+
# setup authorization
|
24
|
+
PhoneComClient.configure do |config|
|
25
|
+
# Configure API key authorization: apiKey
|
26
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
27
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
28
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
29
|
+
end
|
30
|
+
|
31
|
+
api_instance = PhoneComClient::OauthApi.new
|
32
|
+
|
33
|
+
opts = {
|
34
|
+
data: PhoneComClient::CreateOauthParams.new # CreateOauthParams | Oauth data
|
35
|
+
}
|
36
|
+
|
37
|
+
begin
|
38
|
+
#To create an access token via the /oauth/access-token API, an API user may choose any one of the grant types it supports: Authorization Code Grant, Client Credential Grant, Password Credential Grant or Refresh Token Grant.
|
39
|
+
result = api_instance.create_oauth_access_token(opts)
|
40
|
+
p result
|
41
|
+
rescue PhoneComClient::ApiError => e
|
42
|
+
puts "Exception when calling OauthApi->create_oauth_access_token: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
### Parameters
|
47
|
+
|
48
|
+
Name | Type | Description | Notes
|
49
|
+
------------- | ------------- | ------------- | -------------
|
50
|
+
**data** | [**CreateOauthParams**](CreateOauthParams.md)| Oauth data | [optional]
|
51
|
+
|
52
|
+
### Return type
|
53
|
+
|
54
|
+
[**OauthAccessToken**](OauthAccessToken.md)
|
55
|
+
|
56
|
+
### Authorization
|
57
|
+
|
58
|
+
[apiKey](../README.md#apiKey)
|
59
|
+
|
60
|
+
### HTTP request headers
|
61
|
+
|
62
|
+
- **Content-Type**: application/json
|
63
|
+
- **Accept**: application/json
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
# **create_oauth_authorization**
|
68
|
+
> create_oauth_authorization(client_id, response_type, scope, redirect_uri)
|
69
|
+
|
70
|
+
Create Authorization Code or Access Token.
|
71
|
+
|
72
|
+
Create Authorization Code or Access Token. The /oauth/authorization API supports Authorization Grant and Implicit Grant. In Authorization Grant, this API returns a code (response_type=code) for clients implemented in a browser using a scripting language such as JavaScript. Users may then use the code via the Create Access Token API to create an access token. The Implicit Grant is a simplified authorization code flow. In the implicit flow, instead of issuing the client an authorization code, the client is issued an access token (response_type=token) directly. See OAuth for more details on how to obtain client id and client secret to create authorization code access token at real time.
|
73
|
+
|
74
|
+
### Example
|
75
|
+
```ruby
|
76
|
+
# load the gem
|
77
|
+
require 'phone_com_client'
|
78
|
+
# setup authorization
|
79
|
+
PhoneComClient.configure do |config|
|
80
|
+
# Configure API key authorization: apiKey
|
81
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
82
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
83
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
84
|
+
end
|
85
|
+
|
86
|
+
api_instance = PhoneComClient::OauthApi.new
|
87
|
+
|
88
|
+
client_id = 'client_id_example' # String | Client ID
|
89
|
+
|
90
|
+
response_type = 'response_type_example' # String | 'token' for Implicit Grant; 'code' for Authorization Code Grant
|
91
|
+
|
92
|
+
scope = 'scope_example' # String | account-owner, extension-user and/or methods:ALL, separated by space (%20)
|
93
|
+
|
94
|
+
redirect_uri = 'redirect_uri_example' # String | The URL where the response data of this API is redirected to
|
95
|
+
|
96
|
+
|
97
|
+
begin
|
98
|
+
#Create Authorization Code or Access Token.
|
99
|
+
api_instance.create_oauth_authorization(client_id, response_type, scope, redirect_uri)
|
100
|
+
rescue PhoneComClient::ApiError => e
|
101
|
+
puts "Exception when calling OauthApi->create_oauth_authorization: #{e}"
|
102
|
+
end
|
103
|
+
```
|
104
|
+
|
105
|
+
### Parameters
|
106
|
+
|
107
|
+
Name | Type | Description | Notes
|
108
|
+
------------- | ------------- | ------------- | -------------
|
109
|
+
**client_id** | **String**| Client ID |
|
110
|
+
**response_type** | **String**| 'token' for Implicit Grant; 'code' for Authorization Code Grant |
|
111
|
+
**scope** | **String**| account-owner, extension-user and/or methods:ALL, separated by space (%20) |
|
112
|
+
**redirect_uri** | **String**| The URL where the response data of this API is redirected to |
|
113
|
+
|
114
|
+
### Return type
|
115
|
+
|
116
|
+
nil (empty response body)
|
117
|
+
|
118
|
+
### Authorization
|
119
|
+
|
120
|
+
[apiKey](../README.md#apiKey)
|
121
|
+
|
122
|
+
### HTTP request headers
|
123
|
+
|
124
|
+
- **Content-Type**: application/json
|
125
|
+
- **Accept**: application/json
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
# **get_oauth_access_token**
|
130
|
+
> GetOauthAccessToken get_oauth_access_token
|
131
|
+
|
132
|
+
Retrieve details of an access token, such as scope, expiration and extension ID.
|
133
|
+
|
134
|
+
Retrieve details of an access token, such as scope, expiration and extension ID. Voip ID will be returned as well if scope contains account-owner scope.
|
135
|
+
|
136
|
+
### Example
|
137
|
+
```ruby
|
138
|
+
# load the gem
|
139
|
+
require 'phone_com_client'
|
140
|
+
# setup authorization
|
141
|
+
PhoneComClient.configure do |config|
|
142
|
+
# Configure API key authorization: apiKey
|
143
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
144
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
145
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
146
|
+
end
|
147
|
+
|
148
|
+
api_instance = PhoneComClient::OauthApi.new
|
149
|
+
|
150
|
+
begin
|
151
|
+
#Retrieve details of an access token, such as scope, expiration and extension ID.
|
152
|
+
result = api_instance.get_oauth_access_token
|
153
|
+
p result
|
154
|
+
rescue PhoneComClient::ApiError => e
|
155
|
+
puts "Exception when calling OauthApi->get_oauth_access_token: #{e}"
|
156
|
+
end
|
157
|
+
```
|
158
|
+
|
159
|
+
### Parameters
|
160
|
+
This endpoint does not need any parameter.
|
161
|
+
|
162
|
+
### Return type
|
163
|
+
|
164
|
+
[**GetOauthAccessToken**](GetOauthAccessToken.md)
|
165
|
+
|
166
|
+
### Authorization
|
167
|
+
|
168
|
+
[apiKey](../README.md#apiKey)
|
169
|
+
|
170
|
+
### HTTP request headers
|
171
|
+
|
172
|
+
- **Content-Type**: application/json
|
173
|
+
- **Accept**: application/json
|
174
|
+
|
175
|
+
|
176
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# PhoneComClient::OauthClientRedirectUriFull
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | OAuth Client Redirect URI ID | [optional]
|
7
|
+
**client** | [**OauthClientFull**](OauthClientFull.md) | Client details | [optional]
|
8
|
+
**redirect_uri** | [**RedirectUriFull**](RedirectUriFull.md) | Redirect URI details | [optional]
|
9
|
+
|
10
|
+
|