diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 3d2ac0bd..10f30916 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0" + ".": "0.2.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 361d7c95..858be979 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a27d1c42e6271f5f8f6efafba63522fce26b3e353951da3497fad7627eba1cb3.yml -openapi_spec_hash: 8117459a7779859f329e7e48ef08a9b6 -config_hash: 15a66abc349649aa3faa50f54d68d76d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ad938f500376cbcae3299507132eab0c74bdb34628abb43b9be1c74bf72b9772.yml +openapi_spec_hash: da475361c28b843ddd1b45bbea333762 +config_hash: 91d6546a82dc433b7ba1747dbe1ce4a6 diff --git a/CHANGELOG.md b/CHANGELOG.md index 762eef2b..693ca29e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.2.0 (2026-05-25) + +Full Changelog: [v0.1.0...v0.2.0](https://github.com/onlyfansapi/onlyfansapi-php/compare/v0.1.0...v0.2.0) + +### Features + +* **api:** api update ([ef7dfdd](https://github.com/onlyfansapi/onlyfansapi-php/commit/ef7dfdde650314dd902cea24c28877ca53fbbce3)) +* **api:** api update ([36e8f69](https://github.com/onlyfansapi/onlyfansapi-php/commit/36e8f69ac58e6736345f371bd511328b127fabb1)) + ## 0.1.0 (2026-05-24) Full Changelog: [v0.0.1...v0.1.0](https://github.com/onlyfansapi/onlyfansapi-php/compare/v0.0.1...v0.1.0) diff --git a/src/Version.php b/src/Version.php index 706ca186..7500ce37 100644 --- a/src/Version.php +++ b/src/Version.php @@ -5,5 +5,5 @@ namespace Onlyfansapi; // x-release-please-start-version -const VERSION = '0.1.0'; +const VERSION = '0.2.0'; // x-release-please-end diff --git a/tests/Services/AccountsTest.php b/tests/Services/AccountsTest.php index 71baedf4..06c44b45 100644 --- a/tests/Services/AccountsTest.php +++ b/tests/Services/AccountsTest.php @@ -47,7 +47,7 @@ public function testDisconnect(): void $this->markTestSkipped('Mock server tests are disabled'); } - $result = $this->client->accounts->disconnect('laboriosam'); + $result = $this->client->accounts->disconnect('nobis'); // @phpstan-ignore-next-line method.alreadyNarrowedType $this->assertIsArray($result); diff --git a/tests/Services/Engagement/MessagesTest.php b/tests/Services/Engagement/MessagesTest.php index 02506a80..635dedd7 100644 --- a/tests/Services/Engagement/MessagesTest.php +++ b/tests/Services/Engagement/MessagesTest.php @@ -37,7 +37,7 @@ public function testGetMessageBuyers(): void } $result = $this->client->engagement->messages->getMessageBuyers( - 'amet', + 'et', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -53,7 +53,7 @@ public function testGetMessageBuyersWithOptionalParams(): void } $result = $this->client->engagement->messages->getMessageBuyers( - 'amet', + 'et', account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/Services/Media/Vault/Lists/MediaTest.php b/tests/Services/Media/Vault/Lists/MediaTest.php index 1e98b5a1..f663c669 100644 --- a/tests/Services/Media/Vault/Lists/MediaTest.php +++ b/tests/Services/Media/Vault/Lists/MediaTest.php @@ -37,7 +37,7 @@ public function testAdd(): void } $result = $this->client->media->vault->lists->media->add( - 'sapiente', + 'nihil', account: 'acct_XXXXXXXXXXXXXXX', mediaIDs: ['string'] ); @@ -54,7 +54,7 @@ public function testAddWithOptionalParams(): void } $result = $this->client->media->vault->lists->media->add( - 'sapiente', + 'nihil', account: 'acct_XXXXXXXXXXXXXXX', mediaIDs: ['string'] ); @@ -71,7 +71,7 @@ public function testRemove(): void } $result = $this->client->media->vault->lists->media->remove( - 'sapiente', + 'nihil', account: 'acct_XXXXXXXXXXXXXXX', mediaIDs: ['string'] ); @@ -88,7 +88,7 @@ public function testRemoveWithOptionalParams(): void } $result = $this->client->media->vault->lists->media->remove( - 'sapiente', + 'nihil', account: 'acct_XXXXXXXXXXXXXXX', mediaIDs: ['string'] ); diff --git a/tests/Services/Posts/CommentsTest.php b/tests/Services/Posts/CommentsTest.php index 26038fa8..14aec52c 100644 --- a/tests/Services/Posts/CommentsTest.php +++ b/tests/Services/Posts/CommentsTest.php @@ -42,7 +42,7 @@ public function testCreate(): void } $result = $this->client->posts->comments->create( - 'est', + 'impedit', account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.' ); @@ -59,7 +59,7 @@ public function testCreateWithOptionalParams(): void } $result = $this->client->posts->comments->create( - 'est', + 'impedit', account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -78,7 +78,7 @@ public function testList(): void } $result = $this->client->posts->comments->list( - 'est', + 'impedit', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -94,11 +94,11 @@ public function testListWithOptionalParams(): void } $result = $this->client->posts->comments->list( - 'est', + 'impedit', account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, - sort: 'desc' + sort: 'desc', ); // @phpstan-ignore-next-line method.alreadyNarrowedType diff --git a/tests/Services/SavedForLater/Posts/SettingsTest.php b/tests/Services/SavedForLater/Posts/SettingsTest.php index 8b322789..6f693813 100644 --- a/tests/Services/SavedForLater/Posts/SettingsTest.php +++ b/tests/Services/SavedForLater/Posts/SettingsTest.php @@ -79,7 +79,7 @@ public function testEnableOrUpdateAutomaticPosting(): void ->savedForLater ->posts ->settings - ->enableOrUpdateAutomaticPosting('acct_XXXXXXXXXXXXXXX', period: 48) + ->enableOrUpdateAutomaticPosting('acct_XXXXXXXXXXXXXXX', period: 12) ; // @phpstan-ignore-next-line method.alreadyNarrowedType @@ -101,7 +101,7 @@ public function testEnableOrUpdateAutomaticPostingWithOptionalParams(): void ->savedForLater ->posts ->settings - ->enableOrUpdateAutomaticPosting('acct_XXXXXXXXXXXXXXX', period: 48) + ->enableOrUpdateAutomaticPosting('acct_XXXXXXXXXXXXXXX', period: 12) ; // @phpstan-ignore-next-line method.alreadyNarrowedType diff --git a/tests/Services/SmartLinksTest.php b/tests/Services/SmartLinksTest.php index 589b3daa..e179ef8b 100644 --- a/tests/Services/SmartLinksTest.php +++ b/tests/Services/SmartLinksTest.php @@ -117,7 +117,7 @@ public function testListClicks(): void $this->markTestSkipped('Mock server tests are disabled'); } - $result = $this->client->smartLinks->listClicks('omnis'); + $result = $this->client->smartLinks->listClicks('rerum'); // @phpstan-ignore-next-line method.alreadyNarrowedType $this->assertInstanceOf(SmartLinkListClicksResponse::class, $result); @@ -130,7 +130,7 @@ public function testListConversions(): void $this->markTestSkipped('Mock server tests are disabled'); } - $result = $this->client->smartLinks->listConversions('dolorem'); + $result = $this->client->smartLinks->listConversions('facilis'); // @phpstan-ignore-next-line method.alreadyNarrowedType $this->assertInstanceOf(SmartLinkListConversionsResponse::class, $result); @@ -143,7 +143,7 @@ public function testListFans(): void $this->markTestSkipped('Mock server tests are disabled'); } - $result = $this->client->smartLinks->listFans('eum'); + $result = $this->client->smartLinks->listFans('ducimus'); // @phpstan-ignore-next-line method.alreadyNarrowedType $this->assertInstanceOf(SmartLinkListFansResponse::class, $result); @@ -156,7 +156,7 @@ public function testListSpenders(): void $this->markTestSkipped('Mock server tests are disabled'); } - $result = $this->client->smartLinks->listSpenders('voluptas'); + $result = $this->client->smartLinks->listSpenders('nam'); // @phpstan-ignore-next-line method.alreadyNarrowedType $this->assertInstanceOf(SmartLinkListSpendersResponse::class, $result); @@ -169,7 +169,7 @@ public function testRetrieveCohortArps(): void $this->markTestSkipped('Mock server tests are disabled'); } - $result = $this->client->smartLinks->retrieveCohortArps('id'); + $result = $this->client->smartLinks->retrieveCohortArps('eaque'); // @phpstan-ignore-next-line method.alreadyNarrowedType $this->assertNull($result); @@ -182,7 +182,7 @@ public function testRetrieveStats(): void $this->markTestSkipped('Mock server tests are disabled'); } - $result = $this->client->smartLinks->retrieveStats('iure'); + $result = $this->client->smartLinks->retrieveStats('impedit'); // @phpstan-ignore-next-line method.alreadyNarrowedType $this->assertInstanceOf(SmartLinkGetStatsResponse::class, $result); diff --git a/tests/Services/Stories/HighlightsTest.php b/tests/Services/Stories/HighlightsTest.php index ae99838e..a019b1e9 100644 --- a/tests/Services/Stories/HighlightsTest.php +++ b/tests/Services/Stories/HighlightsTest.php @@ -193,7 +193,7 @@ public function testAddStory(): void } $result = $this->client->stories->highlights->addStory( - 'similique', + 'maxime', account: 'acct_XXXXXXXXXXXXXXX', highlightID: 1234567890, storyID: 2345678901, @@ -211,7 +211,7 @@ public function testAddStoryWithOptionalParams(): void } $result = $this->client->stories->highlights->addStory( - 'similique', + 'maxime', account: 'acct_XXXXXXXXXXXXXXX', highlightID: 1234567890, storyID: 2345678901, @@ -229,7 +229,7 @@ public function testRemoveStory(): void } $result = $this->client->stories->highlights->removeStory( - 'similique', + 'maxime', account: 'acct_XXXXXXXXXXXXXXX', highlightID: 1234567890 ); @@ -246,7 +246,7 @@ public function testRemoveStoryWithOptionalParams(): void } $result = $this->client->stories->highlights->removeStory( - 'similique', + 'maxime', account: 'acct_XXXXXXXXXXXXXXX', highlightID: 1234567890 ); diff --git a/tests/Services/TrackingLinksTest.php b/tests/Services/TrackingLinksTest.php index 634eda6b..df805fa8 100644 --- a/tests/Services/TrackingLinksTest.php +++ b/tests/Services/TrackingLinksTest.php @@ -75,7 +75,7 @@ public function testRetrieve(): void } $result = $this->client->trackingLinks->retrieve( - 'voluptatem', + 'et', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -91,7 +91,7 @@ public function testRetrieveWithOptionalParams(): void } $result = $this->client->trackingLinks->retrieve( - 'voluptatem', + 'et', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -120,7 +120,7 @@ public function testDelete(): void } $result = $this->client->trackingLinks->delete( - 'voluptatem', + 'et', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -136,7 +136,7 @@ public function testDeleteWithOptionalParams(): void } $result = $this->client->trackingLinks->delete( - 'voluptatem', + 'et', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -152,7 +152,7 @@ public function testGetCohortArps(): void } $result = $this->client->trackingLinks->getCohortArps( - 'ipsam', + 'et', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -168,7 +168,7 @@ public function testGetCohortArpsWithOptionalParams(): void } $result = $this->client->trackingLinks->getCohortArps( - 'ipsam', + 'et', account: 'acct_XXXXXXXXXXXXXXX', acquisitionEnd: '2026-01-31T23:59:59Z', acquisitionStart: '2026-01-01T00:00:00Z', @@ -187,7 +187,7 @@ public function testGetStats(): void } $result = $this->client->trackingLinks->getStats( - 'sit', + 'voluptatem', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -203,7 +203,7 @@ public function testGetStatsWithOptionalParams(): void } $result = $this->client->trackingLinks->getStats( - 'sit', + 'voluptatem', account: 'acct_XXXXXXXXXXXXXXX', dateEnd: '2026-01-31T23:59:59Z', dateStart: '2026-01-01T00:00:00Z', diff --git a/tests/Services/TrialLinksTest.php b/tests/Services/TrialLinksTest.php index 87432bde..f21278a6 100644 --- a/tests/Services/TrialLinksTest.php +++ b/tests/Services/TrialLinksTest.php @@ -80,7 +80,7 @@ public function testRetrieve(): void } $result = $this->client->trialLinks->retrieve( - 'ut', + 'officia', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -96,7 +96,7 @@ public function testRetrieveWithOptionalParams(): void } $result = $this->client->trialLinks->retrieve( - 'ut', + 'officia', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -149,7 +149,7 @@ public function testDelete(): void } $result = $this->client->trialLinks->delete( - 'ut', + 'officia', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -165,7 +165,7 @@ public function testDeleteWithOptionalParams(): void } $result = $this->client->trialLinks->delete( - 'ut', + 'officia', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -216,7 +216,7 @@ public function testListSubscribers(): void } $result = $this->client->trialLinks->listSubscribers( - 'est', + 'eum', account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0 @@ -234,7 +234,7 @@ public function testListSubscribersWithOptionalParams(): void } $result = $this->client->trialLinks->listSubscribers( - 'est', + 'eum', account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0 @@ -252,7 +252,7 @@ public function testRetrieveCohortArps(): void } $result = $this->client->trialLinks->retrieveCohortArps( - 'voluptates', + 'eius', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -268,7 +268,7 @@ public function testRetrieveCohortArpsWithOptionalParams(): void } $result = $this->client->trialLinks->retrieveCohortArps( - 'voluptates', + 'eius', account: 'acct_XXXXXXXXXXXXXXX', acquisitionEnd: '2026-01-31T23:59:59Z', acquisitionStart: '2026-01-01T00:00:00Z', @@ -287,7 +287,7 @@ public function testRetrieveStats(): void } $result = $this->client->trialLinks->retrieveStats( - 'fugit', + 'aut', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -303,7 +303,7 @@ public function testRetrieveStatsWithOptionalParams(): void } $result = $this->client->trialLinks->retrieveStats( - 'fugit', + 'aut', account: 'acct_XXXXXXXXXXXXXXX', dateEnd: '2026-01-31T23:59:59Z', dateStart: '2026-01-01T00:00:00Z', diff --git a/tests/Services/UserListsTest.php b/tests/Services/UserListsTest.php index f069dc0a..968cb5f2 100644 --- a/tests/Services/UserListsTest.php +++ b/tests/Services/UserListsTest.php @@ -41,7 +41,7 @@ public function testCreate(): void $result = $this->client->userLists->create( 'acct_XXXXXXXXXXXXXXX', - name: 'eujuvuhkododglgiobt' + name: 'sdqtzwslsvoxbkxj' ); // @phpstan-ignore-next-line method.alreadyNarrowedType @@ -57,7 +57,7 @@ public function testCreateWithOptionalParams(): void $result = $this->client->userLists->create( 'acct_XXXXXXXXXXXXXXX', - name: 'eujuvuhkododglgiobt' + name: 'sdqtzwslsvoxbkxj' ); // @phpstan-ignore-next-line method.alreadyNarrowedType