[][src]Struct zoom_api::Zoom

pub struct Zoom { /* fields omitted */ }

Entrypoint for interacting with the Zoom API.

Implementations

impl Zoom[src]

pub fn new<K, S, A>(key: K, secret: S, account_id: A) -> Self where
    K: ToString,
    S: ToString,
    A: ToString
[src]

Create a new Zoom client struct. It takes a type that can convert into an &str (String or Vec<u8> for example). As long as the function is given a valid API Key and Secret your requests will work.

pub fn new_from_env() -> Self[src]

Create a new Zoom client struct from environment variables. It takes a type that can convert into an &str (String or Vec<u8> for example). As long as the function is given a valid API Key and Secret your requests will work.

pub fn get_key(&self) -> &str[src]

Get the currently set API key.

pub fn get_secret(&self) -> &str[src]

Get the currently set API secret.

pub fn get_token(&self) -> &str[src]

Get the currently set authorization token.

pub async fn list_users<'_>(&'_ self) -> Result<Vec<User>, APIError>[src]

List users.

pub async fn get_user<'_>(&'_ self, email: String) -> Result<User, APIError>[src]

Get a user.

pub async fn create_user<'_>(
    &'_ self,
    first_name: String,
    last_name: String,
    email: String
) -> Result<User, APIError>
[src]

Create a user.

pub async fn update_user<'_>(
    &'_ self,
    first_name: String,
    last_name: String,
    email: String,
    use_pmi: bool,
    vanity_name: String
) -> Result<(), APIError>
[src]

Update a user.

pub async fn list_rooms<'_>(&'_ self) -> Result<Vec<Room>, APIError>[src]

List rooms.

pub async fn update_room<'_>(&'_ self, room: Room) -> Result<(), APIError>[src]

Update a room.

pub async fn create_room<'_>(&'_ self, room: Room) -> Result<Room, APIError>[src]

Create a room.

pub async fn list_buildings<'_>(&'_ self) -> Result<Vec<Building>, APIError>[src]

List buildings.

pub async fn create_building<'_>(
    &'_ self,
    __arg1: Building
) -> Result<Building, APIError>
[src]

Create a building.

pub async fn update_building<'_>(
    &'_ self,
    __arg1: Building
) -> Result<(), APIError>
[src]

Update a building.

pub async fn list_recordings_as_admin<'_>(
    &'_ self
) -> Result<Vec<Meeting>, APIError>
[src]

List cloud recordings available on an account. From: https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/getaccountcloudrecording This assumes the caller is an admin.

pub async fn download_recording_to_file<'_>(
    &'_ self,
    download_url: String,
    file: PathBuf
) -> Result<(), APIError>
[src]

Download a recording to a file.

pub async fn delete_meeting_recordings<'_>(
    &'_ self,
    meeting_id: i64
) -> Result<(), APIError>
[src]

Delete all the recordings for a meeting.

Auto Trait Implementations

impl !RefUnwindSafe for Zoom

impl !Send for Zoom

impl !Sync for Zoom

impl Unpin for Zoom

impl !UnwindSafe for Zoom

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.