This website uses cookies to ensure you get the best experience on our website.

Skip to content
LOGO
  • Company

    About IGNEK

    Learn about our story and our mission.

    Careers

    We're hiring!

    We always looking for talented peoples. Join our team!

    Blogs

    The latest industry news, updates and info.

    Case Studies

    Take a closer look at the projects we've delivered

    Webinar

    Watch our latest organized webinar

    Get in touch with our HR team

    • hr@ignek.com
    • +91 93284 95160
    • Ahmedabad, Gujarat, India – 382470
  • Services

    Enterprise Portal Development

    Custom Enterprise Portal Development for flawless Solutions

    Dedicated Development Team

    Expand Teams, Optimize Development with Our Expertise

    Back-end Development

    Empowering your digital presence with robust backend development expertise

    Front-end Development

    Crafting engaging user experiences through expert frontend development

    Digital Transformation

    Embrace digital transformation by modernizing process

    SaaS Development

    Transform your business with SaaS Innovative Solutions

    Technologies

    Liferay Services

    Development & Customization

    Theme

    Upgradation

    Migration

    Proof of Concept

    Performance Tunning

    Architecture

    Support & Maintenance

    E-commerce

    Expert Advice

    React Services

    Enterprise Development

    Custom Application

    Single Page Application

    Architecture

    API Integration

    Migration

    Consulting

    Maintenance & Support

    Spring Boot Services

    Web Service

    MVC Web Development

    API Integration

    Security

    Migration

    Microservices

    Support & Maintenance

    AEM Services

    Consulting Service

    Site Development

    Migration & Upgradation

    Integration

    Maintenance & Support

    Custom Solutions

    Content Management

    Team Augementation

  • Solution

    Ready for digital excellence

    In our rapidly evolving world, businesses are always on the lookout for fresh ways to improve their operations and connect with their audiences.

    Contact US

    Solutions

    SaaS : Software As A Service

    Transforming industries through cutting edge SaaS solutions.

    Customer Portal : Boost Business Productivity

    Streamline operations and enhance productivity with our Customer Portal solution.

    Liferay Based Intranet Portal

    Internal portal for company communication, collaboration and resources

    Integration

    Matomo Integration with Liferay

    Integrate Matomo to enable user interactions seamlessly.

    Microsoft Teams integration with Liferay

    Integrate to enable seamless collaboration, messaging within your portal.

    Jira Integration With Liferay

    Optimizes business operations by integrating with Jira.

  • Hire Us

    Liferay

    Get expert Liferay developers for seamless portal solutions.

    React JS

    Get expert ReactJS developers for dynamic web solutions.

    Web Developer

    Get custom web solutions from IGNEK's expert developers.

    Spring Boot

    Get top-notch Spring Boot developers for your project success!

    Healthcare

    Get top Healthcare Developers for cutting-edge medical software.

    MERN Stack

    Get expert MERN developers from IGNEK for custom, innovative project solutions.

    Why Hire Developers From IGNEK ?

    • Certified Developer
    • Transparent Communication
    • Flexible Hiring Modals
    • Fully Signed NDA
    • Cost Effective
    • Easy Exit Policy

    Get in touch with our Sales team

    • sales@ignek.com
    • +91 6351576580
    • info@ignek.com
    • Ahmedabad, Gujarat, India – 382470
