Update dependency com.nexmo:client to v4 (main)#246
Open
mend-for-github-com[bot] wants to merge 1 commit into
Open
Update dependency com.nexmo:client to v4 (main)#246mend-for-github-com[bot] wants to merge 1 commit into
mend-for-github-com[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.3.0→4.3.1By merging this PR, the issue #158 will be automatically resolved and closed:
Release Notes
Nexmo/nexmo-java (com.nexmo:client)
v4.3.1Compare Source
Fixed
v4.3.0Compare Source
Added
NotifyActionfor use inNCCO.Fixed
v4.2.1Compare Source
Fixed
messages.v4.2.0Compare Source
Added
StreamAction,AdvancedInsightRequest,StandardInsightRequest, andBasicInsightRequest.Fixed
AbstractMethodwill force UTF-8 charset for requests usingStringEntity.v4.1.0Compare Source
Added
buildermethods toActionclasses to reduce some of the verbosity around using them. You can now doTalkAction action = TalkAction.builder("Hello World!").build();instead of justTalkAction action = new TalkAction.Builder("Hello World).build();.buildermethods toNexmoClientto reduce some of the verbosity around instantiating the client.nccoproperty to theCallobject for use in theVoiceClient.createCallmethod. You can now send anNccodirectly to the API instead of defining ananswer_url.v4.0.1Compare Source
Added
channelsproperty toRecordActionas it was unintentionally removed during the version 4 release.v4.0.0Compare Source
Added
Nccoclass to wrapCollection<Action>and handle the serialization of NCCO json throughtoJson.Builderclasses:ConnectAction.BuilderConversationAction.BuilderInputAction.BuilderRecordAction.BuilderStreamAction.BuilderTalkAction.BuilderPhoneEndpointtocom.nexmo.voice.nccopackage for use withConnectAction.WebSocketEndpointtocom.nexmo.voice.nccopackage for use withConnectAction.SipEndpointtocom.nexmo.voice.nccopackage for use withConnectAction.EventMethodenumeration to replace the usage of strings.EventTypeenumeration and the ability to specify theeventTypeproperty ofConnectAction.NexmoClient.Builderto allow for fluent creation ofNexmoClient.getBasicNumberInsight,getStandardNumberInsight, andgetAdvancedNumberInsighttoInsightClientwhich takes a respective*InsightRequest.CallerIdentitydata object to be used in number insight.BuildertoCallsFilterclass to make filtering search results more intuative.Changed
Nccoclasses toActionclasses:Nccointerface toActionConnectNccotoConnectActionConversationNccotoConversationActionInputNccotoInputActionRecordNccotoRecordActionStreamNccotoStreamActionTalkNccotoTalkActionActionclasses now must be constructed through the providedBuilderclass.Actionclasses are now immutable.eventUrlproperty ofConnectAction,ConversationAction,InputAction, andRecordActionis now aCollection<String>instead of an array.eventMethodproperty ofConnectAction,ConversationAction,InputAction, andRecordActionis now anEventMethodenum instead of a String.ConnectWebSocketNccoas it is built intoConnectAction.VerifyClientwill now return*Responseinstead of*Resultobjects.com.nexmo.client.voice.endpointsto be part of thecom.nexmo.client.voicepackage.*Endpointand*Methodclasses package scoped. Users should always go through the appropriateClientclasses.AbstractMethodto the root package.setUrimethods from the variousVoiceClientendpoints. This should be done throughHttpConfig.BasicInsightRequest,StandardInsightRequest, andAdvancedInsightRequestto use builders as constructortelescoping is clunky. Added some static factory methods to these classes to allow shortcutting through the builder for "simple" requests.
BasicInsightEndpoint,StandardInsightEndpoint, andAdvancedInsightEndpointto a more restrictive scope and moved them to thecom.nexmo.client.insightpackage.statusproperty ofBasicInsightResponseto anInsightStatusenumeration.SendMessageEndpointfrom XML to JSON. It now returns aSmsSubmissionResponseinstead of an array result.v3.10.0Compare Source
Added
RecordNccoChanged
v3.9.0Compare Source
Added
VoiceNameenum.HttpWrapperto allow for customization.ConnectWebSocketNccoto handle connecting to WebSocket endpoints similar toConnectNccoto maintain backwards compatibility.getDisplayNamemethod toVoiceNameto represent the name that is used in serialization.Changed
TalkNccoto useVoiceNameobject instead ofStringHttpWrappernow uses system properties by default.v3.8.0Compare Source
Added
com.nexmo.client.incoming.MessageEventto assist with the deserialization of the JSON payload used for incoming messages.com.nexmo.client.incoming.CallEventto assist with the deserialization of the JSON payload used for call events.com.nexmo.client.incoming.InputEventto assist with the deserialization of the JSON payload used for input events.com.nexmo.client.incoming.RecordEventto assist with the deserialization of the JSON payload used for record events.AccountClientin the form of the following methods:listSecretsfor listing all secrets.getSecretfor getting information on a specific secret.revokeSecretfor revoking a secret.createSecretfor creating a new secret.Changed
enumclasses that are used to deserialize JSON have been updated to return anUNKNOWNvalue instead of throwing anIllegalArgumentExceptionwhen the value cannot be deserialized. Theseenums are:RecordingFormatMachineDetectionModifyCallActionCallDirectionCallStatusRoamingDetails.RoamingStatusAdvancedInsightResponse.PortedStatusAdvancedInsightResponse.ValidityAdvancedInsightResponse.ReachabilityFixed
StreamNcco'sstreamUrlto serialize into an array for use in the Voice API.v3.7.0Compare Source
Added
RedactClientand the ability to interact with the Nexmo Redact API.Changed
TalkNcconow usesVoiceNameinternally instead ofStringfor thevoiceNameproperty.v3.6.0Compare Source
Added
getSmsPricetoAccountClientfor getting SMS pricing for a country.getVoicePricetoAccountClientfor getting voice pricing for a country.getPrefixPricetoAccountClientfor getting SMS and voice pricing for a prefix.topUptoAccountClientfor topping up your account which has auto-reload enabled.getSmstoSmsClientfor searching for a single message by id.ConversionClientand the ability to interact with the Nexmo Conversion API.v3.5.0Compare Source
Changed
Updated
VerifyClientto use the JSON endpoints instead of XML.Updated endpoints which are used by
VerifyClientfrom public to package scope in order to encourage usage throughVerifyClient.Deprecated XML version of the following endpoints:
VerifyEndpointCheckEndpointSearchEndpointDeprecated the following XML results:
VerifyResultshould useVerifyResponseCheckResultshould useCheckResponseSearchResultshould useSearchVerifyResponseDeprecated the following XML methods:
VerifyCheckMethodAdded
VerifyStatusenumeration to use for statuses coming back from the verify endpoint.VerifyResponse,CheckResponse, andSearchVerifyResponsefor JSON responses to match other JSON using endpoints.VerifyMethod,CheckMethod, andSearchMethodfor better segregation between endpoint and method classes.splitattribute to theRecordNccoobject.Fixed
ConversationNcco'smusicOnHoldUrlto serialize into an array for use in the Voice API.v3.4.1Compare Source
Changed
v3.4.0Compare Source
Changed
null(because the API now returns 204 No Content)fromparameter's length on theMessageclass has been removed.Added
levelattribute to theTalkNccoobject.