Skip to content

Commit 5790970

Browse files
committed
Merge pull request #52 from intercom/jo/fix-events-json-parsing
Fix /events response parsing as json
2 parents bf5dde6 + 3ee35bb commit 5790970

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

CHANGES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changes
22
=========
33

4+
1.0.0-b4
5+
6+
- Fix /events response being parsed as JSON
7+
48
1.0.0-b3
59

610
- Add remote_created_at to user update and create.

src/Intercom/IntercomAbstractClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ abstract class IntercomAbstractClient extends Client
1717
/** @var string */
1818
const DEFAULT_ACCEPT_HEADER = 'application/json';
1919

20-
const USER_AGENT = 'intercom-php/1.0.0-b2';
20+
const USER_AGENT = 'intercom-php/1.0.0-b4';
2121

2222

2323
/**

src/Intercom/IntercomBasicAuthClient.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ public static function factory($config = [])
2929
$client->configure($config);
3030

3131
$client->setBasicAuth($config->get('app_id'), $config->get('api_key'));
32+
33+
$client->setUserAgent('intercom-php/1.0.0-b4', true);
3234

3335
return $client;
3436
}

src/Intercom/IntercomClientTokenAuthClient.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public static function factory($config = [])
3030
$client->configure($config);
3131

3232
$client->setBasicAuth($config->get('client_uuid'), $config->get('client_key'));
33+
34+
$client->setUserAgent('intercom-php/1.0.0-b4', true);
3335

3436
$client->setDefaultOption('query/app_id', $config->get('app_id'));
3537

0 commit comments

Comments
 (0)