You need some help?

You can't do your integration alone?

Our team can help you! Price on estimate, depending of your systems.

Write us!

Endpoint

Endpoint — Where?


When you want to send a notification you need to make a POST Http request to this url:

Warning, be careful to not send any Authorization Token, if so HookNotifier server will return you a 403 Forbidden error.

Endpoint — Parameters


Business — Object

Body

13:37 — Category

chevron_right

Query

Obviously, you need to send some parameters to the above url, each one will be added as a GET parameter next to the url — expect datas. eg: business=hooknotifier

> business : String (required)
expand_less
This is the prefix of your notification, it'll replace Business value in the notification example above.
> object : String (required)
expand_less
The title of your notification, it'll replace Object value in the notification example above.
> body : Text (required)
expand_less
The message of your notification, it can be a long text, it'll replace Body value in the notification example above.
> category : Text (optional) Default: general
expand_less
Classification of your notification, this will allow you to sort or disable the notification if needed.
> color : Hex number (optional) Default: #FFC107
expand_less
The color of your notification icon.

Body

One another thing can be added in the body of your query:

> data : JSON Object (optional)
expand_less
This data object is displayed when you open the notification inside HookNotifier. It can contain any data you need to save.

Endpoint — Online tester / composer


Here is the final endpoint of this request:

You'll receive this notification:

Fill business — Fill object

Fill body

13:37 — General

chevron_right

Wordpress

Wordpress — Plugin for Wordpress / Woocommerce


This is the first way to use HookNotifier without writing any line of code. You've to download the extension from the official wordpress plugin repository. This plugin is entirely free. Click here:

Download Wordpress official plugin

How to use it

1- Install plugin from extension repository
expand_less

- Click on extension menu

wordpress menu

- Search for HookNotifier

wordpress search extension

- Install & activate the extension

wordpress install activate extension
2- Configure the plugin with your identifiers
expand_less

- Click on the new menu HookNotifier

wordpress custom post hooknotifier

- Fill your identifiers

wordpress identifier
wordpress key

- Choose your business name

wordpress business name
3- Activate one or more hooks and that's it!
expand_less

- Choose one or more notification and activate them

wordpress activate hook

- You can choose to leave default labels or to change them

wordpress notification

- That's it :)

Note that Woocommerce hooks will appear only if the woocommerce extension is active.

If you need more notifications for Wordpress, Woocommerce or another extensions, feel free to contact me!

Wordpress — Custom integration


        
  $id = 1234567890123456789; // Your identifier
  $key = 'my-key'; // Your key

  $business = 'HookNotifier'; // The prefix of the notification
  $object = 'New user'; // The object of the notification
  $body = 'User ...@gmail.com just register in your application'; // The body of the notification
  $category = 'Register'; // The category of the notification

  $color = '#0097a7'; // The color of the notification

  $url = "https://hooknotifier.com/$id/$key?business=$business&object=$object&body=$body&category=$category&color=$color";

  // $data is my user object in this case
  $args = [
      'body' => ['data' => $data]
  ];

  wp_remote_post( $url, $args );
      

This is the in-app result

HookNotifier — New user

User ...gmail.com just register in your application.

13:37 — Register

chevron_right

Zapier & IFTTT

Zapier


If you're using Zapier, you just have to add HookNotifier to one or more zaps.

Join Zapier.com

How to use it

1- Edit or Create a Zap
expand_less
zapier new zap
2- Add HookNotifier App to it
expand_less
zapier add hooknotifier
3- Choose an account
expand_less

This is a restriction from Zapier, just tell a name and tap continue

zapier add hooknotifier
4- Fill all fields to customize your notification
expand_less
zapier config
5- Test your notification and activate your zap
expand_less
zapier test

IFTTT


Hey! I really want to make an IFTTT integration.
However, it's really expensive for developers. At the moment, I can't, but be sure that this is the first thing I'll do when HookNotifier brings in enough money :)

If you want to support HookNotifier and be involved in it, you can offer me a coffee!

Buy Me A Coffee

Node & Javascript environments

Node & Javascript — Axios


        
  axios({
    method: 'post',
    url: 'https://hooknotifier.com/your-id/your-key',
    params: {
      business: 'AsyncRoleplay.com',
      object: 'New gaming table',
      body: 'User ...@gmail.com create a new table called D&D5',
      color: '#F900A7',
    },
  });
      

This is the in-app result

AsyncRoleplay.com — New gaming table

User ...@gmail.com create a new table called D&D5

13:37 — General

chevron_right

PHP environments

PHP — CURL


        
  $ch = curl_init("https://hooknotifier.com/your-id/your-key?business=Sandorina&object=New order&body=You have a new order! 150€ for 3 items.");

  $data = array(
      'order_id' => '1',
      'user_email' => '...@gmail.com',
      // anything you want...
  );

  $payload = json_encode(array("data" => $data));

  curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));

  curl_exec($ch);
  curl_close($ch);
      

This is the in-app result

Sandorina — New order

You have a new order! 150€ for 3 items.

13:37 — General

chevron_right