Skip to content

Commit 3e2c097

Browse files
feat(api): api update
1 parent 2500623 commit 3e2c097

11 files changed

Lines changed: 31 additions & 32 deletions

File tree

.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-a8b4a89615c2d4024622d6bde7d1a3f177025e5df49bfed60c50ba0465647c01.yml
3-
openapi_spec_hash: 1d15562f53aed866aea86adaa0e24c3c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ccd70f4c3f998c337a1838bbae26248928e6a83553de2a42822d59d9719d787b.yml
3+
openapi_spec_hash: 23a53f5349b4af49e5f882235b886142
44
config_hash: 397c91e15c0024f8b5bbed9b82c2348c

test/onlyfans/resources/accounts_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_list
1616
def test_disconnect
1717
skip("Mock server tests are disabled")
1818

19-
response = @only_fans_api.accounts.disconnect("aut")
19+
response = @only_fans_api.accounts.disconnect("saepe")
2020

2121
assert_pattern do
2222
response => ^(Onlyfans::Internal::Type::HashOf[Onlyfans::Internal::Type::Unknown])

test/onlyfans/resources/engagement/messages_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def test_get_message_buyers_required_params
77
skip("Mock server tests are disabled")
88

99
response =
10-
@only_fans_api.engagement.messages.get_message_buyers("illum", account: "acct_XXXXXXXXXXXXXXX")
10+
@only_fans_api.engagement.messages.get_message_buyers("dolorum", account: "acct_XXXXXXXXXXXXXXX")
1111

1212
assert_pattern do
1313
response => Onlyfans::Models::Engagement::MessageGetMessageBuyersResponse

test/onlyfans/resources/media/vault/lists/media_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def test_add_required_params
88

99
response =
1010
@only_fans_api.media.vault.lists.media.add(
11-
"molestiae",
11+
"harum",
1212
account: "acct_XXXXXXXXXXXXXXX",
1313
media_ids: ["string"]
1414
)
@@ -30,7 +30,7 @@ def test_remove_required_params
3030

3131
response =
3232
@only_fans_api.media.vault.lists.media.remove(
33-
"molestiae",
33+
"harum",
3434
account: "acct_XXXXXXXXXXXXXXX",
3535
media_ids: ["string"]
3636
)

test/onlyfans/resources/posts/comments_test.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ def test_create_required_params
77
skip("Mock server tests are disabled")
88

99
response =
10-
@only_fans_api.posts.comments.create("id", account: "acct_XXXXXXXXXXXXXXX", text: "This is a comment.")
10+
@only_fans_api.posts.comments.create(
11+
"totam",
12+
account: "acct_XXXXXXXXXXXXXXX",
13+
text: "This is a comment."
14+
)
1115

1216
assert_pattern do
1317
response => Onlyfans::Models::Posts::CommentCreateResponse
@@ -24,7 +28,7 @@ def test_create_required_params
2428
def test_list_required_params
2529
skip("Mock server tests are disabled")
2630

27-
response = @only_fans_api.posts.comments.list("id", account: "acct_XXXXXXXXXXXXXXX")
31+
response = @only_fans_api.posts.comments.list("totam", account: "acct_XXXXXXXXXXXXXXX")
2832

2933
assert_pattern do
3034
response => Onlyfans::Models::Posts::CommentListResponse

test/onlyfans/resources/saved_for_later/posts/settings_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_enable_or_update_automatic_posting_required_params
4444
response =
4545
@only_fans_api.saved_for_later.posts.settings.enable_or_update_automatic_posting(
4646
"acct_XXXXXXXXXXXXXXX",
47-
period: 12
47+
period: 48
4848
)
4949

5050
assert_pattern do

test/onlyfans/resources/smart_links_test.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def test_delete
7979
def test_list_clicks
8080
skip("Mock server tests are disabled")
8181

