Skip to content

Commit c3ca120

Browse files
committed
Add changelog and upgrade for 5.3.0
1 parent 0e93b67 commit c3ca120

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

CHANGES.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,16 @@ twilio-ruby changelog
33

44
[2017-09-29] Version 5.3.0
55
---------------------------
6-
**Api**
7-
- [omit] Added hidden fields for SMS experimentation
8-
96
**Chat**
107
- Make member accessible through identity
118
- Make channel subresources accessible by channel unique name
129
- Set get list 'max_page_size' parameter to 100
1310
- Add service instance webhook retry configuration
1411
- Add media message capability
12+
- Make `body` an optional parameter on Message creation. *(breaking change)*
1513

1614
**Notify**
17-
- `data`, `apn`, `gcm`, `fcm`, `sms` parameters in `Notifications` create resource are objects instead of strings. *(breaking change)*
15+
- `data`, `apn`, `gcm`, `fcm`, `sms` parameters in `Notifications` create resource now accept objects (hashes) instead of strings. Passing manually stringified json will continue to work.
1816

1917
**Taskrouter**
2018
- Add new query ability by TaskChannelSid or TaskChannelUniqueName

UPGRADE.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Upgrade Guide
2+
3+
_After `5.0.0` all `MINOR` and `MAJOR` version bumps will have upgrade notes
4+
posted here._
5+
6+
[2017-09-29] 5.x.x to 5.3.x
7+
---------------------------
8+
9+
### CHANGED - `Body` parameter on Chat `Message` creation is no longer required.
10+
11+
#### Rationale
12+
This was changed to add support for sending media in Chat messages, users can now either provide a `body` or a `media_sid`.
13+
14+
#### 5.x.x
15+
```ruby
16+
require 'twilio-ruby'
17+
18+
@client = Twilio::REST::Client.new "AC123", "auth"
19+
@client.chat.v2.service('IS123').channel('CH123').message.create("this is the body", "from")
20+
```
21+
22+
#### 5.3.x
23+
```ruby
24+
require 'twilio-ruby'
25+
26+
@client = Twilio::REST::Client.new "AC123", "auth"
27+
@client.chat.v2.service('IS123').channel('CH123').message.create("from", body:"this is the body")
28+
```
29+
30+

0 commit comments

Comments
 (0)