Class MeetApiClient

java.lang.Object
fr.paris.lutece.plugins.meet.service.MeetApiClient

public class MeetApiClient extends Object
Low-level REST client for the Meet external API. Handles OAuth2 authentication and room operations using HttpAccess.
  • Constructor Details

    • MeetApiClient

      public MeetApiClient()
  • Method Details

    • getAccessToken

      public String getAccessToken(String strBaseUrl, String strClientId, String strClientSecret, String strScope)
      Obtain a valid access token, refreshing it if expired.
      Parameters:
      strBaseUrl - the Meet API base URL
      strClientId - the OAuth2 client ID
      strClientSecret - the OAuth2 client secret
      strScope - the user email to delegate
      Returns:
      the access token, or null on failure
    • createRoom

      public MeetRoom createRoom(String strBaseUrl, String strClientId, String strClientSecret, String strScope)
      Create a new room via the Meet API.
      Parameters:
      strBaseUrl - the Meet API base URL
      strClientId - the OAuth2 client ID
      strClientSecret - the OAuth2 client secret
      strScope - the user email to delegate
      Returns:
      the created MeetRoom, or null on failure
    • createRoom

      public MeetRoom createRoom(String strBaseUrl, String strClientId, String strClientSecret, String strScope, MeetRoomRequest request)
      Create a new room via the Meet API, with an explicit request body.
      Parameters:
      strBaseUrl - the Meet API base URL
      strClientId - the OAuth2 client ID
      strClientSecret - the OAuth2 client secret
      strScope - the user email to delegate
      request - the room options; null or an unset request posts an empty body, letting the Meet server apply its defaults
      Returns:
      the created MeetRoom, or null on failure
    • getRoom

      public MeetRoom getRoom(String strBaseUrl, String strClientId, String strClientSecret, String strScope, String strRoomId)
      Retrieve a room by its ID.
      Parameters:
      strBaseUrl - the Meet API base URL
      strClientId - the OAuth2 client ID
      strClientSecret - the OAuth2 client secret
      strScope - the user email to delegate
      strRoomId - the room UUID
      Returns:
      the MeetRoom, or null on failure