public interface CozeAuthAPI
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<retrofit2.Response<OAuthToken>> |
account(Map<String,String> headers,
String accountID,
GetAccessTokenReq req) |
io.reactivex.Single<retrofit2.Response<DeviceAuthResp>> |
device(DeviceAuthReq req) |
io.reactivex.Single<retrofit2.Response<DeviceAuthResp>> |
device(String workspaceID,
DeviceAuthReq req) |
io.reactivex.Single<retrofit2.Response<OAuthToken>> |
enterprise(Map<String,String> headers,
String enterpriseID,
GetAccessTokenReq req) |
io.reactivex.Single<retrofit2.Response<OAuthToken>> |
retrieve(Map<String,String> headers,
GetAccessTokenReq req) |
@Headers(value="Content-Type: application/json") @POST(value="/api/permission/oauth2/token") io.reactivex.Single<retrofit2.Response<OAuthToken>> retrieve(@HeaderMap Map<String,String> headers, @Body GetAccessTokenReq req)
@Headers(value="Content-Type: application/json") @POST(value="/api/permission/oauth2/device/code") io.reactivex.Single<retrofit2.Response<DeviceAuthResp>> device(@Body DeviceAuthReq req)
@Headers(value="Content-Type: application/json")
@POST(value="/api/permission/oauth2/workspace_id/{workspace_id}/device/code")
io.reactivex.Single<retrofit2.Response<DeviceAuthResp>> device(@Path(value="workspace_id")
String workspaceID,
@Body
DeviceAuthReq req)
@Headers(value="Content-Type: application/json")
@POST(value="/api/permission/oauth2/account/{account_id}/token")
io.reactivex.Single<retrofit2.Response<OAuthToken>> account(@HeaderMap
Map<String,String> headers,
@Path(value="account_id")
String accountID,
@Body
GetAccessTokenReq req)
@Headers(value="Content-Type: application/json")
@POST(value="/api/permission/oauth2/enterprise_id/{enterprise_id}/token")
io.reactivex.Single<retrofit2.Response<OAuthToken>> enterprise(@HeaderMap
Map<String,String> headers,
@Path(value="enterprise_id")
String enterpriseID,
@Body
GetAccessTokenReq req)
Copyright © 2025. All rights reserved.