系统请求参数
| 参数名 | 类型 | 必填 | 说明 | 默认值 | 示例 |
|---|---|---|---|---|---|
appid |
int | 是 | 接口ID | - |
- |
ak |
string | 是 | 调用密钥,注册后即可获取 | - |
- |
应用请求参数
| 参数名 | 类型 | 必填 | 说明 | 默认值 | 示例 |
|---|---|---|---|---|---|
total |
String | 是 | 税前工资 | - |
10000 |
free |
String | 是 | 五险一金及其他 | - |
1000 |
返回数据示例
{"msg":{"income":8705,"tax":295},"ret_code":0}
示例代码
<?php
$url = 'https://api.liangmlk.cn?appid=1752&ak=你的AK?total=10000&free=1000';
// 请求参数
$params = array(
'total' => '10000',
'free' => '1000'
);
// 构建URL
$url .= '?' . http_build_query($params);
// 使用curl发送GET请求
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$response = curl_exec($ch);
curl_close($ch);
print_r( $response);
import requests
url = 'https://api.liangmlk.cn?appid=1752&ak=你的AK?total=10000&free=1000'params = { 'total': '10000',
'free': '1000'
}
response = requests.get(url, params=params)print(response.json())
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class ApiExample {
public static void main(String[] args) throws Exception {
String url = "https://api.liangmlk.cn?appid=1752&ak=你的AK?total=10000&free=1000";
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create(url))
.GET()
.build();
HttpResponse response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
const axios = require('axios');
axios.GET('https://api.liangmlk.cn?appid=1752&ak=你的AK?total=10000&free=1000', { params: {
total: '10000',
free: '1000'
}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});
package main
import (
"fmt"
"net/http" "net/url"
)
func main() {
url := "https://api.liangmlk.cn?appid=1752&ak=你的AK?total=10000&free=1000"
resp, err := http.Get(url)
if err != nil {
fmt.Println("Error:", err)
return
}
defer resp.Body.Close()
fmt.Println(resp.Body)
}
curl -X GET "https://api.liangmlk.cn?appid=1752&ak=你的AK?total=10000&free=1000"
// 使用jQuery AJAX
$.ajax({
url: 'https://api.liangmlk.cn?appid=1752&ak=你的AK?total=10000&free=1000',
type: 'GET', data: { total: '10000',
free: '1000'
},
success: function(response) {
console.log(response);
},
error: function(error) {
console.log(error);
}
});
错误码
| 错误码 | 错误信息 | 解决方案 |
|---|---|---|
100 |
缺少调用凭证 | 请检查是否传入appid和ak参数 |
101 |
接口不存在或已下线 | 请检查接口ID是否正确或联系客服 |
102 |
按量付费接口已全部下线 | 请使用会员接口或联系客服 |
103 |
付费调用次数不足 | 请充值或购买会员套餐 |
104 |
当日免费次数已用完 | 请明天再试或购买会员套餐 |
106 |
在IP黑名单 | 请联系客服解除限制 |
107 |
在用户黑名单里 | 请联系客服解除限制 |
服务保障
可靠安全
提供高可用、低延迟的服务,实施严格的安全措施,确保业务和数据安全。
服务专业
专业团队提供全方位的售前和售后服务,随时解答您的疑问。
数据合规
严格遵守数据保护法规,确保您的数据安全合规。
灵活持续
提供多样化的解决方案,并持续优化以满足您不断变化的业务需求。