platypush/plugins/ifttt/__init__.py
def trigger_event(self, event_name, values=None):
        """
        Send an event to your IFTTT account

        :param event_name: Name of the event
        :type event_name: str

        :param values: Optional list of values to be passed to the event. By convention IFTTT names the values as
            ``value1,value2,...``.
        :type values: list
        """

        url = self._base_url.format(event_name=event_name, ifttt_key=self.ifttt_key)
        if not values:
            values = []

        response = requests.post(url, json={'value{}'.format(i + 1): v
                                            for (i, v) in enumerate(values)})

        if not response.ok:
            raise RuntimeError("IFTTT event '{}' error: {}: {}".format(
                event_name, response.status_code, response.reason))

        Send an event to your IFTTT account

        :param event_name: Name of the event
        :type event_name: str

        :param values: Optional list of values to be passed to the event. By convention IFTTT names the values as
            ``value1,value2,...``.
        :type values: list
        
Send an event to your IFTTT account
Send an event to your IFTTT account
def trigger_event(self, event_name, values=None):
        url = self._base_url.format(event_name=event_name, ifttt_key=self.ifttt_key)
        if not values:
            values = []
        response = requests.post(url, json={'value{}'.format(i + 1): v
                                            for (i, v) in enumerate(values)})
        if not response.ok:
            raise RuntimeError("IFTTT event '{}' error: {}: {}".format(
                event_name, response.status_code, response.reason))
def trigger_event ( self , event_name , values = None ) : url = self . _base_url . format ( event_name = event_name , ifttt_key = self . ifttt_key ) if not values : values = [ ] response = requests . post ( url , json = { 'value{}' . format ( i + 1 ) : v for ( i , v ) in enumerate ( values ) } ) if not response . ok : raise RuntimeError ( "IFTTT event '{}' error: {}: {}" . format ( event_name , response . status_code , response . reason ) )
Send an event to your IFTTT account
Send an event to your IFTTT account
"""
        Send an event to your IFTTT account

        :param event_name: Name of the event
        :type event_name: str

        :param values: Optional list of values to be passed to the event. By convention IFTTT names the values as
            ``value1,value2,...``.
        :type values: list
        """
self
event_name
Name of the event
Name of the event
values
Optional list of values to be passed to the event. By convention IFTTT names the values as
``value1,value2,...``.
Optional list of values to be passed to the event . By convention IFTTT names the values as ` ` value1 value2 ... ` ` .