Forum General Getting the user yahoo id

Any issues or discussions relating to Flash development are welcome here.

Getting the user yahoo id

Postby vale » May 14th, 2014, 12:28 am

Hi,
I just want to know hot to get the yahoo id of a user(from yahoo canvas) and to create a database object for that id. Below is the code to do this job for a kongregate user(for facebook is the same).

step 1. Getting the userid from kongregate. This returns a string like "996633".
step 2. call PlayerIO.connect(... , "kong_996633", ...); "kong_996633" is the new user id. In this way I'll be sure that there are not two users with the same id
step 3. I call c.bigDB.loadMyPlayerObject(...). This will return a DatabaseObject called "kong_996633".

It is possible to do the same for an yahoo user?

What is the fastest way to get the id of an yahoo user?

Thank you
vale
 
Posts: 22
Joined: August 3rd, 2010, 3:16 pm

Re: Getting the user yahoo id

Postby Henrik » May 15th, 2014, 3:31 am

The simplest way is to parse the usertoken on the canvas: https://gamesnet.yahoo.com/documentation/yahoo/canvas

If you have a usertoken, you can call Authenticate with it: https://gamesnet.yahoo.com/documentatio ... tion/yahoo

And once you've authenticated, you can just access the ConnectUserId property of your Client to get the id.
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: Getting the user yahoo id

Postby vale » May 15th, 2014, 1:24 pm

Thank you, Henrik

But I've just downloaded the latest SDK. There is no Authenticate method on as3 API nor on serverside API.

From where I should call the PlayerIO.Authenticate() ?

Thank you again
vale
 
Posts: 22
Joined: August 3rd, 2010, 3:16 pm

Re: Getting the user yahoo id

Postby Henrik » May 16th, 2014, 5:35 pm

There should be an authenticate in all client libraries?

https://gamesnet.yahoo.com/documentatio ... thenticate

We changed the AS3 client library so that it is now an .swc, maybe you're using an older project with an older client library, and you're still seeing its methods?
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm


Return to General



cron