Skip to content

Commit da2ca6a

Browse files
feat(api): api update
1 parent 43381bf commit da2ca6a

13 files changed

Lines changed: 38 additions & 29 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: 265
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7ee4c9f16bc07c5b25c42b031bf03df0474b2d2532ae2aa2203ce6c426705733.yml
3-
openapi_spec_hash: 6fd03e8ebe5db6e03a33a2ef406f1546
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-09f81c61819f76944d3f0997ad1706ffe6a3594ae5fb4128184ef722d4afba89.yml
3+
openapi_spec_hash: 1bf8237ed66ac12d1a9205d0c81bd524
44
config_hash: 397c91e15c0024f8b5bbed9b82c2348c

lib/onlyfans/resources/users.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@ class Users
1616
# @return [Onlyfans::Resources::Users::Subscribe]
1717
attr_reader :subscribe
1818

19+
# Some parameter documentations has been truncated, see
20+
# {Onlyfans::Models::UserRetrieveParams} for more details.
21+
#
1922
# Get OnlyFans Profile details for a given username. User details are retrieved
2023
# using the current `{account}` so fields like `subscribedOnData` which include
2124
# potential subscription details will be included.
2225
#
2326
# @overload retrieve(username, account:, request_options: {})
2427
#
25-
# @param username [String] The OnlyFans username of the user to retrieve details for.
28+
# @param username [String] The OnlyFans username or numeric user ID to retrieve details for. Display names
2629
#
2730
# @param account [String] The Account ID
2831
#

rbi/onlyfans/resources/users.rbi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ module Onlyfans
2727
).returns(Onlyfans::Models::UserRetrieveResponse)
2828
end
2929
def retrieve(
30-
# The OnlyFans username of the user to retrieve details for.
30+
# The OnlyFans username or numeric user ID to retrieve details for. Display names
31+
# and profile URLs are not accepted.
3132
username,
3233
# The Account ID
3334
account:,

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("facilis")
19+
response = @only_fans_api.accounts.disconnect("deserunt")
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
@@ -6,7 +6,7 @@ class Onlyfans::Test::Resources::Engagement::MessagesTest < Onlyfans::Test::Reso
66
def test_get_message_buyers_required_params
77
skip("Mock server tests are disabled")
88

9-
response = @only_fans_api.engagement.messages.get_message_buyers("vel", account: "acct_XXXXXXXXXXXXXXX")
9+
response = @only_fans_api.engagement.messages.get_message_buyers("ea", account: "acct_XXXXXXXXXXXXXXX")
1010

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

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

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

99
response =
10-
@only_fans_api.media.vault.lists.media.add("et", account: "acct_XXXXXXXXXXXXXXX", media_ids: ["string"])
10+
@only_fans_api.media.vault.lists.media.add(
11+
"quibusdam",
12+
account: "acct_XXXXXXXXXXXXXXX",
13+
media_ids: ["string"]
14+
)
1115

1216
assert_pattern do
1317
response => Onlyfans::Models::Media::Vault::Lists::MediaAddResponse
@@ -26,7 +30,7 @@ def test_remove_required_params
2630

2731
response =
2832
@only_fans_api.media.vault.lists.media.remove(
29-
"et",
33+
"quibusdam",
3034
account: "acct_XXXXXXXXXXXXXXX",
3135
media_ids: ["string"]
3236
)

test/onlyfans/resources/posts/comments_test.rb

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

99
response =
10-
@only_fans_api.posts.comments.create("ut", account: "acct_XXXXXXXXXXXXXXX", text: "This is a comment.")
10+
@only_fans_api.posts.comments.create("aut", account: "acct_XXXXXXXXXXXXXXX", text: "This is a comment.")
1111

1212
assert_pattern do
1313
response => Onlyfans::Models::Posts::CommentCreateResponse
@@ -24,7 +24,7 @@ def test_create_required_params
2424
def test_list_required_params
2525
skip("Mock server tests are disabled")
2626

27-
response = @only_fans_api.posts.comments.list("ut", account: "acct_XXXXXXXXXXXXXXX")
27+
response = @only_fans_api.posts.comments.list("aut", account: "acct_XXXXXXXXXXXXXXX")
2828

2929
assert_pattern do
3030
response => Onlyfans::Models::Posts::CommentListResponse

test/onlyfans/resources/saved_for_later/messages/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_messaging_required_params
4444
response =
4545
@only_fans_api.saved_for_later.messages.settings.enable_or_update_automatic_messaging(
4646
"acct_XXXXXXXXXXXXXXX",
47-
period: 12
47+
period: 24
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("ut")
82+
response = @only_fans_api.smart_links.list_clicks("aut")
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("dolores")
99+
response = @only_fans_api.smart_links.list_conversions("aut")
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("aut")
116+
response = @only_fans_api.smart_links.list_fans("reiciendis")
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("eum")
133+
response = @only_fans_api.smart_links.list_spenders("ex")
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("hic")
150+
response = @only_fans_api.smart_links.retrieve_cohort_arps("quia")
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("consequatur")
160+
response = @only_fans_api.smart_links.retrieve_stats("placeat")
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-
"et",
109+
"sit",
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-
"et",
132+
"sit",
133133
account: "acct_XXXXXXXXXXXXXXX",
134134
highlight_id: 1_234_567_890
135135
)

0 commit comments

Comments
 (0)