Skip to content

v4.2.0

Choose a tag to compare

@justhyped justhyped released this 28 Oct 15:15
· 3 commits to master since this release
f41b752

Minor release, no API changes for callers.

go get github.com/Hyper-Solutions/hyper-sdk-go/v4@v4.2.0

New

  • Kasada GenerateDV: builds the x-kpsdk-dv header the Kasada iOS SDK (x-kpsdk-v i-2.x) sends, from the iOS version, the model identifier (utsname.machine, e.g. iPhone13,2), the app's bundle id and its version. The bundle id and version are the same values GenerateUserAgent takes, so one set of inputs gives a matching user-agent and dv. Local, no API call.
  • KasadaPayloadInput.Dv: pass the same x-kpsdk-dv value you send to the site, and the payload is generated on a real iPhone with that model's screen and iOS version. Optional and iOS app flow only; left out of the request when empty.
userAgent := kasada.GenerateUserAgent("18.0.1", "com.example.app", "9.15.0")
dv := kasada.GenerateDV("18.0.1", "iPhone13,2", "com.example.app", "9.15.0")

Docs: https://docs.hypersolutions.co/k4sada/mobile-user-agent