Class MeetApiClient
java.lang.Object
fr.paris.lutece.plugins.meet.service.MeetApiClient
Low-level REST client for the Meet external API. Handles OAuth2 authentication and room operations using
HttpAccess.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRoom(String strBaseUrl, String strClientId, String strClientSecret, String strScope) Create a new room via the Meet API.createRoom(String strBaseUrl, String strClientId, String strClientSecret, String strScope, MeetRoomRequest request) Create a new room via the Meet API, with an explicit request body.getAccessToken(String strBaseUrl, String strClientId, String strClientSecret, String strScope) Obtain a valid access token, refreshing it if expired.getRoom(String strBaseUrl, String strClientId, String strClientSecret, String strScope, String strRoomId) Retrieve a room by its ID.
-
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 URLstrClientId- the OAuth2 client IDstrClientSecret- the OAuth2 client secretstrScope- the user email to delegate- Returns:
- the access token, or
nullon 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 URLstrClientId- the OAuth2 client IDstrClientSecret- the OAuth2 client secretstrScope- the user email to delegate- Returns:
- the created
MeetRoom, ornullon 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 URLstrClientId- the OAuth2 client IDstrClientSecret- the OAuth2 client secretstrScope- the user email to delegaterequest- the room options;nullor an unset request posts an empty body, letting the Meet server apply its defaults- Returns:
- the created
MeetRoom, ornullon 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 URLstrClientId- the OAuth2 client IDstrClientSecret- the OAuth2 client secretstrScope- the user email to delegatestrRoomId- the room UUID- Returns:
- the
MeetRoom, ornullon failure
-