mirror of
https://github.com/RevenueCat/purchases-ios
synced 2026-11-11 22:55:55 +05:45
* Reapply "Add `$kochavaDeviceId` attribution convenience method (#4238)" (#4265)
This reverts commit f2ce4416da.
* Add userAgent tracking for attribution networks
* Fix tests
* Add X-Platform-Device header
* Rename user agent to device version
* Use correct attribution method
* [skip ci] Generating new test snapshots (#4278)
* [skip ci] Generating new test snapshots (#4279)
* [skip ci] Generating new test snapshots (#4280)
* [skip ci] Generating new test snapshots (#4281)
* [skip ci] Generating new test snapshots (#4282)
* [skip ci] Generating new test snapshots (#4283)
* Generating new test snapshots (#4284)
* Fix ttests
---------
Co-authored-by: RevenueCat Git Bot <72824662+RCGitBot@users.noreply.github.com>
48 lines
1.4 KiB
JSON
48 lines
1.4 KiB
JSON
{
|
|
"headers" : {
|
|
"Authorization" : "Bearer the api key",
|
|
"content-type" : "application/json",
|
|
"X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881",
|
|
"X-Client-Build-Version" : "12345",
|
|
"X-Client-Bundle-ID" : "com.apple.dt.xctest.tool",
|
|
"X-Client-Version" : "17.0.0",
|
|
"X-Is-Sandbox" : "true",
|
|
"X-Observer-Mode-Enabled" : "false",
|
|
"X-Platform" : "iOS",
|
|
"X-Platform-Device" : "x86_64",
|
|
"X-Platform-Flavor" : "Unity",
|
|
"X-Platform-Flavor-Version" : "2.3.3",
|
|
"X-Platform-Version" : "Version 17.0.0 (Build 21A342)",
|
|
"X-Preferred-Locales" : "en",
|
|
"X-Retry-Count" : "0",
|
|
"X-Storefront" : "USA",
|
|
"X-StoreKit-Version" : "1",
|
|
"X-StoreKit2-Enabled" : "false",
|
|
"X-Version" : "4.0.0"
|
|
},
|
|
"request" : {
|
|
"body" : {
|
|
"app_user_id" : "abc123",
|
|
"attributes" : {
|
|
"$attConsentStatus" : {
|
|
"updated_at_ms" : 1678307200000,
|
|
"value" : "notDetermined"
|
|
},
|
|
"a key" : {
|
|
"updated_at_ms" : 1678307200000,
|
|
"value" : "a value"
|
|
},
|
|
"another key" : {
|
|
"updated_at_ms" : 1678307200000,
|
|
"value" : "another value"
|
|
}
|
|
},
|
|
"fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0",
|
|
"initiation_source" : "restore",
|
|
"is_restore" : false,
|
|
"observer_mode" : false
|
|
},
|
|
"method" : "POST",
|
|
"url" : "https://api.revenuecat.com/v1/receipts"
|
|
}
|
|
} |