Skip to content

papix/WebService-Reactio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

NAME

WebService::Reactio - API client for Reactio

SYNOPSIS

use WebService::Reactio;

my $client = WebService::Reactio->new(
    api_key      => '__API_KEY__',
    organization => '__ORGANIZATION__',
);

my $incidents = $client->incidents;

DESCRIPTION

WebService::Reactio is API client for Reactio (https://reactio.jp/).

METHODS

new(%params)

Create instance of WebService::Reactio.

%params must have following parameter:

  • api_key

    API key of Reactio. You can get API key on project setting page.

  • organization

    Organization ID of Reactio. This is the same as the subdomain in your organization of Reactio. If you can use Reactio in the subdomain called https://your-organization.reactio.jp/, your Organization ID is your-organization.

%params optional parameters are:

  • domain

    Domain of Reactio. The default is reactio.jp.

create_incident($name, [\%options])

Create new incident.

You must have following parameter:

  • $name

    Incident name.

%options is optional parameters. Please refer API official guide if you want to get details.

notify_incident($incident_id, $notification_text, [\%options])

Send notificate to specified incident.

You must have following parameter:

  • $incident_id

    Incident ID.

  • $notification_text

    Notification text.

%options is optional parameters. Please refer API official guide if you want to get details.

incident($incident_id)

Get incident details.

You must have following parameter:

  • $incident_id

    Incident ID.

incidents([\%options])

Get incident list.

%options is optional parameters. Please refer API official guide if you want to get details.

send_message($incident_id, $text)

Send message to specified incident's timeline.

You must have following parameter:

  • $incident_id

    Incident ID.

  • $text

    Timeline message.

LICENSE

Copyright (C) papix.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Reactio API Official Guide https://reactio.jp/development/api

AUTHOR

papix mail@papix.net