[Updated OP] In reference to this old post, I'm struggling obtaining a correct Steam access token:
- I added my steamapp id (used an online hex converter) + web api key found in steamworks "manage groups" >> "<game> group" section) to PlayFab on the addon dash
- I am using a working Steamworks.NET with Unity 5.5
- I attempted to follow this example.
- Results are the following with both POSTman and C# code (PlayFab code in comments):
{ "code": 400, "status": "BadRequest", "error": "InvalidSteamTicket", "errorCode": 1010, "errorMessage": "Steam WebAPI error: 102 (Ticket for other app)" }
5. Steam code to get ticket (EDITED: confirmed 100% working as hex/string since it works fine on GameSp*rks that has same requirements). It must be an issue with the hex app id or something?:
// Start ticketBlob = new byte[1024]; // Retrieve ticket; hTicket should be a field in the class so you can use it to cancel the ticket later // When you pass an object, the object can be modified by the callee. This function modifies the byte array you've passed to it. hTicket = SteamUser.GetAuthSessionTicket(ticketBlob, ticketBlob.Length, out ticketSize); // Resize the buffer to actual length Array.Resize(ref ticketBlob, (int)ticketSize); // Convert bytes to string StringBuilder sb = new StringBuilder(); foreach (byte b in ticketBlob) { sb.AppendFormat("{0:x2}", b); } hexTicket = sb.ToString(); Debug.Log("[STEAM] hexTicket == " + hexTicket); // Wait for callback => // Sample expired ticket: 1400000096a8a5169ad90a36748a1f0001001001aed8bc58180000000100000002000000d52bb0b4000000001a97f00934000000b20000003200000004000000748a1f000100100150150900d52bb0b41901a8c0000000003115b958b1c4d4580100545f020000000000845f3c411223ae504089bb36dc0c40196115a84cea06c811f03e72dae3fd35681f9c757234cda77ff40974c7fd7a2973522d650e9e90a3031644626e307094f724a4de4686b7683b1ffd70d76803950e41a9f7bb261e29c5072513cab35a0c4fab59ae1a9ea17c6b82f41f32c0bd1a1790fe687c2662884c9d4b5ee25436d821