Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# dapi-go

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

## Quickstart

Expand Down
4 changes: 2 additions & 2 deletions constants/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ type dapiEndpoints struct {
OPERATION_URLS operationEndpoints
}

const DD_URL = "https://dd.dapi.co"
const DD_URL = "https://dd.dapi.com"

// DAPI_URL is the base var that holds all supported API endpoints
var DAPI_URL = &dapiEndpoints{
BASE_URL: "https://api.dapi.co/v2",
BASE_URL: "https://api.dapi.com/v2",
DATA_URLS: dataEndpoints{
GET_IDENTITY: "/data/identity/get",
GET_ACCOUNTS: "/data/accounts/get",
Expand Down
2 changes: 1 addition & 1 deletion request/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func DapiSDKRequest(body []byte, header http.Header) ([]byte, error) {
}

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

resp, err := client.Do(request)
if err != nil {
Expand Down