Get Join Request List
API to retrieve the list of guilds the user has requested to join.
URL Confirmation
This API uses the service-api.playnanoo.com domain.
API Information
- URL:
https://service-api.playnanoo.com/guild/v20230101/personal/request/search - Method:
PUT - Authentication Required: Yes
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| table_code | string | Required | Table code |
DeviceInfo Inheritance
The Req class of this API inherits from DeviceInfo. All properties of DeviceInfo are automatically included.
Response Data
Res Class
| Field | Type | Description |
|---|---|---|
| Items | List\<SearchItemModel> | Join request list |
SearchItemModel Structure
| Field | Type | Description |
|---|---|---|
| TableCode | string | Table code |
| Uid | string | Guild unique ID |
| Name | string | Guild name |
| Point | double | Guild points |
| Country | string | Country code |
| MemberCount | int | Current member count |
| MemberLimit | int | Member limit |
| AutoJoin | string | Auto join status |
| ExtraData | string | Extra data |
| InDate | string | Guild creation date |
| RequestInDate | string | Request date |
Unity C# Implementation
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
public class GuildPersonalSearch
{
static string path = "https://service-api.playnanoo.com/guild/v20230101/personal/request/search";
[Serializable]
public class Req : DeviceInfo
{
public string table_code;
public IEnumerator Send(
string tableCode,
Action<Res> onSuccess,
Action<BaseResponse> onError
)
{
if (!string.IsNullOrEmpty(tableCode)) this.table_code = tableCode;
yield return HttpClient.Send<Req, Res>(
UnityWebRequest.kHttpVerbPUT,
path,
requireToken: true,
body: this,
onSuccess: onSuccess,
onError: onError
);
}
}
[Serializable]
public class Res : BaseResponse
{
public List<SearchItemModel> Items;
}
[Serializable]
public class SearchItemModel
{
public string TableCode;
public string Uid;
public string Name;
public double Point;
public string Country;
public int MemberCount;
public int MemberLimit;
public string AutoJoin;
public string ExtraData;
public string InDate;
public string RequestInDate;
}
}
Usage Example
public void GetMyGuildRequests()
{
GuildPersonalSearch.Req req = new GuildPersonalSearch.Req();
StartCoroutine(req.Send(
tableCode: "guild_table",
onSuccess: res =>
{
foreach (var item in res.Items)
{
Debug.Log($"Uid: {item.Uid}, Name: {item.Name}");
Debug.Log($"MemberCount: {item.MemberCount}/{item.MemberLimit}");
Debug.Log($"RequestInDate: {item.RequestInDate}");
}
},
onError: (error) =>
{
Debug.LogError($"Join request list retrieval failed: [{error.ErrorCode}] {error.Message}");
}
));
}