[−][src]Struct zoom_api::Zoom
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]
K: ToString,
S: ToString,
A: ToString,
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]
&'_ self,
first_name: String,
last_name: String,
email: String
) -> Result<User, APIError>
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]
&'_ self,
first_name: String,
last_name: String,
email: String,
use_pmi: bool,
vanity_name: String
) -> Result<(), APIError>
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]
&'_ self,
__arg1: Building
) -> Result<Building, APIError>
Create a building.
pub async fn update_building<'_>(
&'_ self,
__arg1: Building
) -> Result<(), APIError>
[src]
&'_ self,
__arg1: Building
) -> Result<(), APIError>
Update a building.
pub async fn list_recordings_as_admin<'_>(
&'_ self
) -> Result<Vec<Meeting>, APIError>
[src]
&'_ self
) -> Result<Vec<Meeting>, APIError>
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]
&'_ self,
download_url: String,
file: PathBuf
) -> Result<(), APIError>
Download a recording to a file.
pub async fn delete_meeting_recordings<'_>(
&'_ self,
meeting_id: i64
) -> Result<(), APIError>
[src]
&'_ self,
meeting_id: i64
) -> Result<(), APIError>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,