Skip to content

Commit 4b08bce

Browse files
feat(api): api update
1 parent 867c209 commit 4b08bce

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-ba5efdf86108ef077f2db1f8a05b84d58f7f218fe2b7e0eb72e3c371cfa30015.yml
3-
openapi_spec_hash: 6c2d47cd85674ece07dc37e471a36ac9
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bb6c9c76d967f92637fe23928eed8e2b72857607f7d633cd313edac2159251da.yml
3+
openapi_spec_hash: 6ebbddf9d4240bc9dd02c40ba29fdbbc
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="voluptatem",
27+
message_id="et",
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="voluptatem",
36+
message_id="et",
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="voluptatem",
50+
message_id="et",
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="voluptatem",
63+
message_id="et",
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="voluptatem",
79+
message_id="et",
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="voluptatem",
151+
message_id="et",
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="voluptatem",
160+
message_id="et",
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="voluptatem",
174+
message_id="et",
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="voluptatem",
187+
message_id="et",
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="voluptatem",
203+
message_id="et",
204204
account="",
205205
)
206206

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="hic",
27+
list_id="quo",
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="hic",
37+
list_id="quo",
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="hic",
51+
list_id="quo",
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="hic",
68+
list_id="quo",
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="hic",
84+
list_id="quo",
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="hic",
94+
list_id="quo",
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="hic",
108+
list_id="quo",
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="hic",
125+
list_id="quo",
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="hic",
147+
list_id="quo",
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="hic",
157+
list_id="quo",
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="hic",
171+
list_id="quo",
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="hic",
188+
list_id="quo",
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="hic",
204+
list_id="quo",
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="hic",
214+
list_id="quo",
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="hic",
228+
list_id="quo",
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="hic",
245+
list_id="quo",
246246
account="",
247247
media_ids=["string"],
248248
)

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=48,
113+
period=24,
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=48,
122+
period=24,
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=48,
135+
period=24,
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=48,
151+
period=24,
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=48,
249+
period=24,
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=48,
259+
period=24,
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=48,
276+
period=24,
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=48,
293+
period=24,
294294
)

tests/api_resources/saved_for_later/posts/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_posting(self, client: OnlyFansAPI) -> Non
110110
def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None:
111111
setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting(
112112
account="acct_XXXXXXXXXXXXXXX",
113-
period=24,
113+
period=48,
114114
)
115115
assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"])
116116

@@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) ->
119119
def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None:
120120
response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting(
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_posting(self, client: OnlyFansA
132132
def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None:
133133
with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting(
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_posting(self, client: OnlyFansAP
148148
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"):
149149
client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting(
150150
account="",
151-
period=24,
151+
period=48,
152152
)
153153

154154

@@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn
246246
async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None:
247247
setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting(
248248
account="acct_XXXXXXXXXXXXXXX",
249-
period=24,
249+
period=48,
250250
)
251251
assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"])
252252

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

@@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async
271271
async with (
272272
async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting(
273273
account="acct_XXXXXXXXXXXXXXX",
274-
period=24,
274+
period=48,
275275
)
276276
) as response:
277277
assert not response.is_closed
@@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client
288288
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"):
289289
await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting(
290290
account="",
291-
period=24,
291+
period=48,
292292
)

0 commit comments

Comments
 (0)