Namespace: PlayerIOClient
Language: C# / .NET
Entry class for making a QuickConnect connection to Player.IO
Here is an example on how to register a new SimpleUser:
And a returning user can connect like this:
After registering or connecting, you get a Client object which you can then use just as if you used the regular Connect method.
Note that unlike the regular Connect method you don't specify the name of the connection to use, instead you set this up in the QuickConnect admin panel for your game.
Methods | |||
|---|---|---|---|
| public void |
Authenticates a Facebook user using a Facebook access_token. |
||
| public Client |
Authenticates a Facebook user using a Facebook access_token. |
||
| public void |
Authenticates a Facebook user using a Facebook access_token. |
||
| public void |
Authenticates a Kongregate user and returns a connection token. |
||
| public void |
Authenticates a Kongregate user and returns a connection token. |
||
| public Client |
Authenticates a Kongregate user and returns a connection token. |
||
| public Client |
Authenticates a user in the simple user db and returns a connection token. |
||
| public void |
Authenticates a user in the simple user db and returns a connection token. |
||
| public void |
Authenticates a user in the simple user db and returns a connection token. |
||
| public SimpleGetCaptchaOutput |
Creates a Captcha image and key, to be used for registrations where the added security of Captcha is required.. |
||
| public void |
Creates a Captcha image and key, to be used for registrations where the added security of Captcha is required.. |
||
| public void |
Creates a Captcha image and key, to be used for registrations where the added security of Captcha is required.. |
||
| public void |
Initiates the password recovery process for a user. The user must have supplied an email address during registration. |
||
| public void |
Initiates the password recovery process for a user. The user must have supplied an email address during registration. |
||
| public void |
Initiates the password recovery process for a user. The user must have supplied an email address during registration. |
||
| public void |
Registers a new user in the simple user db and returns a connection token. |
||
| public Client |
Registers a new user in the simple user db and returns a connection token. |
||
| public void |
Registers a new user in the simple user db and returns a connection token. |
||
| public void |
|
Authenticates a Facebook user using a Facebook access_token.
| string | gameId |
| The game id of the game you wish to connect to. This value can be found in the admin panel | |
| string | access_token |
| The Facebook access_token for the user. | |
| string | partnerId |
| The PartnerPay partner id this user should be tagged with, if you are using the PartnerPay system. | |
| Callback<Client> | successCallback |
| Callback with the connected client, if successful |
| public Client |
|
Authenticates a Facebook user using a Facebook access_token.
| string | gameId |
| The game id of the game you wish to connect to. This value can be found in the admin panel | |
| string | access_token |
| The Facebook access_token for the user. | |
| string | partnerId |
| The PartnerPay partner id this user should be tagged with, if you are using the PartnerPay system. |
| public void |
|
Authenticates a Facebook user using a Facebook access_token.
| string | gameId |
| The game id of the game you wish to connect to. This value can be found in the admin panel | |
| string | access_token |
| The Facebook access_token for the user. | |
| string | partnerId |
| The PartnerPay partner id this user should be tagged with, if you are using the PartnerPay system. | |
| Callback<Client> | successCallback |
| Callback with the connected client, if successful | |
| Callback<PlayerIOError> | errorCallback |
| Callback that will be called instead of successCallback if an error occurs. |
| public void |
|
Authenticates a Kongregate user and returns a connection token.
| string | gameId |
| The game id of the game you wish to connect to. This value can be found in the admin panel | |
| string | userId |
| The Kongregate user id of the user you wish to authenticate. | |
| string | gameAuthToken |
| The Kongregate game auth token of the user's session. | |
| Callback<Client> | successCallback |
| Callback with the connected client, if successful | |
| Callback<PlayerIOError> | errorCallback |
| Callback that will be called instead of successCallback if an error occurs. |
| public void |
|
Authenticates a Kongregate user and returns a connection token.
| string | gameId |
| The game id of the game you wish to connect to. This value can be found in the admin panel | |
| string | userId |
| The Kongregate user id of the user you wish to authenticate. | |
| string | gameAuthToken |
| The Kongregate game auth token of the user's session. | |
| Callback<Client> | successCallback |
| Callback with the connected client, if successful |
| public Client |
|
Authenticates a Kongregate user and returns a connection token.
| string | gameId |
| The game id of the game you wish to connect to. This value can be found in the admin panel | |
| string | userId |
| The Kongregate user id of the user you wish to authenticate. | |
| string | gameAuthToken |
| The Kongregate game auth token of the user's session. |
| public Client |
|
Authenticates a user in the simple user db and returns a connection token.
| string | gameId |
| The game id of the game you wish to connect to. This value can be found in the admin panel | |
| string | usernameOrEmail |
| The username or email of the user you wish to authenticate. | |
| string | password |
| The password of the user you wish to authenticate. |
| public void |
|
Authenticates a user in the simple user db and returns a connection token.
| string | gameId |
| The game id of the game you wish to connect to. This value can be found in the admin panel | |
| string | usernameOrEmail |
| The username or email of the user you wish to authenticate. | |
| string | password |
| The password of the user you wish to authenticate. | |
| Callback<Client> | successCallback |
| Callback with the connected client, if successful |
| public void |
|
Authenticates a user in the simple user db and returns a connection token.
| string | gameId |
| The game id of the game you wish to connect to. This value can be found in the admin panel | |
| string | usernameOrEmail |
| The username or email of the user you wish to authenticate. | |
| string | password |
| The password of the user you wish to authenticate. | |
| Callback<Client> | successCallback |
| Callback with the connected client, if successful | |
| Callback<PlayerIOError> | errorCallback |
| Callback that will be called instead of successCallback if an error occurs. |
| public SimpleGetCaptchaOutput |
|
Creates a Captcha image and key, to be used for registrations where the added security of Captcha is required..
| string | gameId |
| The game id of the game you wish to connect to. This value can be found in the admin panel. | |
| int | width |
| The width of the Captcha image. | |
| int | height |
| The height of the Captcha image. |
| public void |
|
Creates a Captcha image and key, to be used for registrations where the added security of Captcha is required..
| string | gameId |
| The game id of the game you wish to connect to. This value can be found in the admin panel. | |
| int | width |
| The width of the Captcha image. | |
| int | height |
| The height of the Captcha image. | |
| Callback<SimpleGetCaptchaOutput> | successCallback |
| Callback with information about the captcha image, if successful |
| public void |
|
Creates a Captcha image and key, to be used for registrations where the added security of Captcha is required..
| string | gameId |
| The game id of the game you wish to connect to. This value can be found in the admin panel. | |
| int | width |
| The width of the Captcha image. | |
| int | height |
| The height of the Captcha image. | |
| Callback<SimpleGetCaptchaOutput> | successCallback |
| Callback with information about the captcha image, if successful | |
| Callback<PlayerIOError> | errorCallback |
| Callback that will be called instead of successCallback if an error occurs. |
| public void |
|
Initiates the password recovery process for a user. The user must have supplied an email address during registration.
| string | gameId |
| The game id of the game the user is registered in. | |
| string | usernameOrEmail |
| The username or email address of the user that wishes to recover his password. | |
| Callback | successCallback |
| Callback if successful | |
| Callback<PlayerIOError> | errorCallback |
| Callback that will be called instead of successCallback if an error occurs. |
| public void |
|
Initiates the password recovery process for a user. The user must have supplied an email address during registration.
| string | gameId |
| The game id of the game the user is registered in. | |
| string | usernameOrEmail |
| The username or email address of the user that wishes to recover his password. |
| public void |
|
Initiates the password recovery process for a user. The user must have supplied an email address during registration.
| string | gameId |
| The game id of the game the user is registered in. | |
| string | usernameOrEmail |
| The username or email address of the user that wishes to recover his password. | |
| Callback | successCallback |
| Callback if successful |
| public void |
|
Registers a new user in the simple user db and returns a connection token.
| string | gameId |
| The game id of the game you wish to connect to. This value can be found in the admin panel. | |
| string | username |
| The username of the new user. | |
| string | password |
| The password of the new user. | |
| string | |
| The email of the new user. (optional) | |
| string | captchaKey |
| (only if captcha is required) The key of the Captcha image used to get the user to write in the Captcha value | |
| string | captchaValue |
| (only if captcha is required) The string the user entered in response to the captcha image | |
| Dictionary<string, string> | extraData |
| Any extra data that you wish to store with the user such as gender, birthdate, etc. (optional) | |
| string | partnerId |
| The PartnerPay partner id this user should be tagged with, if you are using the PartnerPay system. | |
| Callback<Client> | successCallback |
| Callback with the connected client, if successful | |
| Callback<PlayerIORegistrationError> | errorCallback |
| Callback with details about why the registration failed, if it failed. |
| public Client |
|
Registers a new user in the simple user db and returns a connection token.
| string | gameId |
| The game id of the game you wish to connect to. This value can be found in the admin panel. | |
| string | username |
| The username of the new user. | |
| string | password |
| The password of the new user. | |
| string | |
| The email of the new user. (optional) | |
| string | captchaKey |
| (only if captcha is required) The key of the Captcha image used to get the user to write in the Captcha value | |
| string | captchaValue |
| (only if captcha is required) The string the user entered in response to the captcha image | |
| Dictionary<string, string> | extraData |
| Any extra data that you wish to store with the user such as gender, birthdate, etc. (optional) | |
| string | partnerId |
| The PartnerPay partner id this user should be tagged with, if you are using the PartnerPay system. |
| public void |
|
Registers a new user in the simple user db and returns a connection token.
| string | gameId |
| The game id of the game you wish to connect to. This value can be found in the admin panel. | |
| string | username |
| The username of the new user. | |
| string | password |
| The password of the new user. | |
| string | |
| The email of the new user. (optional) | |
| string | captchaKey |
| (only if captcha is required) The key of the Captcha image used to get the user to write in the Captcha value | |
| string | captchaValue |
| (only if captcha is required) The string the user entered in response to the captcha image | |
| Dictionary<string, string> | extraData |
| Any extra data that you wish to store with the user such as gender, birthdate, etc. (optional) | |
| string | partnerId |
| The PartnerPay partner id this user should be tagged with, if you are using the PartnerPay system. | |
| Callback<Client> | successCallback |
| Callback with the connected client, if successful |