WAFGO正在准备页面
接入指南

API 文档

开发者资源 · API 参考

查阅 WAFGO API 的服务、请求路径和消息定义。按权限角色浏览接口,快速找到接入所需的参数与返回结构。

下载 JSON 文档
151 个服务1063 个接口
用户DNS套餐服务找到 7 个接口

使用余额购买用户套餐

buyNSUserPlan

POST/NSUserPlanService/buyNSUserPlan
原始定义
rpc buyNSUserPlan(BuyNSUserPlanRequest) returns (BuyNSUserPlanResponse);

请求消息

BuyNSUserPlanRequest

使用余额购买用户套餐

请求消息 · 字段定义
message BuyNSUserPlanRequest{
	int64 userId = 1;
	int64 planId = 2;
	string period = 3;
}

响应消息

BuyNSUserPlanResponse
响应消息 · 字段定义
message BuyNSUserPlanResponse {
	int64 userPlanId = 1;
}

说明与注释按当前语言显示。接口路径、方法名、字段名和类型与原始接口定义保持一致。

接入指南