[−][src]Function dishub::ops::github::poll_repo_events_new
pub fn poll_repo_events_new(
slug: &str,
tokens: &AppTokens
) -> Result<(String, String, u64), Error>
Get the events for a repository 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_repo_events_update()
afterwards.
Examples
let (response, etag, next) = poll_repo_events_new("nabijaczleweli/dishub", &tokens).unwrap();