Skip to content

Commit 0babea3

Browse files
feat(api): api update
1 parent 196b012 commit 0babea3

15 files changed

Lines changed: 242 additions & 242 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 266
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1d0fb906843e55b3d7588949981f47bd5e396d7b7f3fafd5d1a654e771560d0a.yml
3-
openapi_spec_hash: 603da045db41673bca4f25cf1dccc873
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3cb873d908d3b4b81941e932344db46ecf629f68ec79a5edd0751edc3d245470.yml
3+
openapi_spec_hash: a0b2473d40f23a530c4586a513838305
44
config_hash: 397c91e15c0024f8b5bbed9b82c2348c

tests/api_resources/engagement/test_messages.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class TestMessages:
2424
@parametrize
2525
def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None:
2626
message = client.engagement.messages.get_message_buyers(
27-
message_id="sunt",
27+
message_id="numquam",
2828
account="acct_XXXXXXXXXXXXXXX",
2929
)
3030
assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"])
@@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None:
3333
@parametrize
3434
def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None:
3535
message = client.engagement.messages.get_message_buyers(
36-
message_id="sunt",
36+
message_id="numquam",
3737
account="acct_XXXXXXXXXXXXXXX",
3838
limit=10,
3939
marker=0,
@@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) ->
4747
@parametrize
4848
def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None:
4949
response = client.engagement.messages.with_raw_response.get_message_buyers(
50-
message_id="sunt",
50+
message_id="numquam",
5151
account="acct_XXXXXXXXXXXXXXX",
5252
)
5353

@@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None:
6060
@parametrize
6161
def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None:
6262
with client.engagement.messages.with_streaming_response.get_message_buyers(
63-
message_id="sunt",
63+
message_id="numquam",
6464
account="acct_XXXXXXXXXXXXXXX",
6565
) as response:
6666
assert not response.is_closed
@@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non
7676
def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None:
7777
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"):
7878
client.engagement.messages.with_raw_response.get_message_buyers(
79-
message_id="sunt",
79+
message_id="numquam",
8080
account="",
8181
)
8282

