Skip to content

Commit 6114dbf

Browse files
feat(api): manual updates
1 parent 9b48e1e commit 6114dbf

2,836 files changed

Lines changed: 17866 additions & 17866 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.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-ad938f500376cbcae3299507132eab0c74bdb34628abb43b9be1c74bf72b9772.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b9b67bf32f2b519e3230760d49e20c30e66107a6991f1a1f1a108f6c578c2fde.yml
33
openapi_spec_hash: da475361c28b843ddd1b45bbea333762
4-
config_hash: 91d6546a82dc433b7ba1747dbe1ce4a6
4+
config_hash: a522aab696c4535f715ae59ddfe8222f

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Parameters with a default value must be set by name.
3838
```php
3939
<?php
4040

41-
use Onlyfansapi\Client;
41+
use OnlyFansAPI\Client;
4242

4343
$client = new Client(apiKey: getenv('ONLYFANSAPI_API_KEY') ?: 'My API Key');
4444

@@ -56,14 +56,14 @@ However, builders are also provided `(new Dog)->withName("Joey")`.
5656

5757
### Handling errors
5858

59-
When the library is unable to connect to the API, or if the API returns a non-success status code (i.e., 4xx or 5xx response), a subclass of `Onlyfansapi\Core\Exceptions\APIException` will be thrown:
59+
When the library is unable to connect to the API, or if the API returns a non-success status code (i.e., 4xx or 5xx response), a subclass of `OnlyFansAPI\Core\Exceptions\APIException` will be thrown:
6060

6161
```php
6262
<?php
6363

64-
use Onlyfansapi\Core\Exceptions\APIConnectionException;
65-
use Onlyfansapi\Core\Exceptions\RateLimitException;
66-
use Onlyfansapi\Core\Exceptions\APIStatusException;
64+
use OnlyFansAPI\Core\Exceptions\APIConnectionException;
65+
use OnlyFansAPI\Core\Exceptions\RateLimitException;
66+
use OnlyFansAPI\Core\Exceptions\APIStatusException;
6767

