Skip to main content

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​

ParameterTypeRequiredDescription
table_codestringRequiredTable code
DeviceInfo Inheritance

The Req class of this API inherits from DeviceInfo. All properties of DeviceInfo are automatically included.

Response Data​

Res Class​

FieldTypeDescription
ItemsList\<SearchItemModel>Join request list

SearchItemModel Structure​

FieldTypeDescription
TableCodestringTable code
UidstringGuild unique ID
NamestringGuild name
PointdoubleGuild points
CountrystringCountry code
MemberCountintCurrent member count
MemberLimitintMember limit
AutoJoinstringAuto join status
ExtraDatastringExtra data
InDatestringGuild creation date
RequestInDatestringRequest 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}");
}
));
}