Skip to main content

Crate smbcloud_ascapi_core

Crate smbcloud_ascapi_core 

Source
Expand description

Shared transport for the App Store Connect API.

Everything the domain crates need and nothing they disagree about: the ES256 JWT auth, the HTTP client that caches those tokens, the JSON:API envelope generics, and the error type.

The domain crates (smbcloud-ascapi-aso for App Metadata, smbcloud-ascapi-signing for certificates) add their resources as extension traits on Client, since Rust only allows inherent impls in the crate that defines a type. Import a domain crate’s prelude to call its methods on a client.

Re-exports§

pub use auth::ApiKey;
pub use client::Client;
pub use error::Error;
pub use error::Result;
pub use token::IntoTokenSource;
pub use token::MintedToken;
pub use token::StaticToken;
pub use token::TokenSource;

Modules§

auth
client
error
jsonapi
Shared JSON:API envelope types used across every App Metadata resource. Resource-specific attribute structs live in their own modules (app, app_store_version, …) and plug into these generics.
token
The bearer-token abstraction the Client mints from.