Project JSON modification — Topic


#184

Cool when will it be released


#185

I get most of it from the JSON. It is then saved in a directory that contains the JSON file and a file called “puredata.tx t”. That file is loaded when somebody asks for data. A new directory is made every time somebody searches for the project so that you can get the history of it. The file structure is a little bit more advanced, I can show you a screenshot if you want.

Do you mean search from Hopscotchers from Hopscotch’s servers? How can you do that?

Yeah, but it has more information that the iPhone app like JSON data, an objects list and more.

I guess in one or two weeks. I have to ask THT and I probably want to add some more functions and features.


#186

I won’t decline a screenshot. That would be very interesting!


#187

Okay. I’m on my iPad at home right now, but I will take a short bike ride and then come back later. I will get on my computer this afternoon and I’ll hope that I remember to post a screenshot! :slight_smile:


#188

do you have this in a github (or other online version control) repo? if so would you mind if i try to add a webplayer (or some form of it)?


#189

I don´t, but I will try to do that soon though! I know that some code are ineffective, so I´ll have to fix that first.


#190

Here you go:
Index:
Screenshot_436
Data saved at each request:
Screenshot_437
Content of the “puredata.tx t”-file (more data will probably be added soon):
Screenshot_438
It´s pretty self explainatory.


#191

ok, can’t wait!
by the way, hOW did you manage to find a cloud server thingy that supports Flas k


#192

I am using using www.pythonanywhere.com ´s free plan. It´s awesome!


#193

i thought it turned off after like ten minutes though
i have used it though, its a nOice ui


#194

It should only turn off every three months unless you log in and click a button. And that isn´t too hard.


#195

dude thats awesome
i have an awesome webserver (from host.gwiddlefoundation.org.uk) but i dont think it supports flas k… it never turns off though and its free, you just need an education email


#196

I´ve tried Gwiddle, but I don´t think that it worked for me as I am a student in Sweden.


#197

ohh ok
theres also heroku but it has limited hours (500 per month iirc) and it has to be offline t least 4 hours each day
also ouch i feel like something is stabbing my shoulder :)


#198

Heroku is also great. I haven´t managed to git push a Flas k app to it yet though. I have tried out many tutorials online.

Anyways, I GTG but talk to you later!


#199

alrighty, see ya later!!

honestly if i could have a server/desktop/some kind of computer that i could always have online i would just host it on that, but the only one i have has windows which i have not had good experiences with


#200

That is really cool! When you release it, are you going to drop the code too then?


#201

I would just use the api thing that’s used in the app.


You might be able to just copy the c.gethopscotch.com/p/uuid code.



#202

Any endpoints…? I’ll see if I can find it with Fiddler 4 on my computer (if you know what that is).

Yes, I am. But I have to double-check a few things with THT first.


#203

I’ll get a few in a minute Or two I’ll edit this’s post

Users
Nickname is the search.
c.gethopscotch.com/api/v2/users/search?api_token=4f7769439adf7ef8e482d2daef77375cd6d0158b65fcdca543b74b5c0c92&nickname=hopscotchers&page=1&user[id]=4482518&user[auth_token]=wFPsa3IciA/ojCIBUbD9Wg%3D%3D

Projects
Title is search.
C.gethopscotch.com/api/v2/projects/search?api_token=4f7769439adf7ef8e482d2daef77375cd6d0158b65fcdca543b74b5c0c92&page=1&title=hopscotchers&user[id]=4482518&user[auth_token]=wFPsa3IciA/ojCIBUbD9Wg%3D%3D