Skip to content

Commit ef11338

Browse files
SDK regeneration
1 parent 9460a8d commit ef11338

File tree

504 files changed

+50270
-10299
lines changed

Some content is hidden

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

504 files changed

+50270
-10299
lines changed

.fern/metadata.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"cliVersion": "3.0.2",
3+
"generatorName": "fernapi/fern-php-sdk",
4+
"generatorVersion": "1.25.0",
5+
"generatorConfig": {
6+
"namespace": "Intercom",
7+
"clientName": "IntercomClient",
8+
"packageName": "intercom/intercom-php",
9+
"propertyAccess": "private",
10+
"inlinePathParameters": true,
11+
"composerJson": {
12+
"description": "Intercom API client.",
13+
"author": {
14+
"name": "Intercom Platform Team",
15+
"url": "https://www.intercom.com"
16+
},
17+
"homepage": "https://developers.intercom.com/docs"
18+
}
19+
}
20+
}

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: |
2828
composer analyze
2929
30-
unit-tests:
30+
test:
3131
runs-on: ubuntu-latest
3232

3333
steps:
@@ -45,4 +45,4 @@ jobs:
4545
4646
- name: Run Tests
4747
run: |
48-
composer test
48+
composer test

README.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@
55

66
The Intercom PHP library provides convenient access to the Intercom APIs from PHP.
77

8+
## Table of Contents
9+
10+
- [Requirements](#requirements)
11+
- [Installation](#installation)
12+
- [Usage](#usage)
13+
- [Exception Handling](#exception-handling)
14+
- [Pagination](#pagination)
15+
- [Legacy Sdk](#legacy-sdk)
16+
- [Advanced](#advanced)
17+
- [Custom Client](#custom-client)
18+
- [Retries](#retries)
19+
- [Timeouts](#timeouts)
20+
- [Contributing](#contributing)
21+
822
## Requirements
923

1024
This SDK requires PHP ^8.1.
@@ -26,16 +40,14 @@ namespace Example;
2640

2741
use Intercom\IntercomClient;
2842
use Intercom\AiContent\Requests\CreateContentImportSourceRequest;
29-
use Intercom\AiContent\Types\CreateContentImportSourceRequestStatus;
3043

3144
$client = new IntercomClient(
3245
token: '<token>',
3346
);
3447
$client->aiContent->createContentImportSource(
3548
new CreateContentImportSourceRequest([
3649
'syncBehavior' => 'api',
37-
'status' => CreateContentImportSourceRequestStatus::Active->value,
38-
'url' => 'url',
50+
'url' => 'https://www.example.com',
3951
]),
4052
);
4153

@@ -87,6 +99,7 @@ foreach ($items->getPages() as $page) {
8799
}
88100
```
89101

102+
90103
## Legacy SDK
91104

92105
While the new SDK has a lot of improvements, we at Intercom understand that it takes time to upgrade when there are breaking changes.
@@ -156,7 +169,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
156169
Use the `maxRetries` request option to configure this behavior.
157170

158171
```php
159-
$response = $client->articles->create(
172+
$response = $client->aiContent->createContentImportSource(
160173
...,
161174
options: [
162175
'maxRetries' => 0 // Override maxRetries at the request level
@@ -169,7 +182,7 @@ $response = $client->articles->create(
169182
The SDK defaults to a 30 second timeout. Use the `timeout` option to configure this behavior.
170183

171184
```php
172-
$response = $client->articles->create(
185+
$response = $client->aiContent->createContentImportSource(
173186
...,
174187
options: [
175188
'timeout' => 3.0 // Override timeout to 3 seconds

0 commit comments

Comments
 (0)