Update dependency com.nexmo:client to v4 (main) #167
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.1
By merging this PR, the issue #158 will be automatically resolved and closed:
Release Notes
Nexmo/nexmo-java (com.nexmo:client)
v4.3.1
Compare Source
Fixed
v4.3.0
Compare Source
Added
NotifyAction
for use inNCCO
.Fixed
v4.2.1
Compare Source
Fixed
messages
.v4.2.0
Compare Source
Added
StreamAction
,AdvancedInsightRequest
,StandardInsightRequest
, andBasicInsightRequest
.Fixed
AbstractMethod
will force UTF-8 charset for requests usingStringEntity
.v4.1.0
Compare Source
Added
builder
methods toAction
classes 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();
.builder
methods toNexmoClient
to reduce some of the verbosity around instantiating the client.ncco
property to theCall
object for use in theVoiceClient.createCall
method. You can now send anNcco
directly to the API instead of defining ananswer_url
.v4.0.1
Compare Source
Added
channels
property toRecordAction
as it was unintentionally removed during the version 4 release.v4.0.0
Compare Source
Added
Ncco
class to wrapCollection<Action>
and handle the serialization of NCCO json throughtoJson
.Builder
classes:ConnectAction.Builder
ConversationAction.Builder
InputAction.Builder
RecordAction.Builder
StreamAction.Builder
TalkAction.Builder
PhoneEndpoint
tocom.nexmo.voice.ncco
package for use withConnectAction
.WebSocketEndpoint
tocom.nexmo.voice.ncco
package for use withConnectAction
.SipEndpoint
tocom.nexmo.voice.ncco
package for use withConnectAction
.EventMethod
enumeration to replace the usage of strings.EventType
enumeration and the ability to specify theeventType
property ofConnectAction
.NexmoClient.Builder
to allow for fluent creation ofNexmoClient
.getBasicNumberInsight
,getStandardNumberInsight
, andgetAdvancedNumberInsight
toInsightClient
which takes a respective*InsightRequest
.CallerIdentity
data object to be used in number insight.Builder
toCallsFilter
class to make filtering search results more intuative.Changed
Ncco
classes toAction
classes:Ncco
interface toAction
ConnectNcco
toConnectAction
ConversationNcco
toConversationAction
InputNcco
toInputAction
RecordNcco
toRecordAction
StreamNcco
toStreamAction
TalkNcco
toTalkAction
Action
classes now must be constructed through the providedBuilder
class.Action
classes are now immutable.eventUrl
property ofConnectAction
,ConversationAction
,InputAction
, andRecordAction
is now aCollection<String>
instead of an array.eventMethod
property ofConnectAction
,ConversationAction
,InputAction
, andRecordAction
is now anEventMethod
enum instead of a String.ConnectWebSocketNcco
as it is built intoConnectAction
.VerifyClient
will now return*Response
instead of*Result
objects.com.nexmo.client.voice.endpoints
to be part of thecom.nexmo.client.voice
package.*Endpoint
and*Method
classes package scoped. Users should always go through the appropriateClient
classes.AbstractMethod
to the root package.setUri
methods from the variousVoiceClient
endpoints. This should be done throughHttpConfig
.BasicInsightRequest
,StandardInsightRequest
, andAdvancedInsightRequest
to 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
, andAdvancedInsightEndpoint
to a more restrictive scope and moved them to thecom.nexmo.client.insight
package.status
property ofBasicInsightResponse
to anInsightStatus
enumeration.SendMessageEndpoint
from XML to JSON. It now returns aSmsSubmissionResponse
instead of an array result.v3.10.0
Compare Source
Added
RecordNcco
Changed
v3.9.0
Compare Source
Added
VoiceName
enum.HttpWrapper
to allow for customization.ConnectWebSocketNcco
to handle connecting to WebSocket endpoints similar toConnectNcco
to maintain backwards compatibility.getDisplayName
method toVoiceName
to represent the name that is used in serialization.Changed
TalkNcco
to useVoiceName
object instead ofString
HttpWrapper
now uses system properties by default.v3.8.0
Compare Source
Added
com.nexmo.client.incoming.MessageEvent
to assist with the deserialization of the JSON payload used for incoming messages.com.nexmo.client.incoming.CallEvent
to assist with the deserialization of the JSON payload used for call events.com.nexmo.client.incoming.InputEvent
to assist with the deserialization of the JSON payload used for input events.com.nexmo.client.incoming.RecordEvent
to assist with the deserialization of the JSON payload used for record events.AccountClient
in the form of the following methods:listSecrets
for listing all secrets.getSecret
for getting information on a specific secret.revokeSecret
for revoking a secret.createSecret
for creating a new secret.Changed
enum
classes that are used to deserialize JSON have been updated to return anUNKNOWN
value instead of throwing anIllegalArgumentException
when the value cannot be deserialized. Theseenum
s are:RecordingFormat
MachineDetection
ModifyCallAction
CallDirection
CallStatus
RoamingDetails.RoamingStatus
AdvancedInsightResponse.PortedStatus
AdvancedInsightResponse.Validity
AdvancedInsightResponse.Reachability
Fixed
StreamNcco
'sstreamUrl
to serialize into an array for use in the Voice API.v3.7.0
Compare Source
Added
RedactClient
and the ability to interact with the Nexmo Redact API.Changed
TalkNcco
now usesVoiceName
internally instead ofString
for thevoiceName
property.v3.6.0
Compare Source
Added
getSmsPrice
toAccountClient
for getting SMS pricing for a country.getVoicePrice
toAccountClient
for getting voice pricing for a country.getPrefixPrice
toAccountClient
for getting SMS and voice pricing for a prefix.topUp
toAccountClient
for topping up your account which has auto-reload enabled.getSms
toSmsClient
for searching for a single message by id.ConversionClient
and the ability to interact with the Nexmo Conversion API.v3.5.0
Compare Source
Changed
Updated
VerifyClient
to use the JSON endpoints instead of XML.Updated endpoints which are used by
VerifyClient
from public to package scope in order to encourage usage throughVerifyClient
.Deprecated XML version of the following endpoints:
VerifyEndpoint
CheckEndpoint
SearchEndpoint
Deprecated the following XML results:
VerifyResult
should useVerifyResponse
CheckResult
should useCheckResponse
SearchResult
should useSearchVerifyResponse
Deprecated the following XML methods:
VerifyCheckMethod
Added
VerifyStatus
enumeration to use for statuses coming back from the verify endpoint.VerifyResponse
,CheckResponse
, andSearchVerifyResponse
for JSON responses to match other JSON using endpoints.VerifyMethod
,CheckMethod
, andSearchMethod
for better segregation between endpoint and method classes.split
attribute to theRecordNcco
object.Fixed
ConversationNcco
'smusicOnHoldUrl
to serialize into an array for use in the Voice API.v3.4.1
Compare Source
Changed
v3.4.0
Compare Source
Changed
null
(because the API now returns 204 No Content)from
parameter's length on theMessage
class has been removed.Added
level
attribute to theTalkNcco
object.