Skip to content

Commit 8f2c014

Browse files
committed
Merge pull request #71 from intercom/jo/add-signed-up-at
signed up at
2 parents e08e1df + ad56034 commit 8f2c014

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

src/Intercom/Service/config/intercom_public_user.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@
6666
"type": "integer",
6767
"format": "timestamp"
6868
},
69+
"signed_up_at": {
70+
"location": "json",
71+
"required": false,
72+
"type": "integer",
73+
"format": "timestamp"
74+
},
6975
"custom_attributes": {
7076
"location": "json",
7177
"required": false,
@@ -148,6 +154,12 @@
148154
"type": "integer",
149155
"format": "timestamp"
150156
},
157+
"signed_up_at": {
158+
"location": "json",
159+
"required": false,
160+
"type": "integer",
161+
"format": "timestamp"
162+
},
151163
"custom_attributes": {
152164
"location": "json",
153165
"required": false,
@@ -318,6 +330,10 @@
318330
"location": "json",
319331
"type": "integer"
320332
},
333+
"signed_up_at": {
334+
"location": "json",
335+
"type": "integer"
336+
},
321337
"session_count": {
322338
"location": "json",
323339
"type": "integer"

tests/Intercom/Resources/UserTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public function testCreateUser()
4242

4343
$this->assertInstanceOf('\Guzzle\Service\Resource\Model', $response);
4444
$this->assertEquals('Joe Schmoe', $response['name']);
45+
$this->assertEquals(1393613864, $response['signed_up_at']);
4546
}
4647

4748
public function testUpdateUser()

tests/Mock/User/User.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Server: nginx
4949
"unsubscribed_from_emails":true,
5050
"last_request_at":1401970113,
5151
"remote_created_at":1393613864,
52+
"signed_up_at":1393613864,
5253
"updated_at":1401970114,
5354
"user_agent_data":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11",
5455
"social_profiles":{
@@ -96,4 +97,4 @@ Server: nginx
9697
"timezone":"+1000",
9798
"country_code":"IRL"
9899
}
99-
}
100+
}

0 commit comments

Comments
 (0)