@@ -317,13 +317,13 @@ paths:
317317 )
318318
319319 // Call the API
320- val response = client.customGet[JObject](
321- path = "test/minimal"
320+ val response = Await.result(
321+ client.customGet[JObject](
322+ path = "test/minimal"
323+ ),
324+ Duration(100, "sec")
322325 )
323-
324326 // >LOG
325- // Use the response
326- val value = Await.result(response, Duration(100, "sec"))
327327 - lang : swift
328328 label : Swift
329329 source : >
@@ -546,13 +546,13 @@ paths:
546546 )
547547
548548 // Call the API
549- val response = client.customPost[JObject](
550- path = "test/minimal"
549+ val response = Await.result(
550+ client.customPost[JObject](
551+ path = "test/minimal"
552+ ),
553+ Duration(100, "sec")
551554 )
552-
553555 // >LOG
554- // Use the response
555- val value = Await.result(response, Duration(100, "sec"))
556556 - lang : swift
557557 label : Swift
558558 source : >
@@ -775,13 +775,13 @@ paths:
775775 )
776776
777777 // Call the API
778- val response = client.customPut[JObject](
779- path = "test/minimal"
778+ val response = Await.result(
779+ client.customPut[JObject](
780+ path = "test/minimal"
781+ ),
782+ Duration(100, "sec")
780783 )
781-
782784 // >LOG
783- // Use the response
784- val value = Await.result(response, Duration(100, "sec"))
785785 - lang : swift
786786 label : Swift
787787 source : >
@@ -1000,13 +1000,13 @@ paths:
10001000 )
10011001
10021002 // Call the API
1003- val response = client.customDelete[JObject](
1004- path = "test/minimal"
1003+ val response = Await.result(
1004+ client.customDelete[JObject](
1005+ path = "test/minimal"
1006+ ),
1007+ Duration(100, "sec")
10051008 )
1006-
10071009 // >LOG
1008- // Use the response
1009- val value = Await.result(response, Duration(100, "sec"))
10101010 - lang : swift
10111011 label : Swift
10121012 source : >
@@ -1334,26 +1334,26 @@ paths:
13341334 )
13351335
13361336 // Call the API
1337- val response = client.addABTests(
1338- addABTestsRequest = AddABTestsRequest(
1339- endAt = "2022-12-31T00:00:00.000Z",
1340- name = "myABTest",
1341- variants = Seq(
1342- AbTestsVariant(
1343- index = "AB_TEST_1",
1344- trafficPercentage = 30
1345- ),
1346- AbTestsVariant(
1347- index = "AB_TEST_2",
1348- trafficPercentage = 50
1337+ val response = Await.result(
1338+ client.addABTests(
1339+ addABTestsRequest = AddABTestsRequest(
1340+ endAt = "2022-12-31T00:00:00.000Z",
1341+ name = "myABTest",
1342+ variants = Seq(
1343+ AbTestsVariant(
1344+ index = "AB_TEST_1",
1345+ trafficPercentage = 30
1346+ ),
1347+ AbTestsVariant(
1348+ index = "AB_TEST_2",
1349+ trafficPercentage = 50
1350+ )
13491351 )
13501352 )
1351- )
1353+ ),
1354+ Duration(100, "sec")
13521355 )
1353-
13541356 // >LOG
1355- // Use the response
1356- val value = Await.result(response, Duration(100, "sec"))
13571357 - lang : swift
13581358 label : Swift
13591359 source : >
@@ -1640,12 +1640,12 @@ paths:
16401640 )
16411641
16421642 // Call the API
1643- val response = client.listABTests(
1643+ val response = Await.result(
1644+ client.listABTests(
1645+ ),
1646+ Duration(100, "sec")
16441647 )
1645-
16461648 // >LOG
1647- // Use the response
1648- val value = Await.result(response, Duration(100, "sec"))
16491649 - lang : swift
16501650 label : Swift
16511651 source : >
@@ -1883,13 +1883,13 @@ paths:
18831883 )
18841884
18851885 // Call the API
1886- val response = client.getABTest(
1887- id = 42
1886+ val response = Await.result(
1887+ client.getABTest(
1888+ id = 42
1889+ ),
1890+ Duration(100, "sec")
18881891 )
1889-
18901892 // >LOG
1891- // Use the response
1892- val value = Await.result(response, Duration(100, "sec"))
18931893 - lang : swift
18941894 label : Swift
18951895 source : >
@@ -2152,13 +2152,13 @@ paths:
21522152 )
21532153
21542154 // Call the API
2155- val response = client.stopABTest(
2156- id = 42
2155+ val response = Await.result(
2156+ client.stopABTest(
2157+ id = 42
2158+ ),
2159+ Duration(100, "sec")
21572160 )
2158-
21592161 // >LOG
2160- // Use the response
2161- val value = Await.result(response, Duration(100, "sec"))
21622162 - lang : swift
21632163 label : Swift
21642164 source : >
@@ -2498,27 +2498,27 @@ paths:
24982498 )
24992499
25002500 // Call the API
2501- val response = client.scheduleABTest(
2502- scheduleABTestsRequest = ScheduleABTestsRequest(
2503- endAt = "2022-12-31T00:00:00.000Z",
2504- scheduledAt = "2022-11-31T00:00:00.000Z",
2505- name = "myABTest",
2506- variants = Seq(
2507- AbTestsVariant(
2508- index = "AB_TEST_1",
2509- trafficPercentage = 30
2510- ),
2511- AbTestsVariant(
2512- index = "AB_TEST_2",
2513- trafficPercentage = 50
2501+ val response = Await.result(
2502+ client.scheduleABTest(
2503+ scheduleABTestsRequest = ScheduleABTestsRequest(
2504+ endAt = "2022-12-31T00:00:00.000Z",
2505+ scheduledAt = "2022-11-31T00:00:00.000Z",
2506+ name = "myABTest",
2507+ variants = Seq(
2508+ AbTestsVariant(
2509+ index = "AB_TEST_1",
2510+ trafficPercentage = 30
2511+ ),
2512+ AbTestsVariant(
2513+ index = "AB_TEST_2",
2514+ trafficPercentage = 50
2515+ )
25142516 )
25152517 )
2516- )
2518+ ),
2519+ Duration(100, "sec")
25172520 )
2518-
25192521 // >LOG
2520- // Use the response
2521- val value = Await.result(response, Duration(100, "sec"))
25222522 - lang : swift
25232523 label : Swift
25242524 source : >
@@ -2915,35 +2915,35 @@ paths:
29152915 )
29162916
29172917 // Call the API
2918- val response = client.estimateABTest(
2919- estimateABTestRequest = EstimateABTestRequest(
2920- configuration = EstimateConfiguration(
2921- emptySearch = Some(
2922- EmptySearch(
2923- exclude = Some(true)
2918+ val response = Await.result(
2919+ client.estimateABTest(
2920+ estimateABTestRequest = EstimateABTestRequest(
2921+ configuration = EstimateConfiguration(
2922+ emptySearch = Some(
2923+ EmptySearch(
2924+ exclude = Some(true)
2925+ )
2926+ ),
2927+ minimumDetectableEffect = MinimumDetectableEffect(
2928+ size = 0.03,
2929+ metric = EffectMetric.withName("conversionRate")
29242930 )
29252931 ),
2926- minimumDetectableEffect = MinimumDetectableEffect(
2927- size = 0.03,
2928- metric = EffectMetric.withName("conversionRate")
2929- )
2930- ),
2931- variants = Seq(
2932- AbTestsVariant(
2933- index = "AB_TEST_1",
2934- trafficPercentage = 50
2935- ),
2936- AbTestsVariant(
2937- index = "AB_TEST_2",
2938- trafficPercentage = 50
2932+ variants = Seq(
2933+ AbTestsVariant(
2934+ index = "AB_TEST_1",
2935+ trafficPercentage = 50
2936+ ),
2937+ AbTestsVariant(
2938+ index = "AB_TEST_2",
2939+ trafficPercentage = 50
2940+ )
29392941 )
29402942 )
2941- )
2943+ ),
2944+ Duration(100, "sec")
29422945 )
2943-
29442946 // >LOG
2945- // Use the response
2946- val value = Await.result(response, Duration(100, "sec"))
29472947 - lang : swift
29482948 label : Swift
29492949 source : >
0 commit comments