Skip to content

Commit 0ac9707

Browse files
author
Ben Pedrick
committed
Merge branch 'staging.eol'
2 parents da41619 + 64eca86 commit 0ac9707

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/main/java/com/opentok/api/API_Config.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ public class API_Config {
1313

1414
public static final String API_SECRET = "91e6f7609074be23b40747a4651ba5a7";
1515

16-
public static final String API_URL = "http://staging.tokbox.com/hl";
17-
// Uncomment this line when you launch your app
18-
// public static final String API_URL = "https://api.opentok.com/hl";
16+
public static final String API_URL = "https://api.opentok.com";
1917
}
2018

src/main/java/com/opentok/api/OpenTokSDK.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ public String generate_token(String session_id, String role, Long expire_time, S
6969
if(expire_time != null) {
7070
if(expire_time < System.currentTimeMillis() / 1000)
7171
throw new OpenTokException("Expire time must be in the future");
72-
if(expire_time > (System.currentTimeMillis() / 1000 + 604800))
73-
throw new OpenTokException("Expire time must be in the next 7 days");
72+
if(expire_time > (System.currentTimeMillis() / 1000 + 2592000))
73+
throw new OpenTokException("Expire time must be in the next 30 days");
7474
data_string_builder.append("&expire_time=");
7575
data_string_builder.append(expire_time);
7676
}

0 commit comments

Comments
 (0)