A Rust wrapper.
cargo add ftbapiuse ftbapi::FTB;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let ftb = FTB::new()?;
let modpacks = ftb.search_modpacks("Ocean", 5).await?;
let modpack = ftb.get_modpack(modpacks.ftb_ids[0]).await?;
let version_id = modpack.versions[0].id;
let version = ftb.get_modpack_version(modpack.id, version_id).await?;
for file in version.files.iter() {
println!("{}/{}", file.install_path, file.name);
}
Ok(())
}- Feed The Beast for providing the API and the modpacks.
- serde under the MIT License, made by Erick Tryzelaar, David Tolnay, and its contributors.
- reqwest under the MIT License, made by Sean McArthur and its contributors.
- Rust under the MIT License, made by its contributors.
MIT