emailler/apps/ifttt.h
Oliver Schmidt 334bdb88a0 Added Tweet65.
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.
2018-11-01 14:21:20 +01:00

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