This repository has a development and master branch. If you want to use it, please use the master branch
c c++ 接口服务器
c c++ interface api service
This is an api interface for information query service,At present, the information search service on the market need to charge, and our information search service is free and open source.
This service mainly uses HTTP/V1.1 to implement various interface services
This is a general information query service that does not contain any language attributes
You can use this code to implement your own information query service, which supports querying any information
The purpose of development and implementation based on libXEngine is a cross-platform network storage service
and support plugin module
support system above windows 7sp1 and linux(ubuntu20.04,centos8)
XEngine need V7.30 or above
use vs open and complie
You need to configure the environment in the following way, otherwise you may need to set the library directory in the project yourself
download xengine through git.read xengine project readme file to configure your env
Linux use Makefile to complie
supproted ubuntu x64 or centos x64
execute command in XEngine_Source path
make complie
make FLAGS=InstallAll install
make FLAGS=CleanAll clear
You can refer to the project under XEngine_PluginModule to write the plugin
The written plugin needs to be configured via JSON to be enabled
You can refer to the document under the docment directory. It contains API protocol and service description.
Address:app.xyry.org,Port:5501
For more information please refer to the documentation
phone information query
api:http://app.xyry.org:5501/api?function=phone¶ms1=13699439999¶ms2=0
{
"code":0,
"data":{
"nAreaCode":28,
"nPhoneNumber":13699439999,
"nZipCode":610000,
"tszCity":"成都",
"tszProvincer":"四川"
},
"msg":"success"
}
ip address information
api:http://app.xyry.org:5501/api?function=ip¶ms1=1.29.164.255¶ms2=0
{
"code":0,
"data":{
"tszIPAddr":"1.29.164.255",
"tszIPAddress":"内蒙古通辽市霍林郭勒市",
"tszIPCity":"通辽市",
"tszIPCountry":"中国",
"tszIPCounty":"霍林郭勒市",
"tszIPEnd":"1.29.164.255",
"tszIPISP":"联通",
"tszIPProvince":"内蒙古",
"tszIPStart":"1.29.164.0",
"tszIPTime":"2021-11-03 07:33:50"
},
"msg":"success"
}
id information query
api:http://app.xyry.org:5501/api?function=id¶ms1=511025198800000000¶ms2=0
{
"code":0,
"data":{
"nBirthDay":00,
"nBirthMonth":00,
"nBirthYear":1988,
"nCheck":2,
"nPoliceID":87,
"nSex":1,
"tszCity":"内江市",
"tszCounty":"资中县",
"tszIDNumber":"511025198800000000",
"tszProvincer":"四川省"
},
"msg":"success"
}
bank card ver
api:http://app.xyry.org:5501/api?function=bank¶ms1=6214832830000000¶ms2=0
{
"code":0,
"data":{
"enBankType":2,
"tszBankAbridge":"CMB",
"tszBankName":"招商银行",
"tszBankNumber":"6214832830000000"
},
"msg":"success"
}
language
api:http://app.xyry.org:5501/api?function=language¶ms1=简体到繁体¶ms2=0¶ms3=1
{
"code":0,
"data":{
"enType":1,
"tszDestStr":"簡體到繁體",
"tszSourceStr":"简体到繁体"
},
"msg":"success"
}
translation
api:http://app.xyry.org:5501/api?function=translation¶ms1=中国¶ms2=0¶ms3=0
{
"code":0,
"data":{
"enType":0,
"tszDestStr":"China",
"tszSourceStr":"中国"
},
"msg":"success"
}
I hope you will submit more code to participate in the contribution
If you think this software is helpful to you, please give us a START
if you have eny quest.post issues...
Sign in to post a comment
Repository Comments ( 0 )