Hey Isaac,
The proper endpoint is https://itch.io/api/1/:api-key/me - you can try it in a browser where you're logged into itch.io: https://itch.io/api/1/me/me
Hey Isaac,
The proper endpoint is https://itch.io/api/1/:api-key/me - you can try it in a browser where you're logged into itch.io: https://itch.io/api/1/me/me
Hi Amos, thanks for the reply. Can you point me to the relevant documentation for this feature?
I guess I'm still a little confused. Do I need to get an api-key first? Which means then having the user authorise my game to access their itch account? That's probably too high of a barrier of entry for our game, unfortunately.
Hey Isaac, the API key & scoping section of the itch docs walk you through the whole process.
In a nutshell:
See "Looking for updates" here https://itch.io/docs/butler/pushing.html - but this won't work for protected/private games for now - it's on our TODO list!
Hi again Amos,
So I got this working a few days ago but it's stopped, appears to have been when the itch client updated. I have the manifest file in the game's root folder, but no key is passed to the app. The log appears to be generating a key fine:
[2016-12-16 @ 13:38:21.065] [tasks/launch] Requesting subkey with scope: profile:me
[2016-12-16 @ 13:38:21.248] [tasks/launch] Got subkey (171 chars, expires 2016-12-23 12:38:19)
[2016-12-16 @ 13:38:21.255] [tasks/launch/native] env keys: [
"ITCHIO_API_KEY",
"ITCHIO_API_KEY_EXPIRES_AT",
"TMP",
"TEMP"
]
I also renamed my project at this time, to something that includes Spaces. After doing that I noticed that the itch app wasn't finding my manifest, so I reinstalled the game in the app. Note that this is on windows.
I'm not sure if this is an issue with itch or on my end, but the way I'm getting the env variable was working before. Any ideas?
Thanks,
Isaac
Sorry Amos, I should've been clearer - after reinstalling the game, it found the manifest fine. Beforehand it didn't. My suspicion is that renaming was the cause of the error, but I haven't verified that. It would mean the repro would hypothetically be:
This is basically more or less what I did, I think. But there were other factors involved probably, such as updating the itch app itself somewhere in the middle there.