Your IP : 216.73.216.1


Current Path : /proc/self/cwd/wp-content/plugins/leadin/scripts/api/
Upload File :
Current File : //proc/self/cwd/wp-content/plugins/leadin/scripts/api/wordpressMeetingsApiClient.ts

import { makeProxyRequest } from './wordpressApiClient';

const WordpressServiceUrls = {
  GetMeetingsPath: '/wordpress/v1/meetings/links',
  CreateMeetingUserPath: '/wordpress/v1/meetings/user',
};

export function fetchMeetingsAndUsers() {
  return makeProxyRequest('get', WordpressServiceUrls.GetMeetingsPath, {}, {});
}

export function getOrCreateMeetingUser(defaultMeetingUser: any) {
  return makeProxyRequest(
    'post',
    WordpressServiceUrls.CreateMeetingUserPath,
    defaultMeetingUser,
    {}
  );
}