Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0"
".": "0.2.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion tests/Services/AccountsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions tests/Services/Engagement/MessagesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function testGetMessageBuyers(): void
}

$result = $this->client->engagement->messages->getMessageBuyers(
'amet',
'et',
account: 'acct_XXXXXXXXXXXXXXX'
);

Expand All @@ -53,7 +53,7 @@ public function testGetMessageBuyersWithOptionalParams(): void
}

$result = $this->client->engagement->messages->getMessageBuyers(
'amet',
'et',
account: 'acct_XXXXXXXXXXXXXXX',
limit: 10,
marker: 0,
Expand Down
8 changes: 4 additions & 4 deletions tests/Services/Media/Vault/Lists/MediaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function testAdd(): void
}

$result = $this->client->media->vault->lists->media->add(
'sapiente',
'nihil',
account: 'acct_XXXXXXXXXXXXXXX',
mediaIDs: ['string']
);
Expand All @@ -54,7 +54,7 @@ public function testAddWithOptionalParams(): void
}

$result = $this->client->media->vault->lists->media->add(
'sapiente',
'nihil',
account: 'acct_XXXXXXXXXXXXXXX',
mediaIDs: ['string']
);
Expand All @@ -71,7 +71,7 @@ public function testRemove(): void
}

$result = $this->client->media->vault->lists->media->remove(
'sapiente',
'nihil',
account: 'acct_XXXXXXXXXXXXXXX',
mediaIDs: ['string']
);
Expand All @@ -88,7 +88,7 @@ public function testRemoveWithOptionalParams(): void
}

$result = $this->client->media->vault->lists->media->remove(
'sapiente',
'nihil',
account: 'acct_XXXXXXXXXXXXXXX',
mediaIDs: ['string']
);
Expand Down
10 changes: 5 additions & 5 deletions tests/Services/Posts/CommentsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function testCreate(): void
}

$result = $this->client->posts->comments->create(
'est',
'impedit',
account: 'acct_XXXXXXXXXXXXXXX',
text: 'This is a comment.'
);
Expand All @@ -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,
Expand All @@ -78,7 +78,7 @@ public function testList(): void
}

$result = $this->client->posts->comments->list(
'est',
'impedit',
account: 'acct_XXXXXXXXXXXXXXX'
);

Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/Services/SavedForLater/Posts/SettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
12 changes: 6 additions & 6 deletions tests/Services/SmartLinksTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down
8 changes: 4 additions & 4 deletions tests/Services/Stories/HighlightsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function testAddStory(): void
}

$result = $this->client->stories->highlights->addStory(
'similique',
'maxime',
account: 'acct_XXXXXXXXXXXXXXX',
highlightID: 1234567890,
storyID: 2345678901,
Expand All @@ -211,7 +211,7 @@ public function testAddStoryWithOptionalParams(): void
}

$result = $this->client->stories->highlights->addStory(
'similique',
'maxime',
account: 'acct_XXXXXXXXXXXXXXX',
highlightID: 1234567890,
storyID: 2345678901,
Expand All @@ -229,7 +229,7 @@ public function testRemoveStory(): void
}

$result = $this->client->stories->highlights->removeStory(
'similique',
'maxime',
account: 'acct_XXXXXXXXXXXXXXX',
highlightID: 1234567890
);
Expand All @@ -246,7 +246,7 @@ public function testRemoveStoryWithOptionalParams(): void
}

$result = $this->client->stories->highlights->removeStory(
'similique',
'maxime',
account: 'acct_XXXXXXXXXXXXXXX',
highlightID: 1234567890
);
Expand Down
16 changes: 8 additions & 8 deletions tests/Services/TrackingLinksTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function testRetrieve(): void
}

$result = $this->client->trackingLinks->retrieve(
'voluptatem',
'et',
account: 'acct_XXXXXXXXXXXXXXX'
);

Expand All @@ -91,7 +91,7 @@ public function testRetrieveWithOptionalParams(): void
}

$result = $this->client->trackingLinks->retrieve(
'voluptatem',
'et',
account: 'acct_XXXXXXXXXXXXXXX'
);

Expand Down Expand Up @@ -120,7 +120,7 @@ public function testDelete(): void
}

$result = $this->client->trackingLinks->delete(
'voluptatem',
'et',
account: 'acct_XXXXXXXXXXXXXXX'
);

Expand All @@ -136,7 +136,7 @@ public function testDeleteWithOptionalParams(): void
}

$result = $this->client->trackingLinks->delete(
'voluptatem',
'et',
account: 'acct_XXXXXXXXXXXXXXX'
);

Expand All @@ -152,7 +152,7 @@ public function testGetCohortArps(): void
}

$result = $this->client->trackingLinks->getCohortArps(
'ipsam',
'et',
account: 'acct_XXXXXXXXXXXXXXX'
);

Expand All @@ -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',
Expand All @@ -187,7 +187,7 @@ public function testGetStats(): void
}

$result = $this->client->trackingLinks->getStats(
'sit',
'voluptatem',
account: 'acct_XXXXXXXXXXXXXXX'
);

Expand All @@ -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',
Expand Down
Loading