mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-11-01 20:07:48 +00:00
334bdb88a0
Tweet65 is sample application for triggering an IFTTT maker webhook. If ~450 chars are not enough for the URL then either the IP65 output_buffer needs to be increased or url_parse needs to be modified to use a different buffer. E.g. when called from url_download then the url_download_buffer could be temporarily used to hold the selector.
19 lines
503 B
C
19 lines
503 B
C
#ifndef _IFTTT_H_
|
|
#define _IFTTT_H_
|
|
|
|
#include <stdbool.h>
|
|
|
|
// Trigger IFTTT maker event via webhook
|
|
//
|
|
// Inputs: key: Webhook key to use
|
|
// event: Maker event to trigger
|
|
// val1: Webhook parameter 'value1'
|
|
// val2: Webhook parameter 'value2'
|
|
// val3: Webhook parameter 'value3'
|
|
// Output: Webhook HTTP status code, -1 on error
|
|
//
|
|
int ifttt_trigger(const char* key, const char* event,
|
|
const char* val1, const char* val2, const char* val3);
|
|
|
|
#endif
|