API Professional Service
QQ 开放平台修改使用范围
QQ 开放平台修改使用范围,我们致力于为用户提供专业的免费 API 数据接口服务
返回接口列表
GET
QQ 开放平台修改使用范围
v1.0最后更新:2026-10-20 02:23:06
免费
调用次数:0
正常运行
响应速度:--
无需API密钥
QQ 开放平台修改使用范围
修改机器人的好友、群或频道的使用范围配置。可设置是否允许他人添加好友、是否允许被添加到群/频道,以及好友添加范围和搜索可见性。(CZCN 镜像:调用需自行携带 czcn 的 ckey)
总调用:0
今日:0
格式:application/json
接口地址
https://api.wm2213.com/API/czcn.php?_czcn=2v4c2
请求地址
https://api.wm2213.com/API/czcn.php?_czcn=2v4c2
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| uin | string | 必填 | 接口返回的 "uin" |
| developer_id | string | 必填 | 接口返回的 "developerId" |
| ticket | string | 必填 | 接口返回的 "ticket" |
| btoken | string | 必填 | 接口返回的 "b-token" |
| bot_appid | string | 必填 | 机器人 AppID |
| set_friend_scope | string | 必填 | 1=修改好友范围配置,0=不修改 |
| set_group_scope | string | 必填 | 1=修改群范围配置,0=不修改 |
| set_channel_scope | string | 必填 | 1=修改频道范围配置,0=不修改 |
| allow_others_add_friend | string | 必填 | 是否允许他人添加好友(0=未知,1=不允许,2=允许) |
| friend_add_scope | string | 必填 | 好友添加范围(0=未知,1=仅好友,2=所有人) |
| allow_be_added_to_group | string | 必填 | 是否允许被添加到群(0=未知,1=不允许,2=允许) |
| allow_be_added_to_channel | string | 必填 | 是否允许被添加到频道(0=未知,1=不允许,2=允许) |
uin *
string接口返回的 "uin"
developer_id *
string接口返回的 "developerId"
ticket *
string接口返回的 "ticket"
btoken *
string接口返回的 "b-token"
bot_appid *
string机器人 AppID
set_friend_scope *
string1=修改好友范围配置,0=不修改
set_group_scope *
string1=修改群范围配置,0=不修改
set_channel_scope *
string1=修改频道范围配置,0=不修改
allow_others_add_friend *
string是否允许他人添加好友(0=未知,1=不允许,2=允许)
friend_add_scope *
string好友添加范围(0=未知,1=仅好友,2=所有人)
allow_be_added_to_group *
string是否允许被添加到群(0=未知,1=不允许,2=允许)
allow_be_added_to_channel *
string是否允许被添加到频道(0=未知,1=不允许,2=允许)
在线测试
返回结果
点击「发送请求」按钮,查看接口返回结果
返回码说明
暂无返回码说明
多语言调用示例
cURL
curl -X GET "https://api.wm2213.com/API/czcn.php?_czcn=2v4c2&key=你的授权密钥&uin=your_uin&developer_id=your_developer_id&ticket=your_ticket&btoken=your_btoken&bot_appid=your_bot_appid&set_friend_scope=your_set_friend_scope&set_group_scope=your_set_group_scope&set_channel_scope=your_set_channel_scope&allow_others_add_friend=your_allow_others_add_friend&friend_add_scope=your_friend_add_scope&allow_be_added_to_group=your_allow_be_added_to_group&allow_be_added_to_channel=your_allow_be_added_to_channel"
Python
import requests
url = "https://api.wm2213.com/API/czcn.php?_czcn=2v4c2&key=你的授权密钥"
params = {
'uin': 'your_uin',
'developer_id': 'your_developer_id',
'ticket': 'your_ticket',
'btoken': 'your_btoken',
'bot_appid': 'your_bot_appid',
'set_friend_scope': 'your_set_friend_scope',
'set_group_scope': 'your_set_group_scope',
'set_channel_scope': 'your_set_channel_scope',
'allow_others_add_friend': 'your_allow_others_add_friend',
'friend_add_scope': 'your_friend_add_scope',
'allow_be_added_to_group': 'your_allow_be_added_to_group',
'allow_be_added_to_channel': 'your_allow_be_added_to_channel'
}
response = requests.get(url, params=params)
print(response.text)
PHP
<?php
$url = "https://api.wm2213.com/API/czcn.php?_czcn=2v4c2&key=你的授权密钥";
$params = [
'uin' => 'your_uin',
'developer_id' => 'your_developer_id',
'ticket' => 'your_ticket',
'btoken' => 'your_btoken',
'bot_appid' => 'your_bot_appid',
'set_friend_scope' => 'your_set_friend_scope',
'set_group_scope' => 'your_set_group_scope',
'set_channel_scope' => 'your_set_channel_scope',
'allow_others_add_friend' => 'your_allow_others_add_friend',
'friend_add_scope' => 'your_friend_add_scope',
'allow_be_added_to_group' => 'your_allow_be_added_to_group',
'allow_be_added_to_channel' => 'your_allow_be_added_to_channel'
];
$demo_url = $url . (strpos($url, '?') === false ? '?' : '&') . http_build_query($params);
$result = file_get_contents($demo_url);
echo $result;
?>
JavaScript
// 使用 fetch 发送GET请求
const url = new URL('https://api.wm2213.com/API/czcn.php?_czcn=2v4c2&key=你的授权密钥');
url.searchParams.append('uin', 'your_uin');
url.searchParams.append('developer_id', 'your_developer_id');
url.searchParams.append('ticket', 'your_ticket');
url.searchParams.append('btoken', 'your_btoken');
url.searchParams.append('bot_appid', 'your_bot_appid');
url.searchParams.append('set_friend_scope', 'your_set_friend_scope');
url.searchParams.append('set_group_scope', 'your_set_group_scope');
url.searchParams.append('set_channel_scope', 'your_set_channel_scope');
url.searchParams.append('allow_others_add_friend', 'your_allow_others_add_friend');
url.searchParams.append('friend_add_scope', 'your_friend_add_scope');
url.searchParams.append('allow_be_added_to_group', 'your_allow_be_added_to_group');
url.searchParams.append('allow_be_added_to_channel', 'your_allow_be_added_to_channel');
fetch(url)
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error('请求失败:', err));
Java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class ApiRequest {
public static void main(String[] args) throws Exception {
HttpClient client = HttpClient.newHttpClient();
String url = "https://api.wm2213.com/API/czcn.php?_czcn=2v4c2&key=你的授权密钥";
// 拼接请求参数
url += "?" + "uin=your_uin&developer_id=your_developer_id&ticket=your_ticket&btoken=your_btoken&bot_appid=your_bot_appid&set_friend_scope=your_set_friend_scope&set_group_scope=your_set_group_scope&set_channel_scope=your_set_channel_scope&allow_others_add_friend=your_allow_others_add_friend&friend_add_scope=your_friend_add_scope&allow_be_added_to_group=your_allow_be_added_to_group&allow_be_added_to_channel=your_allow_be_added_to_channel";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create(url))
.GET()
.build();
client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
.thenApply(HttpResponse::body)
.thenAccept(System.out::println)
.join();
}
}
Go
package main
import (
"fmt"
"net/http"
"net/url"
"io/ioutil"
)
func main() {
baseUrl := "https://api.wm2213.com/API/czcn.php?_czcn=2v4c2&key=你的授权密钥"
parsedUrl, _ := url.Parse(baseUrl)
q := parsedUrl.Query()
q.Set("uin", "your_uin");
q.Set("developer_id", "your_developer_id");
q.Set("ticket", "your_ticket");
q.Set("btoken", "your_btoken");
q.Set("bot_appid", "your_bot_appid");
q.Set("set_friend_scope", "your_set_friend_scope");
q.Set("set_group_scope", "your_set_group_scope");
q.Set("set_channel_scope", "your_set_channel_scope");
q.Set("allow_others_add_friend", "your_allow_others_add_friend");
q.Set("friend_add_scope", "your_friend_add_scope");
q.Set("allow_be_added_to_group", "your_allow_be_added_to_group");
q.Set("allow_be_added_to_channel", "your_allow_be_added_to_channel");
parsedUrl.RawQuery = q.Encode()
resp, err := http.Get(parsedUrl.String())
if err != nil {
fmt.Println("请求失败:", err)
return
}
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
C#
using System;
using System.Net.Http;
using System.Collections.Generic;
using System.Threading.Tasks;
class Program
{
static async Task Main()
{
using var client = new HttpClient();
var url = new Uri("https://api.wm2213.com/API/czcn.php?_czcn=2v4c2&key=你的授权密钥");
var queryParams = new Dictionary<string, string>();
queryParams.Add("uin", "your_uin");
queryParams.Add("developer_id", "your_developer_id");
queryParams.Add("ticket", "your_ticket");
queryParams.Add("btoken", "your_btoken");
queryParams.Add("bot_appid", "your_bot_appid");
queryParams.Add("set_friend_scope", "your_set_friend_scope");
queryParams.Add("set_group_scope", "your_set_group_scope");
queryParams.Add("set_channel_scope", "your_set_channel_scope");
queryParams.Add("allow_others_add_friend", "your_allow_others_add_friend");
queryParams.Add("friend_add_scope", "your_friend_add_scope");
queryParams.Add("allow_be_added_to_group", "your_allow_be_added_to_group");
queryParams.Add("allow_be_added_to_channel", "your_allow_be_added_to_channel");
var uriBuilder = new UriBuilder(url);
uriBuilder.Query = new FormUrlEncodedContent(queryParams).ReadAsStringAsync().Result;
url = uriBuilder.Uri;
var response = await client.GetAsync(url);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
}
}
Shell
# 使用curl发送GET请求
curl -X GET "https://api.wm2213.com/API/czcn.php?_czcn=2v4c2&key=你的授权密钥&uin=your_uin&developer_id=your_developer_id&ticket=your_ticket&btoken=your_btoken&bot_appid=your_bot_appid&set_friend_scope=your_set_friend_scope&set_group_scope=your_set_group_scope&set_channel_scope=your_set_channel_scope&allow_others_add_friend=your_allow_others_add_friend&friend_add_scope=your_friend_add_scope&allow_be_added_to_group=your_allow_be_added_to_group&allow_be_added_to_channel=your_allow_be_added_to_channel"
API Key 配置说明
=== API Key 使用说明 ===
1. 在本站注册账号并登录
2. 进入用户中心 → API密钥 → 申请API Key
3. 管理员审核通过后获得 apikey
4. 调用接口时在URL参数中添加 apikey 参数
示例:
https://api.wm2213.com/API/czcn.php?_czcn=2v4c2&apikey=你的apikey
注意事项:
- 请勿将 apikey 泄露给他人
- 如发现 apikey 泄露,请及时在用户中心申请删除
- 每个 apikey 有调用频率限制,请合理使用
词库
# Secluded/QRspeed/ClousX6
A:$访问 https://api.wm2213.com/API/czcn.php?_czcn=2v4c2&key=你的授权密钥&uin=your_uin&developer_id=your_developer_id&ticket=your_ticket&btoken=your_btoken&bot_appid=your_bot_appid&set_friend_scope=your_set_friend_scope&set_group_scope=your_set_group_scope&set_channel_scope=your_set_channel_scope&allow_others_add_friend=your_allow_others_add_friend&friend_add_scope=your_friend_add_scope&allow_be_added_to_group=your_allow_be_added_to_group&allow_be_added_to_channel=your_allow_be_added_to_channel$
Kotlin
import okhttp3.FormBody
import okhttp3.OkHttpClient
import okhttp3.Request
fun main() {
val client = OkHttpClient()
val url = "https://api.wm2213.com/API/czcn.php?_czcn=2v4c2&key=你的授权密钥"
// GET 请求拼接参数
val requestBuilder = Request.Builder().url(url + "?" + "uin=your_uin&developer_id=your_developer_id&ticket=your_ticket&btoken=your_btoken&bot_appid=your_bot_appid&set_friend_scope=your_set_friend_scope&set_group_scope=your_set_group_scope&set_channel_scope=your_set_channel_scope&allow_others_add_friend=your_allow_others_add_friend&friend_add_scope=your_friend_add_scope&allow_be_added_to_group=your_allow_be_added_to_group&allow_be_added_to_channel=your_allow_be_added_to_channel")
val request = requestBuilder.get().build()
client.newCall(request).execute().use { response ->
if (!response.isSuccessful) throw RuntimeException("请求失败: ${response.code}")
println(response.body?.string())
}
}