Package 

Class AppsFlyerApiService


  • 
    public final class AppsFlyerApiService
    
                        

    High-level façade over the SDK's backend API surface (feature F-013). Each method assembles a Request for one endpoint — building the URL via EventUrlResolver/UrlProvider, encrypting or signing the payload as required, attaching headers — and turns it into a runnable Call through ApiCallFactory. This is the single place where endpoint wiring lives; the actual transport is done later by HttpClient when the returned Call is executed by a queue Task.

    Cross-cutting behavior:

    • Encryption — payloads sent to event/purchase endpoints are encrypted by AFFinalizer (features F-017 / F-066); OneLink requests are sent in clear text by design.

    • HMAC signing — OneLink create/resolve requests are signed via generateOneLinkSignature (feature F-016).

    • Security headers — checksum/device-farm headers are added for eligible events (feature F-028) by addSecurityHeadersIfNeeded.

    • HTTP cache — disabled per the HTTP_CACHE manifest flag (RD-48694), applied centrally in createCall.

    Methods that build an encrypted payload return a nullableCall: a null result means the payload could not be prepared (e.g. AFFinalizer reflection failure) and the caller must skip the send rather than dispatch an empty request.