This section as Markdown: View Download

Code Examples

Complete end-to-end examples in all 9 supported languages.

Overview

Each example below demonstrates the full Wiro workflow: authenticate, run a model, poll for task completion, and retrieve the result. Choose your preferred language from the tabs.

  • curl: Shell scripting with bash
  • Python: Using the requests library
  • Node.js: Using axios
  • PHP: Using cURL functions
  • C#: Using HttpClient (.NET 6+)
  • Swift: Using async/await URLSession
  • Dart: Using the http package
  • Kotlin: Using java.net.http
  • Go: Using the standard library net/http

Full Examples

Select a language tab to see the complete example. All examples perform the same steps:

  1. Set up authentication headers
  2. Run a model (POST /Run/{owner-slug}/{model-slug})
  3. Poll the task status (POST /Task/Detail)
  4. Print the final output