Bluesky
view release on metacpan or search on metacpan
eg/firehose.pl
eg/graph.pl
eg/hi.pl
eg/media.pl
eg/videoupload.pl
lib/Bluesky.pm
lib/Bluesky.pod
t/000_compile.t
t/001_mock.t
t/002_chat.t
t/003_endpoints.t
t/004_full.t
t/005_session.t
t/003_endpoints.t view on Meta::CPAN
use v5.40;
use Test2::V0;
use blib;
use Bluesky;
# Mock At: canned responses for every endpoint exercised below.
my ( $last_get, $last_post );
my $mock_at = mock 'At' => (
override => [
did => sub {'did:plc:mock-user'},
host => sub {'https://bsky.social'},
get => sub ( $self, $method, $params = {} ) {
$last_get = { method => $method, params => $params };
if ( $method eq 'com.atproto.server.getServiceAuth' ) {
return { token => 'mock-service-token' };
}
( run in 2.913 seconds using v1.01-cache-2.11-cpan-99fa8243a42 )