Unfortunately, it returns an `authentication: NOTAUTHORIZED` error.
Is it possible to make unauthenticated requests using the secret?
Best Answer
J
Jeff Amiel
said
almost 4 years ago
I dont think you can do this - but what you CAN do is use an http callback (still requires a secret - but doesn't require player authentication) - it can then make the leaderboard request and then return the data
I dont think you can do this - but what you CAN do is use an http callback (still requires a secret - but doesn't require player authentication) - it can then make the leaderboard request and then return the data
Viktor Nagy
Hi,
I would like to show some global leaderboards integrated into my website. I see that `LeaderboardDataRequest` would be the request I need, I thought using it via the REST API (https://docs.gamesparks.com/api-documentation/rest-apis/requests.html#!/Leaderboards/post_rs_credential_secret_LeaderboardDataRequest), the only question is how can credentials used for this?
I've created a credential as you can see below:
Putting together all the above pieces, I would think that a call like
should work.
Unfortunately, it returns an `authentication: NOTAUTHORIZED` error.
Is it possible to make unauthenticated requests using the secret?
I dont think you can do this - but what you CAN do is use an http callback (still requires a secret - but doesn't require player authentication) - it can then make the leaderboard request and then return the data
Implementing External HTTP Callbacks - GameSparks Learn
https://docs.gamesparks.com/tutorials/.../implementing-external-http-callbacks.html
https://docs.gamesparks.com/tutorials/cloud-code-and-the-test-harness/using-custom-callback-urls.html
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstJeff Amiel
I dont think you can do this - but what you CAN do is use an http callback (still requires a secret - but doesn't require player authentication) - it can then make the leaderboard request and then return the data
Implementing External HTTP Callbacks - GameSparks Learn
https://docs.gamesparks.com/tutorials/.../implementing-external-http-callbacks.html
https://docs.gamesparks.com/tutorials/cloud-code-and-the-test-harness/using-custom-callback-urls.html
1 person likes this
Viktor Nagy
Thanks, it works!
-
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