Skip to content

Commit 64d89d5

Browse files
fix(APIClient): change default SDK url
1 parent 94f239d commit 64d89d5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apiclient/apiclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func NewAPIClient() *APIClient {
5151
cl := &APIClient{
5252
debugMode: false,
5353
socketTimeout: 300 * time.Second,
54-
socketURL: "https://coreapi.1api.net/api/call.cgi",
54+
socketURL: "https://api.ispapi.net/api/call.cgi",
5555
socketConfig: SC.NewSocketConfig(),
5656
ua: "",
5757
}

apiclient/apiclient_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func TestGetSesssion2(t *testing.T) {
7171

7272
func TestGetURL(t *testing.T) {
7373
url := cl.GetURL()
74-
if strings.Compare(url, "https://coreapi.1api.net/api/call.cgi") != 0 {
74+
if strings.Compare(url, "https://api.ispapi.net/api/call.cgi") != 0 {
7575
t.Error("TestGetURL: Expected url not matching.")
7676
}
7777
}
@@ -95,12 +95,12 @@ func TestSetUserAgent(t *testing.T) {
9595
}
9696

9797
func TestSetURL(t *testing.T) {
98-
newurl := "http://coreapi.1api.net/api/call.cgi"
98+
newurl := "http://api.ispapi.net/api/call.cgi"
9999
url := cl.SetURL(newurl).GetURL()
100100
if strings.Compare(newurl, url) != 0 {
101101
t.Error("TestSetURL: Expected url not matching.")
102102
}
103-
cl.SetURL("https://coreapi.1api.net/api/call.cgi")
103+
cl.SetURL("https://api.ispapi.net/api/call.cgi")
104104
}
105105

106106
func TestSetOTP1(t *testing.T) {

0 commit comments

Comments
 (0)