2017 © Pedro Peláez
 

flarum-extension flarum-http-hooks

Call some external APIs when things happen in your Flarum forum.

image

antriver/flarum-http-hooks

Call some external APIs when things happen in your Flarum forum.

  • Tuesday, March 20, 2018
  • by antriver
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 30 % Grown

The README.md

A Flarum extension that makes POST requests to URLs you specify when certain events happen., (*1)

Supported Events

Only the following events are currently supported. Feel free to make a pull request to add more. * PostWasPosted, (*2)

Installation

composer require antriver/flarum-http-hooks

Configuration

There is no UI for specifying the URLs. Instead you must add an entry to your database containing a JSON string., (*3)

Example configuration:, (*4)

{"PostWasPosted":["http://www.example.com/someplace", "https://www.example.org/otherplace"]}

Makes those 2 URLs receive a POST request when Flarum's PostWasPosted event fires., (*5)

To add this to you settings table:, (*6)

INSERT INTO `settings` (`key`, `value`)
VALUES
    ('flarum-http-hooks.urls', '{\"PostWasPosted\":[\"http://www.example.com/someplace\", \"https://www.example.org/otherplace\"]}');

The Versions

20/03 2018

dev-master

9999999-dev

Call some external APIs when things happen in your Flarum forum.

  Sources   Download

The Requires

 

20/03 2018

0.0.3

0.0.3.0

Call some external APIs when things happen in your Flarum forum.

  Sources   Download

The Requires

 

20/03 2018

0.0.2

0.0.2.0

Call some external APIs when things happen in your Flarum forum.

  Sources   Download

The Requires

 

19/03 2018

0.0.1

0.0.1.0

Call some external APIs when things happen in your Flarum forum.

  Sources   Download

The Requires