• Retrieves the site ID from the SharePoint Graph API.

    Parameters

    • client: Client

      The client instance used to make the API request.

    • options: {
          domain: string;
          site: string;
      }

      An object containing the domain and site name.

      • domain: string

        The domain of the SharePoint site.

      • site: string

        The name of the SharePoint site.

    Returns Promise<any>

    A promise that resolves to the site ID.

    const client = await getSharePointClient(opt);
    const options = { domain: 'example.com', site: 'mysite' };
    const siteId = await getSiteId(client, options);
    console.log(siteId);