SCHEDULE CALL
  • COMPANY
    • About
    • Case Studies
    • Blogs
    • Career
    • Webinar
  • SERVICES
    • Enterprise Portal Development
    • Dedicated Development Team
    • Back-end Development
    • Front-end Development
    • Digital Transformation
    • SaaS Development
  • SOLUTION
    • Customer Portal:  Boost Business Productivity
    • SaaS : Software as a Service
    • Liferay Based Employee Intranet Portal
  • TECHNOLOGY
    • Liferay Services
      • Liferay Development and Customization
      • Liferay Theme Development Service
      • Liferay DXP 7.4 Upgrade
      • Liferay Migration
      • Liferay Proof Of Concept
      • Liferay Performance Tuning
      • Liferay Architecture Design Service
      • Liferay Support And Maintenance Service
      • Liferay Ecommerce Development
      • Liferay Expert Advice
    • ReactJS Services
      • ReactJS Enterprise Application Development
      • ReactJS Custom Application Development
      • ReactJS Single Page Application Development (SPA)
      • ReactJS Applications Architecture
      • ReactJS API Integration
      • ReactJS Migration
      • ReactJS Consulting
      • ReactJS Maintenance and Support
    • Spring Boot Services
      • Spring Boot Web Development Service
      • Spring MVC Web Development
      • Spring Boot API Integration Service
      • Spring Boot Security
      • Spring Boot Migration Service
      • Spring Boot Microservices
      • Spring Boot Support & Maintenance Service
    • AEM Development Services
      • AEM Consulting Services
      • AEM Site Development
      • AEM Migration & Upgradation
      • AEM Integration Services
      • AEM Maintenance & Support
      • AEM Content Management
      • Custom AEM Solutions
      • AEM Team Augmentation
  • INTEGRATION
  • HIRE US
    • Hire Liferay Developer
    • Hire ReactJS Developer
    • Hire Spring Boot Developer
    • Hire Healthcare Developer
    • Hire Web Developer
    • Hire MERN Stack Developer
  • CONTACT US
  • Company

    About IGNEK

    Careers

    We're hiring!

    Blogs

    Case Studies

    Webinar

    Get in touch with our HR team

    • hr@ignek.com
    • +91 93284 95160
    • Ahmedabad, Gujarat, India – 382470
  • Services

    Enterprise Portal Development

    Dedicated Development Team

    Back-end Development

    Front-end Development

    Digital Transformation

    SaaS Development

    Technologies

    Liferay Liferay Services
    • Development & Customization
    • Theme
    • Upgradation
    • Migration
    • Proof of Concept
    • Performance Tuning
    • Architecture
    • Support & Maintenance
    • E-commerce
    • Expert Advice
    React React Services
    • Enterprise Development
    • Custom Application
    • Single Page Application
    • Architecture
    • API Integration
    • Migration
    • Consulting
    • Maintenance & Support
    Spring Boot Spring Boot Services
    • Web Service
    • MVC Web Development
    • API Integration
    • Security
    • Migration
    • Microservices
    • Support & Maintenance
    AEM AEM Services
    • Consulting Service
    • Site Development
    • Migration & Upgradation
    • Integration
    • Maintenance & Support
    • Custom Solutions
    • Content Management
    • Team Augmentation
  • Solution

    Ready for digital excellence

    In our rapidly evolving world, businesses are always on the lookout for fresh ways to improve their operations and connect with their audiences.

    Contact US

    Solutions

    SaaS : Software As A Service

    Customer Portal : Boost Business Productivity

    Liferay Based Intranet Portal

    Integration

    Matomo Integration with Liferay

    Microsoft Teams integration with Liferay

    Jira Integration With Liferay

  • Hire Us

    Liferay

    React JS

    Web Developer

    Spring Boot

    Healthcare

    MERN Stack

    Why Hire Developers From IGNEK ?

    • Certified Developer
    • Transparent Communication
    • Flexible Hiring Modals
    • Fully Signed NDA
    • Cost Effective
    • Easy Exit Policy

    Get in touch with our Sales team

    • sales@ignek.com
    • +91 6351576580
    • IGNEK
    • Ahmedabad, Gujarat, India – 382470
  • SCHEDULE CALL

Zoom integration with Liferay

  • Liferay
  • July 8, 2024

Share On :

Introduction:

Zoom Integration With Liferay to perform meeting operations and boost work efficiency. Embed Zoom on Liferay sites or online workspaces for a smooth experience. Enable team members to work together in real-time through quality video calls, no matter where they are.

Prerequisites:
  • Liferay 7.4+
  • A Google account
  • Zoom application
  • Eclipse IDE

