Edit your keys & names


Contents

1. Add your keys & secrets

2. Edit display name

⚠️ DISCLAIMER ⚠️

Please be aware that all hard-coded variables and constants shown in the documentation and in the demo, such as Zoom Token, Zoom Access, Token, etc., are ONLY FOR DEMO AND TESTING PURPOSES. We STRONGLY DISCOURAGE the way of HARDCODING any Zoom Credentials (username, password, API Keys & secrets, SDK keys & secrets, etc.) or any Personal Identifiable Information (PII) inside your application. WE DON’T MAKE ANY COMMITMENTS ABOUT ANY LOSS CAUSED BY HARD-CODING CREDENTIALS OR SENSITIVE INFORMATION INSIDE YOUR APP WHEN DEVELOPING WITH OUR SDK.

1. Add your keys & secrets

SDK keys and secrets are very important for us to identify who and which application is calling for Zoom services. In order to get our SDK working in your Android application, you will need to have the keys & secrets that we got in the Preface section ready.

As part of the example app, we have created an interface for you to store your SDK keys and secrets. This is the recommended practice to store your credentials, but you can also store it in your own ways.

  1. Open ./sample/java/us.zoom.sdkexample/initsdk/AuthConstants.java
  2. Change the APP_KEY property and the APP_SECRET property defined in AuthConstants.java to your own SDK key and secret.
Web Domain

Please always use “zoom.us” in the WEB_DOMAIN field.

./sample/java/us.zoom.sdkexample/AuthConstants.java
/**
*    ========== Disclaimer ==========
*
*    Please be aware that all hard-coded variables and constants 
*    shown in the documentation and in the demo, such as Zoom Token, 
*    Zoom Access, Token, etc., are ONLY FOR DEMO AND TESTING PURPOSES.
*    We STRONGLY DISCOURAGE the way of HARDCODING any Zoom Credentials
*    (username, password, API Keys & secrets, SDK keys & secrets, etc.)
*    or any Personal Identifiable Information (PII) inside your application. 
*    WE DON’T MAKE ANY COMMITMENTS ABOUT ANY LOSS CAUSED BY HARD-CODING CREDENTIALS
*    OR SENSITIVE INFORMATION INSIDE YOUR APP WHEN DEVELOPING WITH OUR SDK.
*
*/

// TODO Change it to your web domain
public final static String WEB_DOMAIN = "zoom.us";

// TODO Change it to your APP Key
public final static String APP_KEY = "Your SDK Key";

// TODO Change it to your APP Secret
public final static String APP_SECRET = "Your SDK Secret";

We also provide another method, which is using tokens (zoom_token, zoom_access_token) retrieved from Zoom API to perform authentication. We provides the methods to retrieve thoese tokens:

  1. Open ./sample/java/us.zoom.sdkexample/startjoinmeeting/apiuser/APIUserConstants.java
  2. Change the API_KEY property and the API_SECRET property defined in APIUserConstants.java to your own API key and secret.
API key & secret

If you are having trouble getting your own API key and secret, please refer to the insturction: https://marketplace.zoom.us/docs/api-reference/introduction

./sample/java/us.zoom.sdkexample/startjoinmeeting/apiuser/APIUserConstants.java
/**
*    ========== Disclaimer ==========
*
*    Please be aware that all hard-coded variables and constants 
*    shown in the documentation and in the demo, such as Zoom Token, 
*    Zoom Access, Token, etc., are ONLY FOR DEMO AND TESTING PURPOSES.
*    We STRONGLY DISCOURAGE the way of HARDCODING any Zoom Credentials
*    (username, password, API Keys & secrets, SDK keys & secrets, etc.)
*    or any Personal Identifiable Information (PII) inside your application. 
*    WE DON’T MAKE ANY COMMITMENTS ABOUT ANY LOSS CAUSED BY HARD-CODING CREDENTIALS
*    OR SENSITIVE INFORMATION INSIDE YOUR APP WHEN DEVELOPING WITH OUR SDK.
*
*/

// TODO Change it to your web API Key
public final static String API_KEY = "Your web Rest Api key";

// TODO Change it to your web API Secret
public final static String API_SECRET = "Your web Rest Api secret";

// TODO change it to your user ID, do not need for login user
public final static String USER_ID = "Your user ID from REST API:https://api.zoom.us/v2/users/{userId} / usually your Zoom username(email)";

// TODO change it to your Zoom access token expired time
public final static long EXPIRED_TIME= 3600 * 24 * 7; //A week
Please do not use raw IP address as the web domain

Please do not use raw IP address as the web domain, it will put yourself into vulnerability issues. If you would like to learn why, please see our security practices for more information.

We will cover these options later or you can refer to our REST API documentation for detailed information: https://marketplace.zoom.us/docs/api-reference/zoom-api.

Which user type works for me?

Please visit Account & User for detailed information regarding different user type.

2. Edit your display name

This part is not required, but it can make the example application to be more yours.

Our authentication process allows you to join a meeting without login. When in that scenario, the display name shown in the meeting will be the name that you provide in the application.

  1. Open ./sample/java/us.zoom.sdkexample/startjoinmeeting/joinmeetingonly/JoinMeetingHelper.java
  2. At the very beginning of the JoinMeetingHelper class, you can find a constant called “DISPLAY_NAME”. Change the DISPLAY_NAME to any cool names that you want. For example, Superman.
./sample/java/us.zoom.sdkexample/startjoinmeeting/joinmeetingonly/JoinMeetingHelper.java
public class JoinMeetingHelper {
  
    private final static String TAG = "JoinMeetingHelper";

    private static JoinMeetingHelper mJoinMeetingHelper;

    private ZoomSDK mZoomSDK;

    private final static String DISPLAY_NAME = "Superman";

    private JoinMeetingHelper() {
        mZoomSDK = ZoomSDK.getInstance();
    }

    public synchronized static JoinMeetingHelper getInstance() {
        mJoinMeetingHelper = new JoinMeetingHelper();
        return mJoinMeetingHelper;
    }

....
....
}

Save the changes, and you will see the changes in the next section.


Next