Group
Extension

Matches 2

Mastodon-Client ( J/JJ/JJATRIA/Mastodon-Client-0.017.tar.gz, JJATRIA, 2020; MetaCPAN )
Mastodon-Client/lib/Mastodon/Listener.pm ( view source; MetaCPAN )
atus to_Notification );
use IO::Async::Loop;
use Net::Async::HTTP;
use Try::Tiny;
use JSON::MaybeXS qw( decode_json );

use Log::Any;
my $log = Log::Any->get_logger(category => 'Mastodon');

has insta
ecode_json $chunk;
                $self->emit( $current_event => $payload );
              }
              catch {
                $self->emit( error => 0,
                  "Error decoding JSON payl
item B<api_version>

The API version to use. Defaults to C<1>.

=item B<coerce_entities>

Whether JSON responses should be coerced into Mastodon::Entity objects.
Currently defaults to false (but this 
Mastodon-Client ( J/JJ/JJATRIA/Mastodon-Client-0.017.tar.gz, JJATRIA, 2020; MetaCPAN )
Mastodon-Client/lib/Mastodon/Role/UserAgent.pm ( view source; MetaCPAN )
method($method);

    my $response = $self->user_agent->request( $request );

    use JSON::MaybeXS qw( decode_json );
    use Encode qw( encode );

    # We want to be able to set it, but do not want
response;

    die $response->status_line unless $response->is_success;

    my $payload = decode_json encode('utf8', $response->decoded_content);

    # Some API calls return empty objects, which can

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.