mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 13:07:55 +00:00 
			
		
		
		
	Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
		
			
				
	
	
		
			24 lines
		
	
	
		
			495 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			495 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
/* global axios */
 | 
						|
 | 
						|
import ApiClient from '../ApiClient';
 | 
						|
 | 
						|
class DyteAPI extends ApiClient {
 | 
						|
  constructor() {
 | 
						|
    super('integrations/dyte', { accountScoped: true });
 | 
						|
  }
 | 
						|
 | 
						|
  createAMeeting(conversationId) {
 | 
						|
    return axios.post(`${this.url}/create_a_meeting`, {
 | 
						|
      conversation_id: conversationId,
 | 
						|
    });
 | 
						|
  }
 | 
						|
 | 
						|
  addParticipantToMeeting(messageId) {
 | 
						|
    return axios.post(`${this.url}/add_participant_to_meeting`, {
 | 
						|
      message_id: messageId,
 | 
						|
    });
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
export default new DyteAPI();
 |