LogZuno's ingestion API is plain HTTP and JSON, so any language can send events without an SDK. Each example below is the exact file our snippet tests send to the API before the docs are published.
| Language | Needs |
|---|---|
| cURL | curl 7 or later, installed on macOS and most Linux distributions |
| JavaScript | Any modern browser (fetch and top-level await in a module script), or Deno and Bun |
| Node.js | Node |
| PHP | PHP 8 with the curl and json extensions (both are in most installations) |
| Python | Python 3 |
| Ruby | Ruby 2 |
| Go | Go 1 |
| Java | Java 11 or later for `java |
| Swift | Swift 5 |
| C | A C compiler and libcurl with its headers (libcurl4-openssl-dev on Debian and Ubuntu; included on macOS) |
| Objective-C | macOS or iOS with Foundation; clang with ARC |
| Dart | The Dart SDK |
For websites, use the script tag instead: it records pageviews and clicks and batches events for you.
C#, PowerShell, R and OCaml examples aren't published yet: we only publish code we have run against the API.