代码拉取完成,页面将自动刷新
同步操作将从 Rex/go-qq-openapi-v3 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
package qqopenapi_v3
import (
"net/url"
"testing"
)
func TestOpenAPI_HTTP(t *testing.T) {
var appid = 600
var appkey = "04017120b52c43cbb6b1c7d87fd042c9"
var openid = "0000000000000000000000000039811C"
var openkey = "BAA4A7F86ABCE56A4FC98AD0B81FB542"
var pf = "qzone"
var api = NewOpenAPIV3(appid, appkey, nil)
var param = url.Values{
"pf": []string{pf},
"openid": []string{openid},
"openkey": []string{openkey},
}
var jdata = api.Call("post", "/v3/user/get_info", HTTP_PROTOCOL, param)
if jdata != nil {
strJdata, _ := jdata.ToString()
t.Log(strJdata)
}
}
func TestOpenAPI_HTTPS(t *testing.T) {
var appid = 600
var appkey = "04017120b52c43cbb6b1c7d87fd042c9"
var openid = "0000000000000000000000000039811C"
var openkey = "BAA4A7F86ABCE56A4FC98AD0B81FB542"
var pf = "qzone"
var api = NewOpenAPIV3(appid, appkey, nil)
var param = url.Values{
"pf": []string{pf},
"openid": []string{openid},
"openkey": []string{openkey},
}
var jdata = api.Call("post", "/v3/user/get_info", HTTPS_PROTOCOL, param)
if jdata != nil {
strJdata, _ := jdata.ToString()
t.Log(strJdata)
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。