type: meya.component.api
class: ApiComponent
path: /meya/component/element/api.py
signature: -
Useful component abstraction for making web API calls
Fields
field | signature | required | type | default | description |
---|---|---|---|---|---|
spec | ○ | ○ | Spec | null | Override the original spec for this element |
context | ○ | ○ | dict | {} | Send context data with this component's event |
sensitive | ○ | ○ | bool | true | |
triggers | ○ | ○ | list | [] | Activate these dynamic triggers when the component runs |
Examples
Basic
triggers:
- keyword: meya.component.api
steps:
- type: meya.component.api
Full
triggers:
- keyword: meya.component.api
steps:
- type: meya.component.api
spec:
type: STRING
data:
STRING: ANY
timeout: 123
trigger_when: ANY
context:
STRING: ANY
sensitive: false
triggers:
- type: STRING
data:
STRING: ANY
timeout: 123
trigger_when: ANY