Sign In Register

How can we help you today?

Start a new topic
Answered

Can I feed data into my game from the internet?

We're currently making a game project in university and we're using Unity / C# with GameSparks. We need to get data from the internet (for example, weather or current events happening in the market) and show it live in game. Is this possible with GameSparks? 


thank you so much


Best Answer

Hi Paula,


This all depends on the access method of the data you are trying to feed in. For example, it is entirely possible to make HTTP REST calls from inside Cloud Code using SparkHttp. Sending a GET request to some weather station with a public API would illicit a JSON response which you could then save in a runtime collection.


The other method is using an intermediary, to split up the retrieval of data to the saving of data on GameSparks. We offer a Node SDK that could be useful for this method.


-Pádraig

1 Comment

Answer

Hi Paula,


This all depends on the access method of the data you are trying to feed in. For example, it is entirely possible to make HTTP REST calls from inside Cloud Code using SparkHttp. Sending a GET request to some weather station with a public API would illicit a JSON response which you could then save in a runtime collection.


The other method is using an intermediary, to split up the retrieval of data to the saving of data on GameSparks. We offer a Node SDK that could be useful for this method.


-Pádraig

Login to post a comment