-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from Chloe-Woahie/dev-main
v0.14.0
- Loading branch information
Showing
10 changed files
with
487 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
use roboat::ClientBuilder; | ||
|
||
use clap::Parser; | ||
|
||
#[derive(Parser, Debug)] | ||
struct Args { | ||
#[arg(long, short)] | ||
roblosecurity: String, | ||
} | ||
|
||
#[tokio::main] | ||
async fn main() -> Result<(), Box<dyn std::error::Error>> { | ||
let args = Args::parse(); | ||
|
||
let collectible_item_id = "61f2e366-9fe6-4562-8ce3-47334083372a".to_owned(); | ||
|
||
let client = ClientBuilder::new() | ||
.roblosecurity(args.roblosecurity) | ||
.build(); | ||
|
||
let collectible_product_id = client.collectible_product_id(collectible_item_id).await?; | ||
|
||
println!("Collectible Product ID: {}", collectible_product_id); | ||
|
||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
use roboat::ClientBuilder; | ||
|
||
use clap::Parser; | ||
|
||
#[derive(Parser, Debug)] | ||
struct Args { | ||
#[arg(long, short)] | ||
roblosecurity: String, | ||
} | ||
|
||
#[tokio::main] | ||
async fn main() -> Result<(), Box<dyn std::error::Error>> { | ||
let args = Args::parse(); | ||
|
||
let collectible_item_id_1 = "a4b5cb79-5218-4ca1-93fa-1e3436f595ef".to_owned(); | ||
let collectible_item_id_2 = "61f2e366-9fe6-4562-8ce3-47334083372a".to_owned(); | ||
|
||
let items = vec![collectible_item_id_1, collectible_item_id_2]; | ||
|
||
let client = ClientBuilder::new() | ||
.roblosecurity(args.roblosecurity) | ||
.build(); | ||
|
||
let collectible_product_ids = client.collectible_product_id_bulk(items).await?; | ||
|
||
for collectible_product_id in collectible_product_ids { | ||
println!("Collectible Product ID: {}", collectible_product_id); | ||
} | ||
|
||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
use roboat::ClientBuilder; | ||
|
||
use clap::Parser; | ||
|
||
#[derive(Parser, Debug)] | ||
struct Args { | ||
#[arg(long, short)] | ||
roblosecurity: String, | ||
} | ||
|
||
#[tokio::main] | ||
async fn main() -> Result<(), Box<dyn std::error::Error>> { | ||
let args = Args::parse(); | ||
|
||
let collectible_item_id_1 = "a4b5cb79-5218-4ca1-93fa-1e3436f595ef".to_owned(); | ||
let collectible_item_id_2 = "61f2e366-9fe6-4562-8ce3-47334083372a".to_owned(); | ||
|
||
let items = vec![collectible_item_id_1, collectible_item_id_2]; | ||
|
||
let client = ClientBuilder::new() | ||
.roblosecurity(args.roblosecurity) | ||
.build(); | ||
|
||
let details = client.non_tradable_limited_details(items).await?; | ||
|
||
dbg!(details); | ||
|
||
Ok(()) | ||
} |
Oops, something went wrong.