Account related
Change authentication account
curl --location --request GET 'https://api.98ip.com/authAccount/update' \
--form 'appKey="xxx"' \
--form 'user="xxx"' \
--form 'pass="xxx"'
                                
                                
import requests
url = "https://api.98ip.com/authAccount/update"
payload={}
files=[
]
headers = {}
response = requests.request("GET", url, headers=headers, data=payload, files=files)
print(response.text)
                                
                                
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
   CURLOPT_URL => 'https://api.98ip.com/authAccount/update',
   CURLOPT_RETURNTRANSFER => true,
   CURLOPT_ENCODING => '',
   CURLOPT_MAXREDIRS => 10,
   CURLOPT_TIMEOUT => 0,
   CURLOPT_FOLLOWLOCATION => true,
   CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
   CURLOPT_CUSTOMREQUEST => 'GET',
   CURLOPT_POSTFIELDS => array(,,),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
                                
                                
var formdata = new FormData();
formdata.append("appKey", "xxx");
formdata.append("user", "xxx");
formdata.append("pass", "xxx");
var requestOptions = {
   method: 'GET',
   body: formdata,
   redirect: 'follow'
};
fetch("https://api.98ip.com/authAccount/update", requestOptions)
   .then(response => response.text())
   .then(result => console.log(result))
   .catch(error => console.log('error', error));
                                
                                
package main
import (
   "fmt"
   "bytes"
   "mime/multipart"
   "net/http"
   "io/ioutil"
)
func main() {
   url := "https://api.98ip.com/authAccount/update"
   method := "GET"
   payload := &bytes.Buffer{}
   writer := multipart.NewWriter(payload)
   _ = writer.WriteField("appKey", "xxx")
   _ = writer.WriteField("user", "xxx")
   _ = writer.WriteField("pass", "xxx")
   err := writer.Close()
   if err != nil {
      fmt.Println(err)
      return
   }
   client := &http.Client {
   }
   req, err := http.NewRequest(method, url, payload)
   if err != nil {
      fmt.Println(err)
      return
   }
   req.Header.Set("Content-Type", writer.FormDataContentType())
   res, err := client.Do(req)
   if err != nil {
      fmt.Println(err)
      return
   }
   defer res.Body.Close()
   body, err := ioutil.ReadAll(res.Body)
   if err != nil {
      fmt.Println(err)
      return
   }
   fmt.Println(string(body))
}
                                
                                
OkHttpClient client = new OkHttpClient().newBuilder()
   .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
   .addFormDataPart("appKey","xxx")
   .addFormDataPart("user","xxx")
   .addFormDataPart("pass","xxx")
   .build();
Request request = new Request.Builder()
   .url("https://api.98ip.com/authAccount/update")
   .method("GET", body)
   .build();
Response response = client.newCall(request).execute();
                                
                            
                                
                                GET  
                                
                                /authAccount/update
                            
Request parameters
| Name | Types | Required | Explanation | 
|---|---|---|---|
| appKey | string | Yes | The user's AppKey | 
| user | string | Yes | The authentication account to change | 
| pass | string | Yes | Change Password | 
| status | string | No | Modifying state | 
                                    
https://api.98ip.com/authAccount/update
                                
                            Corresponding results
| Name | Types | Explanation | 
|---|---|---|
| code | int | Response code | 
| msg | string | Response message | 
                                        
{
    "code": 0,
    "msg": "修改认证账号信息成功"
}
                                    
                                
                                        
{
  "code": 1,
  "msg": "<string>"
}
                                    
                                
curl --location --request GET 'https://api.98ip.com/authAccount/update' \
--form 'appKey="xxx"' \
--form 'user="xxx"' \
--form 'pass="xxx"'
                            
                            
import requests
url = "https://api.98ip.com/authAccount/update"
payload={}
files=[
]
headers = {}
response = requests.request("GET", url, headers=headers, data=payload, files=files)
print(response.text)
                            
                            
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
   CURLOPT_URL => 'https://api.98ip.com/authAccount/update',
   CURLOPT_RETURNTRANSFER => true,
   CURLOPT_ENCODING => '',
   CURLOPT_MAXREDIRS => 10,
   CURLOPT_TIMEOUT => 0,
   CURLOPT_FOLLOWLOCATION => true,
   CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
   CURLOPT_CUSTOMREQUEST => 'GET',
   CURLOPT_POSTFIELDS => array(,,),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
                            
                            
var formdata = new FormData();
formdata.append("appKey", "xxx");
formdata.append("user", "xxx");
formdata.append("pass", "xxx");
var requestOptions = {
   method: 'GET',
   body: formdata,
   redirect: 'follow'
};
fetch("https://api.98ip.com/authAccount/update", requestOptions)
   .then(response => response.text())
   .then(result => console.log(result))
   .catch(error => console.log('error', error));
                            
                            
package main
import (
   "fmt"
   "bytes"
   "mime/multipart"
   "net/http"
   "io/ioutil"
)
func main() {
   url := "https://api.98ip.com/authAccount/update"
   method := "GET"
   payload := &bytes.Buffer{}
   writer := multipart.NewWriter(payload)
   _ = writer.WriteField("appKey", "xxx")
   _ = writer.WriteField("user", "xxx")
   _ = writer.WriteField("pass", "xxx")
   err := writer.Close()
   if err != nil {
      fmt.Println(err)
      return
   }
   client := &http.Client {
   }
   req, err := http.NewRequest(method, url, payload)
   if err != nil {
      fmt.Println(err)
      return
   }
   req.Header.Set("Content-Type", writer.FormDataContentType())
   res, err := client.Do(req)
   if err != nil {
      fmt.Println(err)
      return
   }
   defer res.Body.Close()
   body, err := ioutil.ReadAll(res.Body)
   if err != nil {
      fmt.Println(err)
      return
   }
   fmt.Println(string(body))
}
                            
                            
OkHttpClient client = new OkHttpClient().newBuilder()
   .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
   .addFormDataPart("appKey","xxx")
   .addFormDataPart("user","xxx")
   .addFormDataPart("pass","xxx")
   .build();
Request request = new Request.Builder()
   .url("https://api.98ip.com/authAccount/update")
   .method("GET", body)
   .build();
Response response = client.newCall(request).execute();