Files
purchases-ios/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/macOS-testPostReceiptWithSubscriberAttributesPassesErrorIfStatusCodeIsNotSuccess.1.json
T
Toni RicoandRevenueCat Git Bot fe181bd5e9 Add kochava integration (#4274)
* 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>
2024-09-25 19:59:36 +02:00

47 lines
1.3 KiB
JSON

{
"headers" : {
"Authorization" : "Bearer the api key",
"content-type" : "application/json",
"X-Client-Build-Version" : "12345",
"X-Client-Bundle-ID" : "com.apple.dt.xctest.tool",
"X-Client-Version" : "17.0.0",
"X-Is-Sandbox" : "false",
"X-Observer-Mode-Enabled" : "false",
"X-Platform" : "iOS",
"X-Platform-Device" : "arm64",
"X-Platform-Flavor" : "Unity",
"X-Platform-Flavor-Version" : "2.3.3",
"X-Platform-Version" : "Version 17.0.0 (Build 21A342)",
"X-Preferred-Locales" : "en_US",
"X-Retry-Count" : "0",
"X-Storefront" : "USA",
"X-StoreKit-Version" : "2",
"X-StoreKit2-Enabled" : "true",
"X-Version" : "4.0.0"
},
"request" : {
"body" : {
"app_user_id" : "abc123",
"attributes" : {
"$attConsentStatus" : {
"updated_at_ms" : 1678307200000,
"value" : "authorized"
},
"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"
}
}