Page 1 of 1

How do I integrate generic API in my game?

PostPosted: Wed May 18, 2016 1:49 pm
by Cipriux
Is there a plugin that can be used to integrate an external Javascript API ?
I have a client that wants to integrate their own API for Ads and leaderboards, but don't have a C2 plugin . It can be done maybe with AJAX plugin or another?

Re: How do I integrate generic API in my game?

PostPosted: Wed May 18, 2016 2:25 pm
by lennaert
Ajax is generally used to call a file from a specific URL with some parameters.
You could use this method to make a working API, but it would require to create a processing method in the background for example with a PHP/MySql server.

The other more obvious approach would be to build your own plugin for it.
This way the plugin could be shared or sold so others would be able to use the api as well.

Re: How do I integrate generic API in my game?

PostPosted: Wed May 18, 2016 5:42 pm
by Cipriux
@lennaert I guess it is about time to learn how to create a plugin by myself.