-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathAuthV2Base.java
More file actions
25 lines (21 loc) · 1.1 KB
/
Copy pathAuthV2Base.java
File metadata and controls
25 lines (21 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package io.github.kloping.qqbot.http;
import io.github.kloping.qqbot.Start0;
import io.github.kloping.qqbot.http.data.AccessToken;
import io.github.kloping.spt.annotations.http.Headers;
import io.github.kloping.spt.annotations.http.HttpClient;
import io.github.kloping.spt.annotations.http.PostPath;
import io.github.kloping.spt.annotations.http.RequestBody;
import java.util.Map;
/**
* @author github.kloping
*/
@HttpClient("https://bots.qq.com/")
public interface AuthV2Base {
/**
* <table><thead><tr><th><strong>属性</strong></th> <th><strong>类型</strong></th> <th><strong>必填</strong></th> <th><strong>说明</strong></th></tr></thead> <tbody><tr><td>appId</td> <td>string</td> <td>是</td> <td>在开放平台管理端上获得。</td></tr> <tr><td>clientSecret</td> <td>string</td> <td>是</td> <td>在开放平台管理端上获得。</td></tr></tbody></table>
*
* @return
*/
@PostPath("/app/getAppAccessToken")
AccessToken auth(@RequestBody(type = io.github.kloping.spt.annotations.http.RequestBody.type.json) Start0.AppidAndSecret aa, @Headers Map<String, String> headers);
}