文档

支持

Vivox Core SDK

Vivox Core SDK

Submit a login request

Learn about submit a login request.
阅读时间1 分钟最后更新于 12 天前

Vivox provides structures to store a common set of parameters for different request types. Use these structures to craft your request and issue it to the Vivox SDK to be sent to Vivox services. Create your login request in your game client and store any necessary parameters including the
access_token
received from your game server.
vx_req_account_anonymous_login_t *req;vx_req_account+anonymous_login_create(&req);req -> account_name = vx_strdup(“.myissuer.myid.”);req -> account_handle = vx_strdup(“.myid.”);req -> connector_handle = vx_strdup(“c1”);req->access_token = vx_strdup(<token from service>);
Issue the request to the Vivox SDK from the game client.
vx_issue_request3(&req ->base, &request_count);
Next step, process login responses and events.