[−][src]Function dishub::ops::github::poll_user_events_new
pub fn poll_user_events_new(
uname: &str,
tokens: &AppTokens
) -> Result<(String, String, u64), Error>
Get the events for a user when you don't have an ETag (which is to say - for the first time).
The returned tuple contains:
- The raw JSON response,
- The event bundle's ETag,
- The next minimum amount of milliseconds polling the same event queue is permitted.
You should use this only once and use poll_user_events_update()
afterwards.
Examples
let (response, etag, next) = poll_user_events_new("nabijaczleweli", &tokens).unwrap();