@@ -148,7 +148,7 @@ class TestAsyncMessages:
148148
@parametrize
149149
async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None:
150150
message = await async_client.engagement.messages.get_message_buyers(
151-
message_id="sunt",
151+
message_id="numquam",
152152
account="acct_XXXXXXXXXXXXXXX",
153153
)
154154
assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"])
@@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -
157157
@parametrize
158158
async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None:
159159
message = await async_client.engagement.messages.get_message_buyers(
160-
message_id="sunt",
160+
message_id="numquam",
161161
account="acct_XXXXXXXXXXXXXXX",
162162
limit=10,
163163
marker=0,
@@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy
171171
@parametrize
172172
async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None:
173173
response = await async_client.engagement.messages.with_raw_response.get_message_buyers(
174-
message_id="sunt",
174+
message_id="numquam",
175175
account="acct_XXXXXXXXXXXXXXX",
176176
)
177177

@@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans
184184
@parametrize
185185
async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None:
186186
async with async_client.engagement.messages.with_streaming_response.get_message_buyers(
187-
message_id="sunt",
187+
message_id="numquam",
188188
account="acct_XXXXXXXXXXXXXXX",
189189
) as response:
190190
assert not response.is_closed
@@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn
200200
async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None:
201201
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"):
202202
await async_client.engagement.messages.with_raw_response.get_message_buyers(
203-
message_id="sunt",
203+
message_id="numquam",
204204
account="",
205205
)
206206

tests/api_resources/posts/test_comments.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class TestComments:
2929
@parametrize
3030
def test_method_create(self, client: OnlyFansAPI) -> None:
3131
comment = client.posts.comments.create(
32-
post_id="voluptatem",
32+
post_id="beatae",
3333
account="acct_XXXXXXXXXXXXXXX",
3434
text="This is a comment.",
3535
)
@@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None:
3939
@parametrize
4040
def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None:
4141
comment = client.posts.comments.create(
42-
post_id="voluptatem",
42+
post_id="beatae",
4343
account="acct_XXXXXXXXXXXXXXX",
4444
text="This is a comment.",
4545
answer_to=123,
@@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None:
5151
@parametrize
5252
def test_raw_response_create(self, client: OnlyFansAPI) -> None:
5353
response = client.posts.comments.with_raw_response.create(
54-
post_id="voluptatem",
54+
post_id="beatae",
5555
account="acct_XXXXXXXXXXXXXXX",
5656
text="This is a comment.",
5757
)
@@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None:
6565
@parametrize
6666
def test_streaming_response_create(self, client: OnlyFansAPI) -> None:
6767
with client.posts.comments.with_streaming_response.create(
68-
post_id="voluptatem",
68+
post_id="beatae",
6969
account="acct_XXXXXXXXXXXXXXX",
7070
text="This is a comment.",
7171
) as response:
@@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None:
8282
def test_path_params_create(self, client: OnlyFansAPI) -> None:
8383
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"):
8484
client.posts.comments.with_raw_response.create(
85-
post_id="voluptatem",
85+
post_id="beatae",
8686
account="",
8787
text="This is a comment.",
8888
)
@@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None:
9898
@parametrize
9999
def test_method_list(self, client: OnlyFansAPI) -> None:
100100
comment = client.posts.comments.list(
101-
post_id="voluptatem",
101+
post_id="beatae",
102102
account="acct_XXXXXXXXXXXXXXX",
103103
)
104104
assert_matches_type(CommentListResponse, comment, path=["response"])
@@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None:
107107
@parametrize
108108
def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None:
109109
comment = client.posts.comments.list(
110-
post_id="voluptatem",
110+
post_id="beatae",
111111
account="acct_XXXXXXXXXXXXXXX",
112112
limit=10,
113113
offset=0,
@@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None:
119119
@parametrize
120120
def test_raw_response_list(self, client: OnlyFansAPI) -> None:
121121
response = client.posts.comments.with_raw_response.list(
122-
post_id="voluptatem",
122+
post_id="beatae",
123123
account="acct_XXXXXXXXXXXXXXX",
124124
)
125125

@@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None:
132132
@parametrize
133133
def test_streaming_response_list(self, client: OnlyFansAPI) -> None:
134134
with client.posts.comments.with_streaming_response.list(
135-
post_id="voluptatem",
135+
post_id="beatae",
136136
account="acct_XXXXXXXXXXXXXXX",
137137
) as response:
138138
assert not response.is_closed
@@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None:
148148
def test_path_params_list(self, client: OnlyFansAPI) -> None:
149149
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"):
150150
client.posts.comments.with_raw_response.list(
151-
post_id="voluptatem",
151+
post_id="beatae",
152152
account="",
153153
)
154154

@@ -418,7 +418,7 @@ class TestAsyncComments:
418418
@parametrize
419419
async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None:
420420
comment = await async_client.posts.comments.create(
421-
post_id="voluptatem",
421+
post_id="beatae",
422422
account="acct_XXXXXXXXXXXXXXX",
423423
text="This is a comment.",
424424
)
@@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None:
428428
@parametrize
429429
async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None:
430430
comment = await async_client.posts.comments.create(
431-
post_id="voluptatem",
431+
post_id="beatae",
432432
account="acct_XXXXXXXXXXXXXXX",
433433
text="This is a comment.",
434434
answer_to=123,
@@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP
440440
@parametrize
441441
async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None:
442442
response = await async_client.posts.comments.with_raw_response.create(
443-
post_id="voluptatem",
443+
post_id="beatae",
444444
account="acct_XXXXXXXXXXXXXXX",
445445
text="This is a comment.",
446446
)
@@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None
454454
@parametrize
455455
async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None:
456456
async with async_client.posts.comments.with_streaming_response.create(
457-
post_id="voluptatem",
457+
post_id="beatae",
458458
account="acct_XXXXXXXXXXXXXXX",
459459
text="This is a comment.",
460460
) as response:
@@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -
471471
async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None:
472472
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"):
473473
await async_client.posts.comments.with_raw_response.create(
474-
post_id="voluptatem",
474+
post_id="beatae",
475475
account="",
476476
text="This is a comment.",
477477
)
@@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None:
487487
@parametrize
488488
async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None:
489489
comment = await async_client.posts.comments.list(
490-
post_id="voluptatem",
490+
post_id="beatae",
491491
account="acct_XXXXXXXXXXXXXXX",
492492
)
493493
assert_matches_type(CommentListResponse, comment, path=["response"])
@@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None:
496496
@parametrize
497497
async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None:
498498
comment = await async_client.posts.comments.list(
499-
post_id="voluptatem",
499+
post_id="beatae",
500500
account="acct_XXXXXXXXXXXXXXX",
501501
limit=10,
502502
offset=0,
@@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI)
508508
@parametrize
509509
async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None:
510510
response = await async_client.posts.comments.with_raw_response.list(
511-
post_id="voluptatem",
511+
post_id="beatae",
512512
account="acct_XXXXXXXXXXXXXXX",
513513
)
514514

@@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None:
521521
@parametrize
522522
async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None:
523523
async with async_client.posts.comments.with_streaming_response.list(
524-
post_id="voluptatem",
524+
post_id="beatae",
525525
account="acct_XXXXXXXXXXXXXXX",
526526
) as response:
527527
assert not response.is_closed
@@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) ->
537537
async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None:
538538
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"):
539539
await async_client.posts.comments.with_raw_response.list(
540-
post_id="voluptatem",
540+
post_id="beatae",
541541
account="",
542542
)
543543

tests/api_resources/saved_for_later/messages/test_settings.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N
110110
def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None:
111111
setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging(
112112
account="acct_XXXXXXXXXXXXXXX",
113-
period=24,
113+
period=48,
114114
)
115115
assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"])
116116

@@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI)
119119
def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None:
120120
response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging(
121121
account="acct_XXXXXXXXXXXXXXX",
122-
period=24,
122+
period=48,
123123
)
124124

125125
assert response.is_closed is True
@@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan
132132
def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None:
133133
with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging(
134134
account="acct_XXXXXXXXXXXXXXX",
135-
period=24,
135+
period=48,
136136
) as response:
137137
assert not response.is_closed
138138
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans
148148
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"):
149149
client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging(
150150
account="",
151-
period=24,
151+
period=48,
152152
)
153153

154154

@@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async
246246
async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None:
247247
setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging(
248248
account="acct_XXXXXXXXXXXXXXX",
249-
period=24,
249+
period=48,
250250
)
251251
assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"])
252252

@@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli
256256
response = (
257257
await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging(
258258
account="acct_XXXXXXXXXXXXXXX",
259-
period=24,
259+
period=48,
260260
)
261261
)
262262

@@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging(
273273
async with (
274274
async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging(
275275
account="acct_XXXXXXXXXXXXXXX",
276-
period=24,
276+
period=48,
277277
)
278278
) as response:
279279
assert not response.is_closed
@@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie
290290
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"):
291291
await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging(
292292
account="",
293-
period=24,
293+
period=48,
294294
)

0 commit comments

Comments
 (0)