pub struct CurrentAuthHandler<'octo> { }
Expand description
Handler for the current authenication API. Note All of the methods provided below require at least some authenication such as personal token in order to be used.
Created with Octocrab::current
.
Fetches information about the current user.
SourceFetches information about the currently authenticated app.
let app = octocrab
.current()
.app()
.await?;
println!("{}", app.name);
Source
List repositories starred by current authenticated user.
octocrab::instance()
.current()
.list_repos_starred_by_authenticated_user()
.send()
.await?;
See the GitHub API documentation
SourceLists repositories that the current authenticated user.
octocrab::instance()
.current()
.list_repos_for_authenticated_user()
.send()
.await?;
See the GitHub API documentation
SourceList gists for the current authenticated user.
§Examplesoctocrab::instance()
.current()
.list_gists_for_authenticated_user()
.per_page(1)
.page(1)
.send()
.await?;
octocrab::instance()
.current()
.list_gists_for_authenticated_user()
.per_page(100)
.page(1)
.send()
.await?;
See the GitHub API documentation
SourceList gists that were starred by the authenticated user.
SourceLists installations of your GitHub App that the authenticated user has explicit permission (:read, :write, or :admin) to access.
octocrab::instance()
.current()
.list_app_installations_accessible_to_user()
.send()
.await?;
See the GitHub API documentation
SourceLists organizations that the current authenticated user is a member of.
octocrab::instance()
.current()
.list_org_memberships_for_authenticated_user()
.send()
.await?;
See the GitHub API documentation
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4