Step 1: Build a Server-to-Server app

  • Navigate to the Zoom marketplace by following the below link.
    • https://marketplace.zoom.us/
    • Note: Signing in to the Zoom marketplace is a must.
  • Click the Develop dropdown menu on the right side of the screen, then choose the Build Server-to-Server App.
  • Provide the app name and click on the Create button.
  • Add basic information and developer contact information to the server-to-server app.
  • Add scopes to perform operations using generated credentials. 
Basic Information for server to server oauth app
Add scopes in server to server app
  • Activate the app.
Step 2: Create a Zoom meeting
  1. Get an authorization token.
Get Authorization token
  • The getZoomAuthToken() method will generate an authorization token.
    • Update ACCOUNT_ID, CLIENT_ID, and CLIENT_SECRET values according to the Zoom server to server app credential. Make sure the value of these fields is not null.
  1. Create a Zoom meeting.
Create meeting method
    • sendHTTPRequest(httpPost, headerMap) method will create a meeting.
  1. Add the below dependency to the build.gradle file.
compileOnly group: “com.google.code.gson”, name: “gson”, version: “2.10”
  1. Add below package to zoomintegration-impl -> bnd.bnd file.
-privatepackage: com.google.gson.*
    • Add the private package com.google.gson.* in bnd.bnd file to convert response into the JSON format.
				
					import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.liferay.petra.string.StringPool;
import com.liferay.portal.kernel.json.JSONFactory;
import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet;
import com.liferay.portal.kernel.util.Validator;
import java.io.Serializable;
import java.util.Base64;
import java.util.HashMap;
import java.util.Map;
import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
import javax.portlet.Portlet;
import javax.portlet.ProcessAction;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpUriRequest;
import org.apache.http.entity.ContentType;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.util.EntityUtils;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
import zoom.integration.constants.ZoomIntegrationPortletKeys;

@Component(immediate = true,
    property = {"com.liferay.portlet.display-category=category.sample",
        "com.liferay.portlet.header-portlet-css=/css/main.css",
        "com.liferay.portlet.instanceable=true",

        "javax.portlet.display-name=ZoomIntegration",
        "javax.portlet.init-param.template-path=/",

        "javax.portlet.init-param.view-template=/view.jsp",

        "javax.portlet.name=" + ZoomIntegrationPortletKeys.ZOOMINTEGRATION,

        "javax.portlet.resource-bundle=content.Language",

        "javax.portlet.security-role-ref=power-user,user"},
    service = Portlet.class)

public class ZoomIntegrationPortlet extends MVCPortlet {
  @ProcessAction(name = "createMeeting")

  public String createMeeting(
      ActionRequest actionRequest, ActionResponse actionResponse) {
    String responseBody = StringPool.BLANK;

    if (Validator.isNotNull(getZoomAuthToken())) {
      String authToken = getZoomAuthToken();

      JSONObject requestBody = jSONFactory.createJSONObject();

      requestBody.put("agenda", "My meeting");

      requestBody.put("duration", 30);

      requestBody.put("start_time", "2024-06-5T10:30:00Z");

      requestBody.put("timezone", "Asia/Calcutta");

      requestBody.put("topic", "My meeting");

      Map<String, String> headerMap = new HashMap<>();

      headerMap.put("Authorization", "Bearer" + authToken);

      headerMap.put("Content-Type", ContentType.APPLICATION_JSON.toString());

      HttpPost httpPost =
          new HttpPost("https://api.zoom.us/v2/users/me/meetings");

      HttpEntity entity = new StringEntity(
          requestBody.toString(), ContentType.APPLICATION_JSON);

      httpPost.setEntity(entity);

      responseBody = sendHTTPRequest(httpPost, headerMap);
    }

    return responseBody;
  }

