Cancel Join Request
Cancels a guild join request.
Check URL
This API uses the service-api.playnanoo.com domain.
API Information
- URL:
https://service-api.playnanoo.com/guild/v20230101/personal/request/cancel - Method:
PUT - Authentication Required: Yes (Bearer Token)
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| device_id | string | Required | Device ID |
| table_code | string | Required | Table code |
| uid | string | Required | Guild UID to cancel join request |
Response Data
On Success
ErrorCode: Empty string or nullMessage: Success message
Code Example
void UMyGame::CancelGuildRequest(const FString& DeviceId, const FString& TableCode, const FString& GuildUid)
{
// 플레이어 정보가 포함된 요청 바디 생성
TSharedPtr<FJsonObject> Body = FPlayNANOOHelper::CreateRequestBody();
Body->SetStringField(TEXT("device_id"), DeviceId);
Body->SetStringField(TEXT("table_code"), TableCode);
Body->SetStringField(TEXT("uid"), GuildUid);
// JSON 문자열 변환
FString JsonBody = FPlayNANOOHelper::ToJsonString(Body);
// HTTP 요청
TSharedRef<IHttpRequest> Request = FHttpModule::Get().CreateRequest();
Request->SetURL(TEXT("https://service-api.playnanoo.com/guild/v20230101/personal/request/cancel"));
Request->SetVerb(TEXT("PUT"));
FPlayNANOOHelper::SetCommonHeaders(Request, true); // 인증 토큰 포함
Request->SetContentAsString(JsonBody);
Request->OnProcessRequestComplete().BindLambda(
[](FHttpRequestPtr Req, FHttpResponsePtr Res, bool bSuccess)
{
if (bSuccess && Res.IsValid())
{
TSharedPtr<FJsonObject> JsonObject;
TSharedRef<TJsonReader<>> Reader = TJsonReaderFactory<>::Create(Res->GetContentAsString());
if (FJsonSerializer::Deserialize(Reader, JsonObject))
{
FString Message = JsonObject->GetStringField(TEXT("Message"));
UE_LOG(LogTemp, Log, TEXT("가입 신청 취소 성공!"));
UE_LOG(LogTemp, Log, TEXT("Message: %s"), *Message);
}
}
});
Request->ProcessRequest();
}
Authentication Required
This API requires Bearer token authentication. You must first log in to obtain an access token.
Use Cases
Use this API when:
- User directly cancels their join request
- Canceling an existing request to apply to a different guild
- Looking for another guild because approval is taking too long
Post-Cancellation Status
When a join request is canceled:
- It is immediately removed from the request list
- You can apply to the same guild again
- You can also apply to other guilds
Already Approved Case
If the join request has already been approved and you've become a member, it cannot be canceled. In this case, an ALREADY_APPROVED error will be returned, and you must use the guild withdraw API.