Skip to content

Release v9

Compare
Choose a tag to compare
@vallerion vallerion released this 06 Jul 10:22
· 8 commits to master since this release
bf934da

Changes

General

  • New PaginationRequest instead of many in APIs.
  • New interface messagebird.Client and messagebird.DefaultClient instead of old implementation messagebird.Client and new MockClient for better testing.
  • List structures now have a plural ending instead of using word "List". Example: ContactList -> Contacts.
  • conversations.ConversationStatus replaced by conversations.Status.
  • number.NumberPattern replaced by number.SearchPattern.
  • Added Partner Accounts API.

Conversations API

  • Replaced conversations.CreateMessage with conversations.Reply which send a new message to an existing conversation.
  • Replaced conversations.ListMessages with conversations.ListConversationMessages which fetch messages in indicated conversation.
  • Added conversations.SendMessage to send a message to a specific recipient in a specific platform.
  • Added conversations.ListByContact to retrieves the list of conversation IDs of a specific contact ID.
  • Now conversations.ListMessages retrieves a list of messages given a list of message IDs or a timestamp (not both).