Skip to content

Commit

Permalink
refactor: DynamicEndpoint for Video API (#503)
Browse files Browse the repository at this point in the history
* refactor: DynamicEndpoint for Video API

* Remove endpoint classes

* Improve coverage

* Fix Broadcast layout HTTP method

* Link to OpenTok guide in package-info

* Update changelog

* Bump version: v8.0.0 → v8.1.0
  • Loading branch information
SMadani authored Dec 21, 2023
1 parent 3085ca9 commit 8cdb975
Show file tree
Hide file tree
Showing 66 changed files with 1,317 additions and 3,559 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[bumpversion]
commit = True
tag = False
current_version = v8.0.0
current_version = v8.1.0
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)(?P<build>\d+))?
serialize =
{major}.{minor}.{patch}-{release}{build}
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

# [8.1.0] - 2024-01-??
- Added optional `from` parameter to Verify v2 SMS workflow
- Fixed `length` not being set in `VerifyClient.verify` overload method
- Fixed incorrect HTTP method for updating Video Broadcast layout
- Internal refactoring of Video API implementation

# [8.0.0] - 2023-11-30
- Added `redirect_url` parameter to `SilentAuthWorkflow`
- Bumped Jackson version to 2.16.0
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ See all of our SDKs and integrations on the [Vonage Developer portal](https://de

## Installation

Releases are published to [Maven Central](https://central.sonatype.com/artifact/com.vonage/server-sdk/8.0.0/snippets).
Releases are published to [Maven Central](https://central.sonatype.com/artifact/com.vonage/server-sdk/8.1.0/snippets).
Instructions for your build system can be found in the snippets section.
They're also available from [here](https://mvnrepository.com/artifact/com.vonage/server-sdk/8.0.0).
They're also available from [here](https://mvnrepository.com/artifact/com.vonage/server-sdk/8.1.0).
Release notes can be found in the [changelog](CHANGELOG.md).

### Build It Yourself
Expand Down Expand Up @@ -159,9 +159,9 @@ If you would like to use the SDK in a multithreaded environment, create a separa

**A:** Currently no, but it is on the roadmap.

**Q: How do I migrate from OpenTok to Vonage?**
**Q: How do I migrate from TokBox to Vonage?**

**A:** See [this migration guide](src/main/java/com/vonage/client/video/OPENTOK_TO_VONAGE_MIGRATION.md).
**A:** See [the OpenTok migration guide](src/main/java/com/vonage/client/video/OPENTOK_TO_VONAGE_MIGRATION.md).

## Contribute!

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {

group = "com.vonage"
archivesBaseName = "server-sdk"
version = "8.0.0"
version = "8.1.0"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/vonage/client/HttpWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/
public class HttpWrapper {
private static final String CLIENT_NAME = "vonage-java-sdk";
private static final String CLIENT_VERSION = "8.0.0";
private static final String CLIENT_VERSION = "8.1.0";
private static final String JAVA_VERSION = System.getProperty("java.version");
private static final String USER_AGENT = String.format("%s/%s java/%s", CLIENT_NAME, CLIENT_VERSION, JAVA_VERSION);

Expand Down
67 changes: 0 additions & 67 deletions src/main/java/com/vonage/client/video/CreateArchiveEndpoint.java

This file was deleted.

67 changes: 0 additions & 67 deletions src/main/java/com/vonage/client/video/CreateBroadcastEndpoint.java

This file was deleted.

55 changes: 0 additions & 55 deletions src/main/java/com/vonage/client/video/CreateSessionEndpoint.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package com.vonage.client.video;

import com.vonage.client.QueryParamsRequest;
import org.apache.http.client.methods.RequestBuilder;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.LinkedHashMap;
Expand Down Expand Up @@ -54,11 +53,6 @@ public Map<String, String> makeParams() {
return params;
}

@Deprecated
void addParams(RequestBuilder request) {
makeParams().forEach(request::addParameter);
}

/**
* The location hint IP address.
*
Expand Down
54 changes: 0 additions & 54 deletions src/main/java/com/vonage/client/video/DeleteArchiveEndpoint.java

This file was deleted.

54 changes: 0 additions & 54 deletions src/main/java/com/vonage/client/video/ForceDisconnectEndpoint.java

This file was deleted.

Loading

0 comments on commit 8cdb975

Please sign in to comment.