iftttwebhook

package module
v0.0.0-...-dceaa68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 7 Imported by: 0

README

IFTTT WebHook

Send webhook requests to IFTTT

Installation

flogo install github.com/retgits/flogo-components/activity/iftttwebhook

Link for flogo web:

https://github.com/retgits/flogo-components/activity/iftttwebhook

Schema

Inputs and Outputs:

{
    "inputs": [
        {
            "name": "key",
            "type": "string",
            "required": true
        },
        {
            "name": "event",
            "type": "string",
            "required": true
        },
        {
            "name": "value1",
            "type": "string"
        },
        {
            "name": "value2",
            "type": "string"
        },
        {
            "name": "value3",
            "type": "string"
        }
    ],
    "outputs": [
        {
            "name": "result",
            "type": "string"
        }
    ]
}

Inputs

Input Description
key The key to connect to IFTTT (comes from the Webhooks settings). The key is the last part of the URL that is shown. For example, if the URL is https://maker.ifttt.com/use/blablabla the Key would be blablabla
event The Event Name you have used in your IFTTT recipe
value1 The first value you want to send
value2 The second value you want to send
value3 The third value you want to send

_This activity will let you trigger IFTTT WebHooks with up to three parameters (this is a limit set by IFTTT)

Ouputs

Output Description
result The HTTP status code of your request

Documentation

Overview

Package iftttwebhook provides connectivity to IFTTT using the WebHooks service from IFTTT (https://ifttt.com/maker_webhooks)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActivity

func NewActivity(metadata *activity.Metadata) activity.Activity

NewActivity will instantiate a new IFTTTActivity

Types

type IFTTTActivity

type IFTTTActivity struct {
	// contains filtered or unexported fields
}

IFTTTActivity describes the metadata of the activity as found in the activity.json file

func (*IFTTTActivity) Eval

func (a *IFTTTActivity) Eval(context activity.Context) (done bool, err error)

Eval executes the activity and sends a message to IFTTT

func (*IFTTTActivity) Metadata

func (a *IFTTTActivity) Metadata() *activity.Metadata

Metadata will return the metadata of the IFTTTActivity

type Payload

type Payload struct {
	Value1 string `json:"value1,omitempty"`
	Value2 string `json:"value2,omitempty"`
	Value3 string `json:"value3,omitempty"`
}

Payload is used to describe the payload to IFTTT with a maximum of three values (this limit is set by IFTTT)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL