im trying to use firebase but im lost on all he different commands. i want to create a save data file for each user so they can store and load it
global szServerFile as string
global szPostData as string
global szLocalFile as string
http = CreateHTTPConnection()
SetHTTPHost( http, "myapp-29049862.appspot.com", 0 )
szServerFile = "/gamedsaves/test.txt"
szPostData = "/gamedsaves"
szLocalFile = "test.txt"
while GetHTTPResponseReady(http) = 0
Print( "Connecting..." )
Sync()
endwhile
SendHTTPFile(http, szServerFile, szPostData, szLocalFile )
response$ = GetHTTPResponse(http)
returned = GetHTTPStatusCode(http)
CloseHTTPConnection(http)
DeleteHTTPConnection(http)
// main loop
do
print(returned)
Print( "Server response: " + response$ )
Sync()
loop
i cant get it to load or send a file to the database