82-
response = @only_fans_api.smart_links.list_clicks("eaque")
82+
response = @only_fans_api.smart_links.list_clicks("qui")
8383

8484
assert_pattern do
8585
response => Onlyfans::Models::SmartLinkListClicksResponse
@@ -96,7 +96,7 @@ def test_list_clicks
9696
def test_list_conversions
9797
skip("Mock server tests are disabled")
9898

99-
response = @only_fans_api.smart_links.list_conversions("omnis")
99+
response = @only_fans_api.smart_links.list_conversions("ipsa")
100100

101101
assert_pattern do
102102
response => Onlyfans::Models::SmartLinkListConversionsResponse
@@ -113,7 +113,7 @@ def test_list_conversions
113113
def test_list_fans
114114
skip("Mock server tests are disabled")
115115

116-
response = @only_fans_api.smart_links.list_fans("nihil")
116+
response = @only_fans_api.smart_links.list_fans("qui")
117117

118118
assert_pattern do
119119
response => Onlyfans::Models::SmartLinkListFansResponse
@@ -130,7 +130,7 @@ def test_list_fans
130130
def test_list_spenders
131131
skip("Mock server tests are disabled")
132132

133-
response = @only_fans_api.smart_links.list_spenders("suscipit")
133+
response = @only_fans_api.smart_links.list_spenders("nesciunt")
134134

135135
assert_pattern do
136136
response => Onlyfans::Models::SmartLinkListSpendersResponse
@@ -147,7 +147,7 @@ def test_list_spenders
147147
def test_retrieve_cohort_arps
148148
skip("Mock server tests are disabled")
149149

150-
response = @only_fans_api.smart_links.retrieve_cohort_arps("minima")
150+
response = @only_fans_api.smart_links.retrieve_cohort_arps("voluptatem")
151151

152152
assert_pattern do
153153
response => nil
@@ -157,7 +157,7 @@ def test_retrieve_cohort_arps
157157
def test_retrieve_stats
158158
skip("Mock server tests are disabled")
159159

160-
response = @only_fans_api.smart_links.retrieve_stats("aspernatur")
160+
response = @only_fans_api.smart_links.retrieve_stats("aut")
161161

162162
assert_pattern do
163163
response => Onlyfans::Models::SmartLinkRetrieveStatsResponse

test/onlyfans/resources/stories/highlights_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def test_add_story_required_params
106106