  private String getZoomAuthToken() {
    String authToken = StringPool.BLANK;

    String ACCOUNT_ID = "1pTIXYY-QfW7yZiEvIs4RA";

    String CLIENT_ID = "KWOPPQoQM6sh2ffTmH1bQ";

    String CLIENT_SECRET = "7blyG2Crqq95peaN55E22WvvRyVD32Q5";

    if (!(ACCOUNT_ID.isBlank() && CLIENT_ID.isBlank()
            && CLIENT_SECRET.isBlank())) {
      String auth = CLIENT_ID + StringPool.COLON + CLIENT_SECRET;

      String encodedAuth = Base64.getEncoder().encodeToString(auth.getBytes());

      Map<String, String> headerMap = new HashMap<>();

      headerMap.put(
          "Content-Type", ContentType.APPLICATION_FORM_URLENCODED.toString());

      headerMap.put("Authorization", "Basic" + StringPool.SPACE + encodedAuth);

      Map<String, Serializable> requestBodyMap = new HashMap<>();

      requestBodyMap.put("grant_type", "account_credentials");

      requestBodyMap.put("account_id", ACCOUNT_ID);

      String requestBody =
          requestBodyMap.toString()
              .replace(StringPool.OPEN_CURLY_BRACE, StringPool.BLANK)

              .replace(StringPool.CLOSE_CURLY_BRACE, StringPool.BLANK)

              .replace(
                  StringPool.COMMA + StringPool.SPACE, StringPool.AMPERSAND);

      HttpPost httpPost = new HttpPost("https://zoom.us/oauth/token");

      HttpEntity entity = new StringEntity(
          requestBody, ContentType.APPLICATION_FORM_URLENCODED);

      httpPost.setEntity(entity);

      String response = sendHTTPRequest(httpPost, headerMap);

      Gson gson = new Gson();

      JsonObject object = gson.fromJson(response, JsonObject.class);

      authToken = object.get("access_token")
                      .toString()
                      .replaceAll(StringPool.QUOTE, StringPool.BLANK);
    }

    return authToken;
  }

  private String sendHTTPRequest(
      HttpUriRequest httpUriRequest, Map<String, String> headerMap) {
    try (CloseableHttpClient client = HttpClientBuilder.create().build()) {
      headerMap.forEach((key, value) -> {
        httpUriRequest.setHeader(key, value);
      });

      HttpResponse response = client.execute(httpUriRequest);

      return Validator.isNotNull(response.getEntity())
          ? EntityUtils.toString(response.getEntity())

          : String.valueOf(response.getStatusLine().getStatusCode());

    } catch (Exception e) {
      log.error(e.getMessage(), e);
    }

    return StringPool.BLANK;
  }

  private static final Log log =
      LogFactoryUtil.getLog(ZoomIntegrationPortlet.class);

  @Reference

  JSONFactory jSONFactory;
}
				
			
  • Meeting will be generated in the Zoom account.
Zoom meeting
Conclusion:

Integrating Zoom with Liferay enhances productivity by enabling seamless video communication directly within the Liferay platform. This setup allows team members to collaborate effectively through high-quality video calls, regardless of location. By following the outlined steps, you can create a server-to-server app in Zoom, obtain an authorization token, and programmatically schedule Zoom meetings in Liferay, streamlining your workflow and boosting efficiency.

Explore Our Services

Discover how we can help your business thrive, whether you’re running a small startup, an SME, or a large enterprise. We’re here to understand your unique needs and goals, offering the expertise and resources to support your journey to success.

Stay informed about our Liferay services and updates by subscribing to our newsletter—just fill in the details below to subscribe.

Loading
Loading...
Loading...

Digital Solutions for Your Business with IGNEK

4.9

5.0

5.0

5.0

LOGO

Making the world a better place through constructing elegant hierarchies

COMPANY

  • About
  • Career
  • Case Study
  • Blogs

SERVICES

  • Enterprise Portal Development
  • Dedicated Development Team
  • Back-end Development
  • Front-end Development
  • Digital Transformation
  • SaaS Development

HIRE US

  • Liferay
  • Spring Boot
  • ReactJS
  • Healthcare
  • MERN Stack
  • AEM

CONTACT

  • info@ignek.com
  • info@ignek.com
SALES
  • sales@ignek.com
  • (+91) 635 157 6580
CAREER
  • hr@ignek.com
  • (+91) 932 849 5160
  • E 910-912, Ganesh Glory 11, Jagatpur Road, SG Highway, Ahmedabad, Gujarat - 382470

© 2018-2025 IGNEK, Inc. All rights reserved

Linkedin Facebook X-twitter Instagram