Package: bandwidth-sdk
bandwidth-sdkBandwidth's Communication APIsThis Python package is automatically generated by theOpenAPI Generatorproject:API version: 1.0.0Package version: 15.0.0Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visithttps://dev.bandwidth.comRequirements.Python 3.7+Installation & Usagepip installIf the python package is hosted on a repository, you can install directly using:pipinstallgit+https://github.com/GIT_USER_ID/GIT_REPO_ID.git(you may need to runpipwith root permission:sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)Then import the package:importbandwidthSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Then import the package:importbandwidthTestsExecutepytestto run the tests.Getting StartedPlease follow theinstallation procedureand then run the following:importtimeimportbandwidthfrombandwidth.restimportApiExceptionfrompprintimportpprint# Defining the host is optional and defaults to http://localhost# See configuration.py for a list of all supported configuration parameters.configuration=bandwidth.Configuration(host="http://localhost")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure HTTP basic authorization: Basicconfiguration=bandwidth.Configuration(username=os.environ["USERNAME"],password=os.environ["PASSWORD"])# Enter a context with an instance of the API clientwithbandwidth.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=bandwidth.CallsApi(api_client)account_id='9900000'# str | Your Bandwidth Account ID.create_call=bandwidth.CreateCall()# CreateCall | JSON object containing information to create an outbound calltry:# Create Callapi_response=api_instance.create_call(account_id,create_call)print("The response of CallsApi->create_call:\n")pprint(api_response)exceptApiExceptionase:print("Exception when calling CallsApi->create_call:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttp://localhostClassMethodHTTP requestDescriptionCallsApicreate_callPOST/accounts/{accountId}/callsCreate CallCallsApiget_call_stateGET/accounts/{accountId}/calls/{callId}Get Call State InformationCallsApiupdate_callPOST/accounts/{accountId}/calls/{callId}Update CallCallsApiupdate_call_bxmlPUT/accounts/{accountId}/calls/{callId}/bxmlUpdate Call BXMLConferencesApidownload_conference_recordingGET/accounts/{accountId}/conferences/{conferenceId}/recordings/{recordingId}/mediaDownload Conference RecordingConferencesApiget_conferenceGET/accounts/{accountId}/conferences/{conferenceId}Get Conference InformationConferencesApiget_conference_memberGET/accounts/{accountId}/conferences/{conferenceId}/members/{memberId}Get Conference MemberConferencesApiget_conference_recordingGET/accounts/{accountId}/conferences/{conferenceId}/recordings/{recordingId}Get Conference Recording InformationConferencesApilist_conference_recordingsGET/accounts/{accountId}/conferences/{conferenceId}/recordingsGet Conference RecordingsConferencesApilist_conferencesGET/accounts/{accountId}/conferencesGet ConferencesConferencesApiupdate_conferencePOST/accounts/{accountId}/conferences/{conferenceId}Update ConferenceConferencesApiupdate_conference_bxmlPUT/accounts/{accountId}/conferences/{conferenceId}/bxmlUpdate Conference BXMLConferencesApiupdate_conference_memberPUT/accounts/{accountId}/conferences/{conferenceId}/members/{memberId}Update Conference MemberMFAApigenerate_messaging_codePOST/accounts/{accountId}/code/messagingMessaging Authentication CodeMFAApigenerate_voice_codePOST/accounts/{accountId}/code/voiceVoice Authentication CodeMFAApiverify_codePOST/accounts/{accountId}/code/verifyVerify Authentication CodeMediaApidelete_mediaDELETE/users/{accountId}/media/{mediaId}Delete MediaMediaApiget_mediaGET/users/{accountId}/media/{mediaId}Get MediaMediaApilist_mediaGET/users/{accountId}/mediaList MediaMediaApiupload_mediaPUT/users/{accountId}/media/{mediaId}Upload MediaMessagesApicreate_messagePOST/users/{accountId}/messagesCreate MessageMessagesApilist_messagesGET/users/{accountId}/messagesList MessagesPhoneNumberLookupApicreate_lookupPOST/accounts/{accountId}/tnlookupCreate LookupPhoneNumberLookupApiget_lookup_statusGET/accounts/{accountId}/tnlookup/{requestId}Get Lookup Request StatusRecordingsApidelete_call_transcriptionDELETE/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcriptionDelete TranscriptionRecordingsApidelete_recordingDELETE/accounts/{accountId}/calls/{callId}/recordings/{recordingId}Delete RecordingRecordingsApidelete_recording_mediaDELETE/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/mediaDelete Recording MediaRecordingsApidownload_call_recordingGET/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/mediaDownload RecordingRecordingsApiget_call_recordingGET/accounts/{accountId}/calls/{callId}/recordings/{recordingId}Get Call RecordingRecordingsApiget_call_transcriptionGET/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcriptionGet TranscriptionRecordingsApilist_account_call_recordingsGET/accounts/{accountId}/recordingsGet Call RecordingsRecordingsApilist_call_recordingsGET/accounts/{accountId}/calls/{callId}/recordingsList Call RecordingsRecordingsApitranscribe_call_recordingPOST/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcriptionCreate Transcription RequestRecordingsApiupdate_call_recording_statePUT/accounts/{accountId}/calls/{callId}/recordingUpdate RecordingStatisticsApiget_statisticsGET/accounts/{accountId}/statisticsGet Account StatisticsDocumentation For ModelsAccountStatisticsAnswerCallbackBridgeCompleteCallbackBridgeTargetCompleteCallbackCallDirectionEnumCallRecordingMetadataCallStateCallStateEnumCallbackMethodEnumCodeRequestConferenceConferenceCompletedCallbackConferenceCreatedCallbackConferenceMemberConferenceMemberExitCallbackConferenceMemberJoinCallbackConferenceRecordingAvailableCallbackConferenceRecordingMetadataConferenceRedirectCallbackConferenceStateEnumCreateCallCreateCallResponseCreateLookupResponseCreateMessageRequestErrorDeferredResultDisconnectCallbackDiversionDtmfCallbackFieldErrorFileFormatEnumGatherCallbackInboundMessageCallbackInboundMessageCallbackMessageInitiateCallbackListMessageDirectionEnumListMessageItemLookupRequestLookupResultLookupStatusLookupStatusEnumMachineDetectionCompleteCallbackMachineDetectionConfigurationMachineDetectionModeEnumMachineDetectionResultMediaMessageMessageDeliveredCallbackMessageDeliveredCallbackMessageMessageDirectionEnumMessageFailedCallbackMessageFailedCallbackMessageMessageRequestMessageSendingCallbackMessageSendingCallbackMessageMessageStatusEnumMessageTypeEnumMessagesListMessagingCodeResponseMessagingRequestErrorMfaForbiddenRequestErrorMfaRequestErrorMfaUnauthorizedRequestErrorPageInfoPriorityEnumRecordingAvailableCallbackRecordingCompleteCallbackRecordingStateEnumRedirectCallbackRedirectMethodEnumStirShakenTagTnLookupRequestErrorTranscribeRecordingTranscriptionTranscriptionAvailableCallbackTranscriptionListTranscriptionMetadataTransferAnswerCallbackTransferCompleteCallbackTransferDisconnectCallbackUpdateCallUpdateCallRecordingUpdateConferenceUpdateConferenceMemberVerifyCodeRequestVerifyCodeResponseVoiceApiErrorVoiceCodeResponseDocumentation For AuthorizationAuthentication schemes defined for the API:BasicType: HTTP basic authenticationAuthorletstalk@bandwidth.com