Bluesky
view release on metacpan or search on metacpan
lib/Bluesky.pod view on Meta::CPAN
=over
=item C<uri> - required
The AT-URI of the post.
=item C<cid>
If undefined, the post is fetched to gather this for you.
=back
On success, a record is returned.
=head2 C<deleteLike( ... )>
$bsky->deleteLike( 'at://did:plc:pwqewimhd3rxc4hg6ztwrcyj/app.bsky.feed.post/3lcdwvquo7y25' );
$bsky->deleteLike( 'at://did:plc:totallymadeupgarbagehere/app.bsky.feed.like/randomexample' );
Remove a like record.
Expected parameters include:
=over
=item C<uri> - required
The AT-URI of the post or the like record itself.
=back
On success, commit info is returned.
=head2 C<repost( ... )>
$bsky->repost( 'at://did:plc:pwqewimhd3rxc4hg6ztwrcyj/app.bsky.feed.post/3lcdwvquo7y25' );
Repost a post.
Expected parameters include:
=over
=item C<uri> - required
The AT-URI of the post.
=item C<cid>
If undefined, the post is fetched to gather this for you.
=back
=head2 C<deleteRepost( ... )>
$bsky->deleteRepost( 'at://did:plc:pwqewimhd3rxc4hg6ztwrcyj/app.bsky.feed.repost/3lcdwvquo7y25' );
Remove a repost record.
=head2 C<uploadBlob( ... )>
$bsky->uploadBlob( $data, mime_type => 'image/png' );
Upload a blob (file/data) to the PDS. This is a wrapper around C<uploadFile>.
=head1 Social Graph
Methods documented in this section deal with relationships between the authorized user and other members of the social
network.
=head2 C<block( ... )>
$bsky->block( 'sankorobinson.com' );
Blocks a user.
Expected parameters include:
=over
=item C<identifier> - required
Handle or DID of the person you'd like to block.
=back
=head2 C<getBlocks( ... )>
$bsky->getBlocks( );
Enumerates which accounts the requesting account is currently blocking.
Requires auth.
Expected parameters include:
=over
=item C<uri>
AT-URI of the subject (eg, a post record).
=item C<limit>
Integer.
Default: 50, Minimum: 1, Maximum: 100.
=item C<cursor>
=back
Returns a list of actor profile views on success.
=head2 C<deleteBlock( ... )>
$bsky->deleteBlock( 'at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.graph.block/3l6oveex3ii2l' );
Unblocks a user by removing the block record.
=head2 C<follow( ... )>
$bsky->follow( 'sankorobinson.com' );
( run in 1.640 second using v1.01-cache-2.11-cpan-b16cb0d3907 )