Skip to content

Commit c2d85f0

Browse files
Artur KhabibullinArtur Khabibullin
andauthored
Append Voice API version to the apiRoot (#84)
Co-authored-by: Artur Khabibullin <[email protected]>
1 parent 7680f5a commit c2d85f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

voice/voice.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ import (
55
"fmt"
66
"strings"
77

8-
"github.com/messagebird/go-rest-api"
8+
messagebird "github.com/messagebird/go-rest-api"
99
)
1010

11-
const apiRoot = "https://voice.messagebird.com"
11+
const apiRoot = "https://voice.messagebird.com/v1"
1212

1313
type ErrorResponse struct {
1414
Errors []Error
1515
}
1616

1717
type Error struct {
18-
Code int
18+
Code int
1919
Message string
2020
}
2121

0 commit comments

Comments
 (0)