A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.rs/octocrab/latest/octocrab/current/struct.CurrentAuthHandler.html below:

CurrentAuthHandler in octocrab::current - Rust

Struct CurrentAuthHandlerSource
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.

Source§ Source

Fetches information about the current user.

Source

Fetches 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

Source

Lists repositories that the current authenticated user.

octocrab::instance()
    .current()
    .list_repos_for_authenticated_user()
    .send()
    .await?;

See the GitHub API documentation

Source

List gists for the current authenticated user.

§Examples
  1. The following snippet retrieves the most recent gist:
octocrab::instance()
    .current()
    .list_gists_for_authenticated_user()
    .per_page(1)
    .page(1)
    .send()
    .await?;
  1. This retrieves the first 100 gists, which is maximum number that can be fetched in a single page:
octocrab::instance()
    .current()
    .list_gists_for_authenticated_user()
    .per_page(100)
    .page(1)
    .send()
    .await?;

See the GitHub API documentation

Source

List gists that were starred by the authenticated user.

Source

Lists 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

Source

Lists 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