Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| indigo_2025.2_documentation:plugin_guide [2026/05/04 19:07] – [The Request] davel17 | indigo_2025.2_documentation:plugin_guide [2026/05/04 23:49] (current) – [Plugin] davel17 | ||
|---|---|---|---|
| Line 1661: | Line 1661: | ||
| some_other_value = action.props[" | some_other_value = action.props[" | ||
| | | ||
| - | | + | |
| - | | + | reply = indigo.Dict() |
| + | reply[" | ||
| + | | ||
| return some_result | return some_result | ||
| </ | </ | ||
| Line 1670: | Line 1672: | ||
| < | < | ||
| - | MY_API_KEY = abcd1234efgh | + | import httpx |
| + | |||
| + | MY_API_KEY = "abcd1234efgh" | ||
| MY_REFLECTOR = " | MY_REFLECTOR = " | ||
| PLUGIN_ID = " | PLUGIN_ID = " | ||
| ACTION_ID = " | ACTION_ID = " | ||
| - | # The payload must be valid JSON. The API does not support binary encoding and payloads should | + | # The payload must be valid JSON. The API does not support binary encoding and payloads should |
| payload = { | payload = { | ||
| - | " | + | " |
| - | " | + | " |
| - | "someDict": | + | "field3": |
| } | } | ||
| my_url = " | my_url = " | ||
| + | response = httpx.get(my_url, | ||
| + | |||
| + | print(f" | ||
| + | print(f" | ||
| </ | </ | ||