Crates.io | appstoreconnect |
lib.rs | appstoreconnect |
version | 0.1.11 |
source | src |
created_at | 2023-01-30 12:01:46.635025 |
updated_at | 2023-11-30 09:23:28.232147 |
description | appstoreconnect client |
homepage | |
repository | https://github.com/niuhuan/appstoreconnect-rs |
max_upload_size | |
id | 771731 |
size | 58,318 |
This repository is an AppStoreConnect
api client, allow your invoke api in Rust. The full api docs
in here.
First. You need request Issuer ID
, KeyId
and Key
in the website : https://appstoreconnect.apple.com/access/api.
Adding appstoreconnect
Run this command in your terminal to add the latest version of appstoreconnect
.
$ cargo add appstoreconnect
build and use the client
iss
: Issuer ID
kid
: KeyId
ec_der
: key.p8
base64 content
#[tokio::main]
async fn main() -> Result<()> {
// create client
let client = ClientBuilder::default()
.with_iss(env!("iss"))
.with_kid(env!("kid"))
.with_ec_der(base64::decode(env!("ec_der"))?)
.build()?;
// get find devices
let devices = client.devices(DeviceQuery {
filter_name: Some("mini".to_string()),
..Default::default()
}).await?;
Ok(())
}
More example : Create or list profile, certs, bundleIds please visit test.rs