Log Out¶
Log out of the account.
Operation Permissions¶
User login to Application Portal is required.
Request Format¶
GET https://{apigw-address}/app-portal-service/v2.0/logout
Request Parameters (Headers)¶
Name |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|
Authorization |
Mandatory |
String |
The access token (or bearer token). Refer to Log In or Refresh Access Token to learn how to get the access token. |
Response Parameters¶
Name |
Data Type |
Description |
---|---|---|
data |
Boolean |
|
Samples¶
Request Sample¶
url: https://{apigw-address}/app-portal-service/v2.0/logout
headers: {"Authorization":"yourBearerToken"}
method: GET
Return Sample¶
{
"code":200,
"message":"",
"data":true
}
Java SDK Sample¶
public class AppPortalSdkTest{
@Test
public void logoutTest() {
LogoutRequest logoutRequest = new LogoutRequest("your_access_token");
LogoutResponse response = Poseidon.config(PConfig.init().appKey("your_access_key").appSecret("your_secret_key").debug())
.url("https://{apigw-address}").getResponse(logoutRequest, LogoutResponse.class);
System.out.println("Logout res: " + JSON.toJSONString(response));
}
}