You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Update the SDK READMEs (nodejs, python, ruby, php, java) so the "API usage" section leads with the context-based entry point instead of the legacy positional one.
- The "process request" step now recommends `processRequestFromContext` / `process_request_from_context`, which auto-extracts host / cookies / query / referer from the framework request object and also constructs `event_source_url`. It returns the same cookies-to-set list as the old API.
- The legacy `processRequest` / `process_request` form is now shown under a **Deprecated** note (it does not construct `event_source_url`), with its full example retained for reference.
- Each step links to the existing `## Framework support` section for what request object to pass per framework (and the adjustments needed for unsupported frameworks).
- Added `event_source_url` / `referrer_url` getters to the API-usage send payload, and added `referrer_url` to the `## URL support` payload example (it previously only showed `event_source_url`).
- Fixed long-standing typos in the example payload blocks while touching them: malformed `event_name` key (missing closing quote), `event_tme` -> `event_time`, and `//` -> `#` comment markers in the Python and Ruby pseudo-payloads.
Per-language method and getter names follow each SDK convention (camelCase for nodejs/php/java, snake_case for python/ruby) and were verified against the SDK source. Docs-only change; no code or runtime behavior is affected.
___
Differential Revision: D107900758
fbshipit-source-id: 240c5cc67f6a7aefedfbf26540a0a19fc5ae13a3
0 commit comments