Sign In Register

How can we help you today?

Start a new topic
Answered

Need attribute name and value being sent in get request.

I need the name and value of data being sent in the get request. Is there a way to retrieve the http request string from cloudcode when being sent to a callback?


Best Answer

I realized that although I can't modify the get request, I can append another value and then pick it up in GameSparks. Works great.


Hi Adrian,


How are you sending the GET request ? Can you let us know the event/callback in the game that you are using for this and we'll take a closer look at it for you ? If you place a log in your callback you should be able to see all of the data that comes in with it. Try placing Spark.getLog().debug(JSON.stringify(Spark.getData())) in the Cloud Code for your callback and then check script.log in NoSql after you have hit it. You should then be able to work out how to get the data you require.


Thanks,

Liam

Answer

I realized that although I can't modify the get request, I can append another value and then pick it up in GameSparks. Works great.

Login to post a comment