y_repeat);
use URI;
use URI::QueryParam;
use URI::Template;
use URI::wss;
use HTTP::Request;
use JSON::MaybeUTF8 qw(:v1);
use Syntax::Keyword::Try;
use File::ShareDir ();
use Log::Any qw($log);
use
//= URI->new('https://api.trello.com/1/') }
sub mime_type { shift->{mime_type} //= 'application/json' }
sub oauth {
my ($self) = @_;
$self->{oauth} //= Net::Async::OAuth::Client->new(
)->child('share/endpoints.json');
$path = Path::Tiny::path(
File::ShareDir::dist_file(
'Net-Async-Trello',
'endpoints.json'
)
)
7'; # VERSION
use parent qw(Net::Async::Trello::Generated::Board);
use JSON::MaybeXS;
use Log::Any qw($log);
my $json = JSON::MaybeXS->new;
=head2 subscribe
=cut
sub subscribe {
my ($self, %arg
->websocket->then(sub {
my $req_id = $trello->next_request_id;
my $txt = $json->encode({
type => "subscribe",
modelType => "B
(IO::Async::Notifier);
use Syntax::Keyword::Try;
use JSON::MaybeXS;
use Net::Async::WebSocket::Client;
use Log::Any qw($log);
my $json = JSON::MaybeXS->new;
sub configure {
my ($self, %args) = @
my ($conn) = @_;
$log->tracef("Connected");
# $conn->send_frame($json->encode({"type"=> "ping","reqid"=>0}));
Future->done($conn);
});
};
}
my
->{update_channel}{$id} //= $self->ryu->source;
$conn->send_frame(
buffer => $json->encode({
idModel => $id,
invitationTokens => [],