Login
Login
After initialization is complete, you can log in by entering your username, name, and profile image address (optional).
Access
await nc.Connect(
id: [USERNAME],
name: [NAME],
profile: [PROFILE_URL],
customField: [CUSTOM_FIELD],
token: [TOKEN]
);
USERNAME
string
ID
O
NAME
string
Nickname
X
PROFILE_URL
string
Profile address URL
X
LANGUAGE
string
Language code
X
CUSTOM_FIELD
string
User-defined field
X
TOKEN
string
Token value
X
Note
Obtain a token through the API for log-in security.
API DOCS TOKEN lets you use a token issued through the API.
If you do not want to use the token method, set disable in Dashboard > Security settings > Token authentication.
Terminate access
Use the code below to disconnect from the connected Game Chat server.
await nc.Disconnect();
User information
Member Data Class
id
string
User ID
name
string
Username
profile
string
Image address
Import user information
Gets information about a specific ID (only the nickname is sent for security reasons).
Hashtable filter = new Hashtable
{
{ "id", [USER_ID] }
};
Hashtable sort = new Hashtable
{
{ "created_at", -1 }
};
Hashtable option = new Hashtable
{
{ "offset", 0 },
{ "per_page", 10 }
};
var users = await nc.getUsers(filter, sort, option);
Parameters
filter
object
Search is available for all fields of a query through filtering
O
sort
object
Define the filter for the fields you want to sort (ascending order "1", descending order "-1")
X
option
object
See the following when there are options
X
Options
offset
number
Start offset
per_page
number
The number of returns (up to 100)
Last updated