Files
hakorune/private_test/test_n8n_webhook.nyash
Moe Charm 4b984d937b refactor: MIR builder - extract expressions module (Phase 3-5)
- Moved all expression-related functions to expressions.rs (621 lines)
- Includes: build_expression, build_literal, binary/unary ops
- Added missing functions for build_expression completeness:
  - build_assignment, build_field_assignment
  - build_new_expression, build_await_expression
- expressions.rs now contains 16 functions total
- Build verified successfully
2025-08-25 18:15:23 +09:00

22 lines
698 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// n8n Webhook連携テスト
static box Main {
main() {
// NetBoxプラグインでHTTPリクエスト
local net = new NetBox()
// n8nのWebhook URLに送信
local webhookUrl = "https://webhook.n8n.io/test"
local data = new MapBox()
data.set("message", "Hello from Nyash!")
data.set("timestamp", new TimeBox().now())
print("Sending webhook to n8n...")
local response = net.post(webhookUrl, data.toJsonBox())
if response.isOk() {
print("Success! Response: " + response.getValue())
} else {
print("Error: " + response.getError())
}
}
}