dev-master
9999999-devPerform HTTP requests when Imbo events occur
MIT
The Requires
The Development Requires
1.0.0
1.0.0.0Perform HTTP requests when Imbo events occur
MIT
The Requires
The Development Requires
Wallogit.com
2017 © Pedro Peláez
Perform HTTP requests when Imbo events occur
Fire HTTP requests when Imbo events occur, (*1)
rexxars/imbo-http-hooks in your Imbo composer.json
composer install to install and set up autoloadingeventListeners, initialize the listener. Example:<?php
return [
'eventListeners' => [
'httpHooks' => [
'listener' => 'Rexxars\Imbo\HttpHookListener',
'params' => [
// Event name => URLs
'images.post' => [
'http://some.url/new-image.php',
'http://some.url/analyze-image.php'
],
'metadata.post' => [
'http://some.url/metadata-updated.php',
]
]
]
]
];
The URLs you provide to the listener will then receive a HTTP POST request every time the provided event is triggered. The POST body will contain information in the following format:, (*2)
'event' => 'images.post',
'url' => 'http://some.imbo.install/users/someuser/images',
'imageIdentifier' => 'some image identifier',
'publicKey' => 'someuser',
With that information and a Imbo client, you can easily fetch the image, metadata or do other actions based on the information received., (*3)
MIT-licensed. See LICENSE., (*4)
Perform HTTP requests when Imbo events occur
MIT
Perform HTTP requests when Imbo events occur
MIT