6868
try {
6969
$whoami = $client->whoami->retrieve();
@@ -105,7 +105,7 @@ You can use the `maxRetries` option to configure or disable this:
105105
```php
106106
<?php
107107

108-
use Onlyfansapi\Client;
108+
use OnlyFansAPI\Client;
109109

110110
// Configure the default for all requests:
111111
$client = new Client(requestOptions: ['maxRetries' => 0]);
@@ -121,7 +121,7 @@ Request parameters that correspond to file uploads can be passed as a resource r
121121
```php
122122
<?php
123123

124-
use Onlyfansapi\Core\FileParam;
124+
use OnlyFansAPI\Core\FileParam;
125125

126126
// Pass a string with filename and content type:
127127
$contents = file_get_contents('/path/to/file');

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"src/Version.php"
77
],
88
"psr-4": {
9-
"Onlyfansapi\\": "src/"
9+
"OnlyFansAPI\\": "src/"
1010
}
1111
},
1212
"autoload-dev": {

src/Accounts/AccountListParams.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
declare(strict_types=1);
44

5-
namespace Onlyfansapi\Accounts;
5+
namespace OnlyFansAPI\Accounts;
66

7-
use Onlyfansapi\Core\Attributes\Optional;
8-
use Onlyfansapi\Core\Concerns\SdkModel;
9-
use Onlyfansapi\Core\Concerns\SdkParams;
10-
use Onlyfansapi\Core\Contracts\BaseModel;
7+
use OnlyFansAPI\Core\Attributes\Optional;
8+
use OnlyFansAPI\Core\Concerns\SdkModel;
9+
use OnlyFansAPI\Core\Concerns\SdkParams;
10+
use OnlyFansAPI\Core\Contracts\BaseModel;
1111

1212
/**
1313
* List all connected OnlyFans accounts.
1414
*
15-
* @see Onlyfansapi\Services\AccountsService::list()
15+
* @see OnlyFansAPI\Services\AccountsService::list()
1616
*
1717
* @phpstan-type AccountListParamsShape = array{
1818
* onlyfansEmail?: string|null,

src/Accounts/AccountListResponseItem.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
declare(strict_types=1);
44

5-
namespace Onlyfansapi\Accounts;
5+
namespace OnlyFansAPI\Accounts;
66

7-
use Onlyfansapi\Accounts\AccountListResponseItem\OnlyfansUserData;
8-
use Onlyfansapi\Core\Attributes\Optional;
9-
use Onlyfansapi\Core\Concerns\SdkModel;
10-
use Onlyfansapi\Core\Contracts\BaseModel;
7+
use OnlyFansAPI\Accounts\AccountListResponseItem\OnlyfansUserData;
8+
use OnlyFansAPI\Core\Attributes\Optional;
9+
use OnlyFansAPI\Core\Concerns\SdkModel;
10+
use OnlyFansAPI\Core\Contracts\BaseModel;
1111

1212
/**
13-
* @phpstan-import-type OnlyfansUserDataShape from \Onlyfansapi\Accounts\AccountListResponseItem\OnlyfansUserData
13+
* @phpstan-import-type OnlyfansUserDataShape from \OnlyFansAPI\Accounts\AccountListResponseItem\OnlyfansUserData
1414
*
1515
* @phpstan-type AccountListResponseItemShape = array{
1616
* id?: string|null,

src/Accounts/AccountListResponseItem/OnlyfansUserData.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22

33
declare(strict_types=1);
44

5-
namespace Onlyfansapi\Accounts\AccountListResponseItem;
5+
namespace OnlyFansAPI\Accounts\AccountListResponseItem;
66

7-
use Onlyfansapi\Accounts\AccountListResponseItem\OnlyfansUserData\AvatarThumbs;
8-
use Onlyfansapi\Accounts\AccountListResponseItem\OnlyfansUserData\HasNewTicketReplies;
9-
use Onlyfansapi\Accounts\AccountListResponseItem\OnlyfansUserData\HeaderSize;
10-
use Onlyfansapi\Accounts\AccountListResponseItem\OnlyfansUserData\HeaderThumbs;
11-
use Onlyfansapi\Accounts\AccountListResponseItem\OnlyfansUserData\Upload;
12-
use Onlyfansapi\Core\Attributes\Optional;
13-
use Onlyfansapi\Core\Concerns\SdkModel;
14-
use Onlyfansapi\Core\Contracts\BaseModel;
7+
use OnlyFansAPI\Accounts\AccountListResponseItem\OnlyfansUserData\AvatarThumbs;
8+
use OnlyFansAPI\Accounts\AccountListResponseItem\OnlyfansUserData\HasNewTicketReplies;
9+
use OnlyFansAPI\Accounts\AccountListResponseItem\OnlyfansUserData\HeaderSize;
10+
use OnlyFansAPI\Accounts\AccountListResponseItem\OnlyfansUserData\HeaderThumbs;
11+
use OnlyFansAPI\Accounts\AccountListResponseItem\OnlyfansUserData\Upload;
12+
use OnlyFansAPI\Core\Attributes\Optional;
13+
use OnlyFansAPI\Core\Concerns\SdkModel;
14+
use OnlyFansAPI\Core\Contracts\BaseModel;
1515

1616
/**
17-
* @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Accounts\AccountListResponseItem\OnlyfansUserData\AvatarThumbs
18-
* @phpstan-import-type HasNewTicketRepliesShape from \Onlyfansapi\Accounts\AccountListResponseItem\OnlyfansUserData\HasNewTicketReplies
19-
* @phpstan-import-type HeaderSizeShape from \Onlyfansapi\Accounts\AccountListResponseItem\OnlyfansUserData\HeaderSize
20-
* @phpstan-import-type HeaderThumbsShape from \Onlyfansapi\Accounts\AccountListResponseItem\OnlyfansUserData\HeaderThumbs
21-
* @phpstan-import-type UploadShape from \Onlyfansapi\Accounts\AccountListResponseItem\OnlyfansUserData\Upload
17+
* @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Accounts\AccountListResponseItem\OnlyfansUserData\AvatarThumbs
18+
* @phpstan-import-type HasNewTicketRepliesShape from \OnlyFansAPI\Accounts\AccountListResponseItem\OnlyfansUserData\HasNewTicketReplies
19+
* @phpstan-import-type HeaderSizeShape from \OnlyFansAPI\Accounts\AccountListResponseItem\OnlyfansUserData\HeaderSize
20+
* @phpstan-import-type HeaderThumbsShape from \OnlyFansAPI\Accounts\AccountListResponseItem\OnlyfansUserData\HeaderThumbs
21+
* @phpstan-import-type UploadShape from \OnlyFansAPI\Accounts\AccountListResponseItem\OnlyfansUserData\Upload
2222
*
2323
* @phpstan-type OnlyfansUserDataShape = array{
2424
* id?: int|null,

src/Accounts/AccountListResponseItem/OnlyfansUserData/AvatarThumbs.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace Onlyfansapi\Accounts\AccountListResponseItem\OnlyfansUserData;
5+
namespace OnlyFansAPI\Accounts\AccountListResponseItem\OnlyfansUserData;
66

7-
use Onlyfansapi\Core\Attributes\Optional;
8-
use Onlyfansapi\Core\Concerns\SdkModel;
9-
use Onlyfansapi\Core\Contracts\BaseModel;
7+
use OnlyFansAPI\Core\Attributes\Optional;
8+
use OnlyFansAPI\Core\Concerns\SdkModel;
9+
use OnlyFansAPI\Core\Contracts\BaseModel;
1010

1111
/**
1212
* @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null}

src/Accounts/AccountListResponseItem/OnlyfansUserData/HasNewTicketReplies.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace Onlyfansapi\Accounts\AccountListResponseItem\OnlyfansUserData;
5+
namespace OnlyFansAPI\Accounts\AccountListResponseItem\OnlyfansUserData;
66

7-
use Onlyfansapi\Core\Attributes\Optional;
8-
use Onlyfansapi\Core\Concerns\SdkModel;
9-
use Onlyfansapi\Core\Contracts\BaseModel;
7+
use OnlyFansAPI\Core\Attributes\Optional;
8+
use OnlyFansAPI\Core\Concerns\SdkModel;
9+
use OnlyFansAPI\Core\Contracts\BaseModel;
1010

1111
/**
1212
* @phpstan-type HasNewTicketRepliesShape = array{

src/Accounts/AccountListResponseItem/OnlyfansUserData/HeaderSize.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace Onlyfansapi\Accounts\AccountListResponseItem\OnlyfansUserData;
5+
namespace OnlyFansAPI\Accounts\AccountListResponseItem\OnlyfansUserData;
66

7-
use Onlyfansapi\Core\Attributes\Optional;
8-
use Onlyfansapi\Core\Concerns\SdkModel;
9-
use Onlyfansapi\Core\Contracts\BaseModel;
7+
use OnlyFansAPI\Core\Attributes\Optional;
8+
use OnlyFansAPI\Core\Concerns\SdkModel;
9+
use OnlyFansAPI\Core\Contracts\BaseModel;
1010

1111
/**
1212
* @phpstan-type HeaderSizeShape = array{height?: int|null, width?: int|null}

src/Accounts/AccountListResponseItem/OnlyfansUserData/HeaderThumbs.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace Onlyfansapi\Accounts\AccountListResponseItem\OnlyfansUserData;
5+
namespace OnlyFansAPI\Accounts\AccountListResponseItem\OnlyfansUserData;
66

7-
use Onlyfansapi\Core\Attributes\Optional;
8-
use Onlyfansapi\Core\Concerns\SdkModel;
9-
use Onlyfansapi\Core\Contracts\BaseModel;
7+
use OnlyFansAPI\Core\Attributes\Optional;
8+
use OnlyFansAPI\Core\Concerns\SdkModel;
9+
use OnlyFansAPI\Core\Contracts\BaseModel;
1010

1111
/**
1212
* @phpstan-type HeaderThumbsShape = array{w480?: string|null, w760?: string|null}

0 commit comments

Comments
 (0)