zoom_api/
pac.rs

1use crate::Client;
2use crate::ClientResult;
3
4pub struct Pac {
5    pub client: Client,
6}
7
8impl Pac {
9    #[doc(hidden)]
10    pub fn new(client: Client) -> Self {
11        Pac { client }
12    }
13
14    /**
15     * List a user's PAC accounts.
16     *
17     * This function performs a `GET` to the `/users/{userId}/pac` endpoint.
18     *
19     * Use this API to list a user's [Personal Audio Conference](https://support.zoom.us/hc/en-us/articles/204517069-Getting-Started-with-Personal-Audio-Conference) accounts. For user-level apps, pass [the `me` value](https://marketplace.zoom.us/docs/api-reference/using-zoom-apis#mekeyword) instead of the `userId` parameter.
20     *
21     * PAC allows Pro or higher account holders to host meetings through PSTN (phone dial-in) only.
22     *
23     * **Scopes:** `pac:read:admin`, `pac:read`<br>**[Rate Limit Label](https://marketplace.zoom.us/docs/api-reference/rate-limits#rate-limits):** `Light`
24     *
25     * **Prerequisites:**
26     * * A Pro or higher plan with [Premium Audio Conferencing](https://support.zoom.us/hc/en-us/articles/204517069-Getting-Started-with-Personal-Audio-Conference) add-on.
27     * * Personal Audio Conference must be enabled in the user's profile.
28     *
29     * **Parameters:**
30     *
31     * * `user_id: &str` -- The user ID or email address of the user. For user-level apps, pass `me` as the value for userId.
32     */
33    pub async fn user_pa_cs(
34        &self,
35        user_id: &str,
36    ) -> ClientResult<crate::Response<crate::types::UserPaCsResponse>> {
37        let url = self.client.url(
38            &format!(
39                "/users/{}/pac",
40                crate::progenitor_support::encode_path(user_id),
41            ),
42            None,
43        );
44        self.client
45            .get(
46                &url,
47                crate::Message {
48                    body: None,
49                    content_type: None,
50                },
51            )
52            .await
53    }
54}