Skip to content

Commit cc2531f

Browse files
authored
Merge pull request #5 from dapi-co/CS-1133-go
CS-1133 | .co to .com chanes in go library
2 parents b5c9064 + fd5704b commit cc2531f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# dapi-go
22

3-
A client library that talks to the [Dapi](https://dapi.co) [API](https://api.dapi.co).
3+
A client library that talks to the [Dapi](https://dapi.com) [API](https://api.dapi.com).
44

55
## Quickstart
66

constants/url.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ type dapiEndpoints struct {
3636
OPERATION_URLS operationEndpoints
3737
}
3838

39-
const DD_URL = "https://dd.dapi.co"
39+
const DD_URL = "https://dd.dapi.com"
4040

4141
// DAPI_URL is the base var that holds all supported API endpoints
4242
var DAPI_URL = &dapiEndpoints{
43-
BASE_URL: "https://api.dapi.co/v2",
43+
BASE_URL: "https://api.dapi.com/v2",
4444
DATA_URLS: dataEndpoints{
4545
GET_IDENTITY: "/data/identity/get",
4646
GET_ACCOUNTS: "/data/accounts/get",

request/request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func DapiSDKRequest(body []byte, header http.Header) ([]byte, error) {
129129
}
130130

131131
request.Header.Set("Content-Type", "application/json")
132-
request.Header.Set("Host", "dd.dapi.co")
132+
request.Header.Set("Host", "dd.dapi.com")
133133

134134
resp, err := client.Do(request)
135135
if err != nil {

0 commit comments

Comments
 (0)