Question: How to use the app-password credentials
Hi,
Thanks for the superslim crates! I'm getting errors trying to send GetActorLikes xrpcs requests and cant figure out what I'm doing wrong. Sorry if this is the wrong forum.
Here the snippet that doesn't work for me
// --- SETUP
let base = url::Url::parse("https://public.api.bsky.app")?;
let session = jacquard::client::credential_session::CredentialSession::new(
Arc::new(MemorySessionStore::default()),
Arc::new(BasicClient::default()),
);
session
.login(
CowStr::new_static("did:plc:***********"),
CowStr::new_static("********"),
None,
None,
None,
)
.await?;
let agent = Agent::from(session);
// Get profile works fine
let request = GetProfiles::new()
.actors(vec![AtIdentifier::Did(did.parse()?)])
.build();
let response = agent.xrpc(base.clone()).send(&request).await?;
info!("{:#?}", response.parse());
// This gives error
let request = GetActorLikes::new()
.actor(AtIdentifier::Did(did.parse()?))
.limit(1)
.build();
let response = agent.xrpc(base).send(&request).await?;I get the following error: Xrpc( Unknown( Object( Object( { "error": String( String( "InvalidRequest", ), ), "message": String( String( "Profile not found", ), ), }, ), ), ), ), )
No activity yet.