I understand (I think!) that I can have PF connect to an external server. I want to know if I can have an external server initiate an API call to PF. Is there a specific doc that explains the model, explaining limitations, etc.?
Here's my scenario, hypothetical for now: I have several games integrated into PF. I also have an app that lets a gamer, external to PF and his games, swap/exchange digital assets (gold coins, arrows, etc.) in one game for digital assets in another. The author(s)/publisher(s) specify which assets can be exchanged, and what they're worth. So suppose <GamerMike> ways, "I want to exchange 50 of my gold coins in <Game 1> for 500 arrows in <Game 2>." At that point I'd like our server to contact PF (I'm guessing here) to say, "I have PF-authenticated gamer <GamerMike>; please deduct 50 gold coins from his account in <Game 1>." Assuming I get an ok response, I then say (POST/PUT), "I have PF-authenticated gamer <GamerMike>; please add 500 arrows to his account in <Game 2>"
- Let's put aside the problem of authenticating <GamerMike> to PF for the moment.
- What do I do in <Game 1> and <Game 2> to "receive" those POST/PUT calls and act on them? Is this even possible?