plainrouter-sdk is the official Ruby SDK for PlainRouter’s signed OpenAPI contract. Gem 0.1.0 targets signed API contract 0.5.0 and exposes a compact client over the generated API.
The source is in plainrouter/sdk. Review release notes before upgrading while the gem remains in the 0.x series.
Requirements
- Ruby 3.2 or newer.
- A per-Signal tracker secret for production Conversion API operations.
- Server-side code. Do not put the tracker secret in browser or distributed client code.
Install
Installplainrouter-sdk 0.1.0:
Gemfile, then run bundle install:
Create an authenticated client
Pass the Signal tracker secret when you create the client:Choose an API group
Generated models, API errors, configuration, response metadata, and every generated operation remain available under
PlainRouter::OpenAPI.
Verify Signal ingestion
duplicate: true.
Try the zero-auth sandbox
Create a client without a token for sandbox discovery:Configure another API origin or timeout
The default API base URL ishttps://plainrouter.com/api/v1 and the default timeout is 30 seconds. Override either value only for a PlainRouter-provided region or a controlled test environment: