-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Extract vocab into it's own crate * Emit trait for records * Strongly typed getRecord and createRecord * Make URL params work
- Loading branch information
1 parent
23990a7
commit 8309315
Showing
34 changed files
with
423 additions
and
147 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 was deleted.
Oops, something went wrong.
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,22 @@ | ||
use triphosphate::lex::app::bsky::feed::Post; | ||
use triphosphate_vocab::{AtIdentifier, StringFormat}; | ||
|
||
#[tokio::main(flavor = "current_thread")] | ||
async fn main() -> anyhow::Result<()> { | ||
let mut client = triphosphate::client::Client::new()?; | ||
|
||
let handle = std::env::var("ATP_USERNAME").unwrap(); | ||
let password = std::env::var("ATP_PASSWORD").unwrap(); | ||
|
||
client.login(&handle, &password).await?; | ||
|
||
let handle = AtIdentifier::from_str("triphosphate-tests.bsky.social")?; | ||
|
||
let p = client | ||
.get_record::<Post>(handle, "3k5fdh2qmie2m".to_owned()) | ||
.await?; | ||
|
||
dbg!(p); | ||
|
||
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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.