Group
Extension

Matches 2

WebService-Discord-Webhook ( G/GR/GREGK/WebService-Discord-Webhook-1.10.tar.gz, GREGK, 2020; MetaCPAN )
WebService-Discord-Webhook/README.pod ( view source; MetaCPAN )
 either a scalar (assumed to be the JSON string
contents of the Slack webhook), or a hash containing a Slack webhook
structure (will be encoded to JSON using C<JSON::PP>).

More information about the 
s a Github-compatible Webhook.

The function should be passed a hash containing two keys: C<json> as the JSON
string of a Github webhook, and C<event> as the string containing the name of
the Github e
WebService-Discord-Webhook ( G/GR/GREGK/WebService-Discord-Webhook-1.10.tar.gz, GREGK, 2020; MetaCPAN )
WebService-Discord-Webhook/lib/WebService/Discord/Webhook.pm ( view source; MetaCPAN )
rnings;

# Module for interacting with the REST service
use HTTP::Tiny;

# JSON decode
use JSON::PP qw(encode_json decode_json);

# Base64 encode for avatar images
use MIME::Base64 qw(encode_base64);
res after a webhook request
sub _parse_response {
  my $self = shift;
  my $json = shift;

  my $response = decode_json($json);

  # sanity
  if ( $self->{id} ne $response->{id} ) {
    croak "SERVICE
quest(
    'PATCH', $url,
    {
      headers => { 'Content-Type' => 'application/json' },
      content => encode_json( \%request )
    }
  );
  if ( !$response->{success} ) {

    # non-200 code ret

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