go get github.com/caijunduo/chaojiying-sdk
package main
import (
cjySdk "github.com/caijunduo/chaojiying-sdk"
"log"
)
func main () {
// 获取用户题分
cjy := cjySdk.NewChaoJiYing()
userInfo, err := cjy.UserInfo()
if err != nil {
log.Fatal(err)
}
log.Printf("tifen: %d, lock_tifen: %d", userInfo.TiFen, userInfo.TiFenLock)
}
cjySdk.NewChaoJiYing().UserInfo()
cjySdk.NewChaoJiYing().IdentifyPic(codeType int, minLen int, imgBase64 string)
cjySdk.NewChaoJiYing().ReportError(picId string)
cjySdk.NewChaoJiYing().SetHttpsProxy(u string)
cjySdk.NewChaoJiYing().SetTimeout(t time.Duration)
cjySdk.NewChaoJiYing().SetUser(user string)
cjySdk.NewChaoJiYing().SetPass(pass string)
cjySdk.NewChaoJiYing().SetPass2(pass2 string)
cjySdk.NewChaoJiYing().SetSoftId(softId string)