Hi everyone,
I’m new to this Corona cloud API platform, at them moment I’m trying to get the multiplayer match happening by making calls to the Web API interface. (not going through the Corona SDK but using a different platform to make http request to the cloud API)
There’s a bit of documentation here explainning how it works: http://docs.coronalabs.com/guide/cloud/multiplayer/index.html but most of the implementation info bits is about using the Corona SDK. So I have successfully got up to the creating and starting the match, the docs says that you would need to invite players to the match by calling the retrieving the user cloud id and, and explains that you can get that id by using the “friends.find(string)”. Since I’m not using the SDK but just making http calls to the Cloud, from what I can find in the API, there’s this function: http://docs.coronalabs.com/api_web/api/users/findUser.html that does that, I tried that a couple of times and got the 404 response everytime.
I have been reading through the documentation and the forum and found not much info regarding this. Was wondering if someone could give me some pointers.
Correct me if Im wrong, these are the assumptions that I made after reading through the docs:
-
You would need to register the player first by making this http request: http://docs.coronalabs.com/api_web/api/users/registerUser.html
-
Then if you want to invite that player to a match these are the steps to be made:
+ Find the user by making this http request: http://docs.coronalabs.com/api_web/api/users/findUser.html , with one of the parameters being the keyword to search for (could be a last name, email…)
+ Then with the resulted json, you would get the user id to add to your friendslist or invite him to a match.
I was also wondering if push notifications need to be set up for each user before you can do all that?
Any help is appreciated, thanks.
J