forked from xhofe/115-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconst.go
More file actions
38 lines (34 loc) · 1.27 KB
/
const.go
File metadata and controls
38 lines (34 loc) · 1.27 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
26
27
28
29
30
31
32
33
34
35
36
37
38
package sdk
const (
ApiBaseURL = "https://proapi.115.com"
ApiAuthURL = "https://passportapi.115.com"
)
// Auth API
const (
ApiAuthDeviceCode = ApiAuthURL + "/open/authDeviceCode"
ApiQrCodeStatus = "https://qrcodeapi.115.com/get/status/"
ApiCodeToToken = ApiAuthURL + "/open/deviceCodeToToken"
ApiRefreshToken = ApiAuthURL + "/open/refreshToken"
)
// User API
const (
ApiUserInfo = ApiBaseURL + "/open/user/info"
)
// File API
const (
ApiFsUploadGetToken = ApiBaseURL + "/open/upload/get_token"
ApiFsUploadInit = ApiBaseURL + "/open/upload/init"
ApiFsUploadResume = ApiBaseURL + "/open/upload/resume"
ApiFsMkdir = ApiBaseURL + "/open/folder/add"
ApiFsGetFiles = ApiBaseURL + "/open/ufile/files"
ApiFsGetFolderInfo = ApiBaseURL + "/open/folder/get_info"
ApiFsSearchFiles = ApiBaseURL + "/open/ufile/search"
ApiFsCopy = ApiBaseURL + "/open/ufile/copy"
ApiFsMove = ApiBaseURL + "/open/ufile/move"
ApiFsDownURL = ApiBaseURL + "/open/ufile/downurl"
ApiFsUpdate = ApiBaseURL + "/open/ufile/update"
ApiFsDelete = ApiBaseURL + "/open/ufile/delete"
ApiFsRbList = ApiBaseURL + "/open/rb/list"
ApiFsRbRevert = ApiBaseURL + "/open/rb/revert"
ApiFsRbDelete = ApiBaseURL + "/open/rb/del"
)