Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cleanup

  • Loading branch information...
commit 8071ed0e6d3f2fe1b79f468e47d56705ae373c1b 1 parent b9dc93f
Mike Kascel mkascel authored
Showing with 0 additions and 34 deletions.
  1. +0 −34 Sample.java
34 Sample.java
View
@@ -1,34 +0,0 @@
-import com.opentok.api.API_Config;
-import com.opentok.api.OpenTokSDK;
-import com.opentok.api.constants.SessionProperties;
-import com.opentok.api.constants.RoleConstants;
-import com.opentok.exception.OpenTokException;
-
-class Test {
- public static void main(String argv[]) throws OpenTokException {
- OpenTokSDK sdk = new OpenTokSDK(API_Config.API_KEY,API_Config.API_SECRET);
-
- //Generate a token
- String s = sdk.generate_token("session");
- System.out.println(s);
-
- System.out.println(sdk.generate_token("session",RoleConstants.PUBLISHER));
- System.out.println(sdk.generate_token("session",RoleConstants.SUBSCRIBER));
- System.out.println(sdk.generate_token("session",RoleConstants.MODERATOR));
-
-
-
- //Generate a basic session
- System.out.println(sdk.create_session().session_id);
-
- System.out.println();
-
- //Generate Session Properties for a session
- SessionProperties sp = new SessionProperties();
-
- //Add SessionProperties here if any are needed (e.g. p2p)
-
- //Generate a session with a location hint and session properties
- System.out.println(sdk.create_session("127.0.0.1", sp).session_id);
- }
-}
Please sign in to comment.
Something went wrong with that request. Please try again.