107107
response =
108108
@only_fans_api.stories.highlights.add_story(
109-
"omnis",
109+
"ducimus",
110110
account: "acct_XXXXXXXXXXXXXXX",
111111
highlight_id: 1_234_567_890,
112112
body_story_id: 2_345_678_901
@@ -129,7 +129,7 @@ def test_remove_story_required_params
129129

130130
response =
131131
@only_fans_api.stories.highlights.remove_story(
132-
"omnis",
132+
"ducimus",
133133
account: "acct_XXXXXXXXXXXXXXX",
134134
highlight_id: 1_234_567_890
135135
)

test/onlyfans/resources/tracking_links_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_create_required_params
2323
def test_retrieve_required_params
2424
skip("Mock server tests are disabled")
2525

26-
response = @only_fans_api.tracking_links.retrieve("aut", account: "acct_XXXXXXXXXXXXXXX")
26+
response = @only_fans_api.tracking_links.retrieve("nesciunt", account: "acct_XXXXXXXXXXXXXXX")
2727

2828
assert_pattern do
2929
response => Onlyfans::Models::TrackingLinkRetrieveResponse
@@ -58,7 +58,7 @@ def test_list
5858
def test_delete_required_params
5959
skip("Mock server tests are disabled")
6060

61-
response = @only_fans_api.tracking_links.delete("aut", account: "acct_XXXXXXXXXXXXXXX")
61+
response = @only_fans_api.tracking_links.delete("nesciunt", account: "acct_XXXXXXXXXXXXXXX")
6262

6363
assert_pattern do
6464
response => Onlyfans::Models::TrackingLinkDeleteResponse
@@ -75,7 +75,7 @@ def test_delete_required_params
7575
def test_get_cohort_arps_required_params
7676
skip("Mock server tests are disabled")
7777

78-
response = @only_fans_api.tracking_links.get_cohort_arps("voluptate", account: "acct_XXXXXXXXXXXXXXX")
78+
response = @only_fans_api.tracking_links.get_cohort_arps("fugit", account: "acct_XXXXXXXXXXXXXXX")
7979

8080
assert_pattern do
8181
response => nil
@@ -85,7 +85,7 @@ def test_get_cohort_arps_required_params
8585
def test_get_stats_required_params
8686
skip("Mock server tests are disabled")
8787

88-
response = @only_fans_api.tracking_links.get_stats("quos", account: "acct_XXXXXXXXXXXXXXX")
88+
response = @only_fans_api.tracking_links.get_stats("repellat", account: "acct_XXXXXXXXXXXXXXX")
8989

9090
assert_pattern do
9191
response => Onlyfans::Models::TrackingLinkGetStatsResponse

test/onlyfans/resources/trial_links_test.rb

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_create_required_params
3030
def test_retrieve_required_params
3131
skip("Mock server tests are disabled")
3232

33-
response = @only_fans_api.trial_links.retrieve("corporis", account: "acct_XXXXXXXXXXXXXXX")
33+
response = @only_fans_api.trial_links.retrieve("facilis", account: "acct_XXXXXXXXXXXXXXX")
3434

3535
assert_pattern do
3636
response => Onlyfans::Models::TrialLinkRetrieveResponse
@@ -65,7 +65,7 @@ def test_list_required_params
6565
def test_delete_required_params
6666
skip("Mock server tests are disabled")
6767

68-
response = @only_fans_api.trial_links.delete("corporis", account: "acct_XXXXXXXXXXXXXXX")
68+
response = @only_fans_api.trial_links.delete("facilis", account: "acct_XXXXXXXXXXXXXXX")
6969

7070
assert_pattern do
7171
response => Onlyfans::Models::TrialLinkDeleteResponse
@@ -100,12 +100,7 @@ def test_list_subscribers_required_params
100100
skip("Mock server tests are disabled")
101101

102102
response =
103-
@only_fans_api.trial_links.list_subscribers(
104-
"iusto",
105-
account: "acct_XXXXXXXXXXXXXXX",
106-
limit: 10,
107-
offset: 0
108-
)
103+
@only_fans_api.trial_links.list_subscribers("et", account: "acct_XXXXXXXXXXXXXXX", limit: 10, offset: 0)
109104

110105
assert_pattern do
111106
response => Onlyfans::Models::TrialLinkListSubscribersResponse
@@ -122,7 +117,7 @@ def test_list_subscribers_required_params
122117
def test_retrieve_cohort_arps_required_params
123118
skip("Mock server tests are disabled")
124119

125-
response = @only_fans_api.trial_links.retrieve_cohort_arps("odio", account: "acct_XXXXXXXXXXXXXXX")
120+
response = @only_fans_api.trial_links.retrieve_cohort_arps("laboriosam", account: "acct_XXXXXXXXXXXXXXX")
126121

127122
assert_pattern do
128123
response => nil
@@ -132,7 +127,7 @@ def test_retrieve_cohort_arps_required_params
132127
def test_retrieve_stats_required_params
133128
skip("Mock server tests are disabled")
134129

135-
response = @only_fans_api.trial_links.retrieve_stats("sed", account: "acct_XXXXXXXXXXXXXXX")
130+
response = @only_fans_api.trial_links.retrieve_stats("animi", account: "acct_XXXXXXXXXXXXXXX")
136131

137132
assert_pattern do
138133
response => Onlyfans::Models::TrialLinkRetrieveStatsResponse

0 commit comments

Comments
 (0)