[−][src]Struct mixer_wrappers::rest::webhook_helper::WebHookHelper
Helper for webhook-related REST API endpoints.
Fields
rest: &'a REST
Reference to constructing REST struct
Implementations
impl<'a> WebHookHelper<'a>
[src]
pub fn register(
&self,
events: &[&str],
url: &str,
client_secret: &str
) -> Result<(), Error>
[src]
&self,
events: &[&str],
url: &str,
client_secret: &str
) -> Result<(), Error>
Register webhooks.
See the documentation for more information.
Arguments
events
- list of events to receiveurl
- URL to receive the call atclient_secret
- your OAuth app's client_secret
Examples
let helper = api.webhook_helper(); let channel_id = helper.register(&["event_1", "event_2"], "http://example.com/callback", "your_client_secret").unwrap();
Auto Trait Implementations
impl<'a> !RefUnwindSafe for WebHookHelper<'a>
impl<'a> Send for WebHookHelper<'a>
impl<'a> Sync for WebHookHelper<'a>
impl<'a> Unpin for WebHookHelper<'a>
impl<'a> !UnwindSafe for WebHookHelper<'a>
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> Same<T> for T
type Output = T
Should always be Self
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,