Expand description
Pure helpers: longpoll category derivation, callback parsing, return-URL builder. No HTTP or SDK state.
Functionsยง
- add_
return_ to_ url - Append
?return=<metadata>(or merge as&return=) to a callback URL. - derive_
longpoll_ category - Compute the 9-char longpoll category locally from
(api_token, radio_id). - handle_
callback - Parse raw callback POST bytes into a typed
CallbackEvent. - parse_
callback - Parse an already-deserialized JSON callback body into a typed
CallbackEvent.