GameChat Docs
  • Overview
  • Getting Started
  • Basics
    • Game Chat (V2)
      • Game Chat(한국어)
        • Game Chat 사용 준비
        • Game Chat 시작
          • Game Chat 운영 및 관리
          • Unity SDK
        • OpenAPI
          • 채널 생성
          • 채널 수정
          • 채널 삭제
        • Game Chat 리소스 관리
        • Game Chat 릴리즈 노트
      • Game Chat(English)
        • Prerequisites for using Game Chat
        • Getting started with Game Chat
          • Game Chat operation and management
          • Unity SDK
        • OpenAPI
          • Channel creation API
          • Channel edit
          • Channel deletion API
        • Game Chat resource management
        • Game Chat release notes
      • Game Chat(日本語)
        • Game Chat を使用する前に
        • Game Chat を開始する
          • Game Chat の運用と管理
          • Unity SDK
        • OpenAPI
          • チャンネル作成API
          • チャネルの修正
          • チャンネル削除API
        • Game Chatのリソース管理
        • Game Chat のリリースノート
      • Game Chat(中文)
        • Game Chat使用前准备
        • 启动Game Chat
          • Game Chat运营和管理
          • Unity SDK
        • Open API
          • 频道创建API
          • 修改频道
          • 频道删除API
        • Game Chat资源管理
        • Game Chat版本注释
    • Game Chat (V3)
      • Game Chat(한국어)
        • V3 사용 시작
          • Unity SDK 설치
          • 초기화
          • 로그인
          • 채널
          • 메시지
          • 이벤트
          • 친구
          • 푸시
          • 가져오기&내보내기
          • 고정 메시지
          • 외부연동
          • 사용예제
          • Troubleshooting
      • Game Chat(English)
        • Start using V3
          • Install Unity SDK
          • Initialization
          • Login
          • Channel
          • messages
          • Events
          • Friendship
          • Push
          • Import and export
          • Pinned message
          • External integration
          • Usage examples
          • Troubleshooting
      • Game Chat(日本語)
        • V3の使用を開始
          • Unity SDK のインストール
          • 初期化
          • ログイン
          • チャンネル
          • メッセージ
          • イベント
          • 友達
          • プッシュ
          • インポート&エクスポート
          • 固定メッセージ
          • 外部連携
          • ユースケース
          • Troubleshooting
      • Game Chat(中文)
        • 开始使用V3
          • Unity SDK 安装
          • 初始化
          • 登录
          • 频道
          • 消息功能
          • 事件
          • 好友
          • 推送
          • 导入与导出
          • 固定消息
          • 外部集成
          • 使用示例
          • Troubleshooting
Powered by GitBook
On this page
  • Login
  • Access
  • Terminate access
  • User information
  1. Basics
  2. Game Chat (V3)
  3. Game Chat(English)
  4. Start using V3

Login

PreviousInitializationNextChannel

Last updated 6 months ago

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]
);
ID
Type
Description
Required

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.

  • 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
Type
Description

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

ID
Type
Description
Required

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

ID
Type
Description

offset

number

Start offset

per_page

number

The number of returns (up to 100)

API DOCS TOKEN