Categorygithub.com/jlqwer/ics-sdk-go
modulepackage
0.1.6
Repository: https://github.com/jlqwer/ics-sdk-go.git
Documentation: pkg.go.dev

# README

ics-sdk-go

初始化

调用接口前先初始化:

package main
import "github.com/jlqwer/ics-sdk-go"
func main() {
	appid := ""
	secretId := ""
	secretKey := ""
    ics.Init(appid, secretId, secretKey)
}

获取黑白名单列表

package main
import (
    "fmt"
    "github.com/jlqwer/ics-sdk-go"
)
func main() {
	appid := ""
	secretId := ""
	secretKey := ""
	ics.Init(appid, secretId, secretKey)
    res := ics.GetBlacklistIp() //黑名单
    fmt.Println(res)
    res = ics.GetWhitelistIp() //白名单
    fmt.Println(res)
}

检查IP信息(自动添加黑名单)

package main
import (
    "fmt"
    "github.com/jlqwer/ics-sdk-go"
)
func main() {
	appid := ""
	secretId := ""
	secretKey := ""
	ics.Init(appid, secretId, secretKey)
    res := ics.CheckIp(ip, useragent, uri)
    fmt.Println(res)
}

IP归属地查询

package main
import (
    "fmt"
    "github.com/jlqwer/ics-sdk-go"
)
func main() {
	appid := ""
	secretId := ""
	secretKey := ""
	ics.Init(appid, secretId, secretKey)
    res := ics.GetIpGeo(ip)
    fmt.Println(res)
}

# Functions

CheckIp 检查IP黑白名单&真假蜘蛛.
GetBlacklistIp 获取IP黑名单列表.
GetIpGeo IP归属地查询.
GetWhitelistIp 获取IP白名单列表.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author