Skip to content

How to submit posts that include labels? #242

Discussion options

You must be logged in to vote

Hi and welcome to the community! The SDK implements the whooooole lexicon! But, I provided only the most common high-level methods for users that don't want to care about atproto details. Like send_post(text). But labeling is not for all (IMO). It would help if you learned about the advanced usage that i detailed here: https://github.com/MarshalX/atproto#advanced-usage

But for the first time, I wrote the code for you xd. feel free to use it to solve your needs

def send_post_with_labels(client, text, labels):
    return client.com.atproto.repo.create_record(
        models.ComAtprotoRepoCreateRecord.Data(
            repo=client.me.did,
            collection=ids.AppBskyFeedPost,
            

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@grantmcconnaughey
Comment options

Answer selected by grantmcconnaughey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #241 on January 13, 2024 20:30.