Skip to content

Commit

Permalink
Fix typo in message threads index
Browse files Browse the repository at this point in the history
  • Loading branch information
AchoArnold committed Jul 25, 2023
1 parent 4219a4e commit 40c0be7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions message_thread_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ type MessageThreadService service
// Index returns a list of contacts which a phone number has communicated with (threads). It will be sorted by timestamp in descending order.
//
// API Docs: https://api.httpsms.com/index.html#/Channel%20Threads/get_message_threads
func (service *MessageThreadService) Index(ctx context.Context, params *HeartbeatIndexParams) (*MessageThreadsResponse, *Response, error) {
request, err := service.client.newRequest(ctx, http.MethodGet, "/v1/messageThreads", nil)
func (service *MessageThreadService) Index(ctx context.Context, params *MessageThreadIndexParams) (*MessageThreadsResponse, *Response, error) {
request, err := service.client.newRequest(ctx, http.MethodGet, "/v1/message-threads", nil)
if err != nil {
return nil, nil, err
}
Expand Down

0 comments on commit 40c0be7

Please sign in to comment.