Need attribute name and value being sent in get request.
A
Adrian Gomez
started a topic
over 5 years ago
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
A
Adrian Gomez
said
over 5 years ago
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.
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
A
Adrian Gomez
said
over 5 years ago
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.
Adrian Gomez
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?
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.
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
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
Adrian Gomez
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.
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics