Skip to content

Commit

Permalink
Released version 3.0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Conor O'Donnell committed Feb 8, 2017
1 parent 354f44d commit 8259f63
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 17 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## Version 3.0.21

08-02-2017
* Translation fixes
* Added `withSignedUpAt(Date date)` method to User
* Improved unread conversation count updating when using multiple devices at once.

## Version 3.0.20

25-01-2017
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
35 changes: 18 additions & 17 deletions docs/io/intercom/android/sdk/Intercom.html
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ <h4>updateUser</h4>

<p>`id` is a required field for adding or modifying a company.</p>

<p>Attributes may be a `string`, `int`, `double`, `unix timestamp` or `bool`.</p></div>
<p>Custom Attributes may be of type: String, Long, Float, Double, Boolean, Character, Byte, Short, Integer.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>attributes</code> - This is a map containing key/value pairs for multiple attributes.</p></dd>
Expand Down Expand Up @@ -679,9 +679,9 @@ <h4>updateUser</h4>
<code>

User user = new User.Builder()
.withUserId("1234")
.withEmail("test@test.com")
.build();
.withUserId("1234")
.withEmail("test@test.com")
.build();
Intercom.client().updateUser(user);
</code>
</pre>
Expand All @@ -693,39 +693,40 @@ <h4>updateUser</h4>
<pre>
<code>
User user = new User.Builder()
.withUserId("1234")
.withEmail("test@test.com")
.withCustomAttribute("team_mates", 3)
.build();
.withUserId("1234")
.withEmail("test@test.com")
.withCustomAttribute("team_mates", 3)
.build();
Intercom.client().updateUser(user);
</code>
</pre>

<p>For multiple user attributes you can chain withCustomAttribute several times
or pass a Map to withCustomAttributes</p>

<p>All of the updatable User attributes are described here: <code>()</code></p>

<p>You can also set company data via this call by submitting an attribute map like</p>

<pre>
<code>
Company company = new Company.Builder()
.withCompanyId("1234")
.withName("TestCorp")
.build();
.withCompanyId("1234")
.withName("TestCorp")
.build();
User user = new User.Builder()
.withCompany(company)
.build();
.withCompany(company)
.build();
Intercom.client().updateUser(user);
</code>
</pre>

<p>`id` is a required field for adding or modifying a company. A detailed description of the company model
is available <a href="https://developers.intercom.com/docs#companies-and--users">here</a></p>
<p>All of the updatable Company attributes are described here: <code>io.intercom.android.sdk.Company()</code></p>

<p>Attributes may be a `string`, `int`, `double`, `unix timestamp` or `bool`.</p></div>
<p>Custom Attributes may be of type: String, Long, Float, Double, Boolean, Character, Byte, Short, Integer.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>user</code> - This is a user object to update this user in Intercom.</p></dd>
<dd><code>user</code> - The user object with the attributes to be set in Intercom.</p></dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>3.0.19</dd>
</dl>
Expand Down

0 comments on commit 8259f63

Please sign in to comment.