Skip to content

Commit 43559da

Browse files
feat(api): api update
1 parent 9ffc9d3 commit 43559da

16 files changed

Lines changed: 256 additions & 256 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-228e5e4b58ef1db78cc4762898961e3f01c5e8b0a73c4ecf50e46bdf63fe5874.yml
3-
openapi_spec_hash: 52c5d5d27afadbefbb9672f10f1d4867
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b97ef4ada355dc29dcda44aaa240d7ae51affb7573331f039de8f204ec07fb6d.yml
3+
openapi_spec_hash: 62f41c3ea5bbda67c8b977f70fbd67d5
44
config_hash: 397c91e15c0024f8b5bbed9b82c2348c

tests/api_resources/media/vault/lists/test_media.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class TestMedia:
2424
@parametrize
2525
def test_method_add(self, client: OnlyFansAPI) -> None:
2626
media = client.media.vault.lists.media.add(
27-
list_id="voluptas",
27+
list_id="sequi",
2828
account="acct_XXXXXXXXXXXXXXX",
2929
media_ids=["string"],
3030
)
@@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None:
3434
@parametrize
3535
def test_raw_response_add(self, client: OnlyFansAPI) -> None:
3636
response = client.media.vault.lists.media.with_raw_response.add(
37-
list_id="voluptas",
37+
list_id="sequi",
3838
account="acct_XXXXXXXXXXXXXXX",
3939
media_ids=["string"],
4040
)
@@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None:
4848
@parametrize
4949
def test_streaming_response_add(self, client: OnlyFansAPI) -> None:
5050
with client.media.vault.lists.media.with_streaming_response.add(
51-
list_id="voluptas",
51+
list_id="sequi",
5252
account="acct_XXXXXXXXXXXXXXX",
5353
media_ids=["string"],
5454
) as response:
@@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None:
6565
def test_path_params_add(self, client: OnlyFansAPI) -> None:
6666
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"):
6767
client.media.vault.lists.media.with_raw_response.add(
68-
list_id="voluptas",
68+
list_id="sequi",
6969
account="",
7070
media_ids=["string"],
7171
)
@@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None:
8181
@parametrize
8282
def test_method_remove(self, client: OnlyFansAPI) -> None:
8383
media = client.media.vault.lists.media.remove(
84-
list_id="voluptas",
84+
list_id="sequi",
8585
account="acct_XXXXXXXXXXXXXXX",
8686
media_ids=["string"],
8787
)
@@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None:
9191
@parametrize
9292
def test_raw_response_remove(self, client: OnlyFansAPI) -> None:
9393
response = client.media.vault.lists.media.with_raw_response.remove(
94-
list_id="voluptas",
94+
list_id="sequi",
9595
account="acct_XXXXXXXXXXXXXXX",
9696
media_ids=["string"],
9797
)
@@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None:
105105
@parametrize
106106
def test_streaming_response_remove(self, client: OnlyFansAPI) -> None:
107107
with client.media.vault.lists.media.with_streaming_response.remove(
108-
list_id="voluptas",
108+
list_id="sequi",
109109
account="acct_XXXXXXXXXXXXXXX",
110110
media_ids=["string"],
111111
) as response:
@@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None:
122122
def test_path_params_remove(self, client: OnlyFansAPI) -> None:
123123
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"):
124124
client.media.vault.lists.media.with_raw_response.remove(
125-
list_id="voluptas",
125+
list_id="sequi",
126126
account="",
127127
media_ids=["string"],
128128
)
@@ -144,7 +144,7 @@ class TestAsyncMedia:
144144
@parametrize
145145
async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None:
146146
media = await async_client.media.vault.lists.media.add(
147-
list_id="voluptas",
147+
list_id="sequi",
148148
account="acct_XXXXXXXXXXXXXXX",
149149
media_ids=["string"],
150150
)
@@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None:
154154
@parametrize
155155
async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None:
156156
response = await async_client.media.vault.lists.media.with_raw_response.add(
157-
list_id="voluptas",
157+
list_id="sequi",
158158
account="acct_XXXXXXXXXXXXXXX",
159159
media_ids=["string"],
160160
)
@@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None:
168168
@parametrize
169169
async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None:
170170
async with async_client.media.vault.lists.media.with_streaming_response.add(
171-
list_id="voluptas",
171+
list_id="sequi",
172172
account="acct_XXXXXXXXXXXXXXX",
173173
media_ids=["string"],
174174
) as response:
@@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N
185185
async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None:
186186
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"):
187187
await async_client.media.vault.lists.media.with_raw_response.add(
188-
list_id="voluptas",
188+
list_id="sequi",
189189
account="",
190190
media_ids=["string"],
191191
)
@@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None:
201201
@parametrize
202202
async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None:
203203
media = await async_client.media.vault.lists.media.remove(
204-
list_id="voluptas",
204+
list_id="sequi",
205205
account="acct_XXXXXXXXXXXXXXX",
206206
media_ids=["string"],
207207
)
@@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None:
211211
@parametrize
212212
async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None:
213213
response = await async_client.media.vault.lists.media.with_raw_response.remove(
214-
list_id="voluptas",
214+
list_id="sequi",
215215
account="acct_XXXXXXXXXXXXXXX",
216216
media_ids=["string"],
217217
)
@@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None
225225
@parametrize
226226
async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None:
227227
async with async_client.media.vault.lists.media.with_streaming_response.remove(
228-
list_id="voluptas",
228+
list_id="sequi",
229229
account="acct_XXXXXXXXXXXXXXX",
230230
media_ids=["string"],
231231
) as response:
@@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -
242242
async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None:
243243
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"):
244244
await async_client.media.vault.lists.media.with_raw_response.remove(
245-
list_id="voluptas",
245+
list_id="sequi",
246246
account="",
247247
media_ids=["string"],
248248
)

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="autem",
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="autem",
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="autem",
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="autem",
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="autem",
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="autem",
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="autem",
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="autem",
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="autem",
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="autem",
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="autem",
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="autem",
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="autem",
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="autem",
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="autem",
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="autem",
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="autem",
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="autem",
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="autem",
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="autem",
541541
account="",
542542
)
543543

0 commit comments

Comments
 (0)