We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b75a2f + 7b16671 commit 020f080Copy full SHA for 020f080
src/Intercom/IntercomAbstractClient.php
@@ -17,6 +17,9 @@ abstract class IntercomAbstractClient extends Client
17
/** @var string */
18
const DEFAULT_ACCEPT_HEADER = 'application/vnd.intercom.3+json';
19
20
+ const USER_AGENT = 'intercom-php/1.0.0-b1';
21
+
22
23
/**
24
* Configures the client by setting the appropriate headers, service description and error handling
25
*
@@ -96,7 +99,8 @@ public static function getDefaultConfig()
96
99
'service_description' => __DIR__ . '/Service/config/intercom.json',
97
100
'headers' => [
98
101
'Content-Type' => self::DEFAULT_CONTENT_TYPE,
- 'Accept' => self::DEFAULT_ACCEPT_HEADER
102
+ 'Accept' => self::DEFAULT_ACCEPT_HEADER,
103
+ 'User-Agent' => self::USER_AGENT
104
]
105
];
106
}
0 commit comments