I've been working this morning on making the styling of my page easier.
One thing that i would love to do is create a Terraform provider to do this for me, aswell as for making new posts + it would allow me to learn more about terraform indepth since so far i've never made a terraform provider myself.
Problem with this that ive noticed is that SpaceHey does not have a public API documentation.
The API is seems to be mostly consisting of old school form requests.
This would make sense since REST APIs were not that popular around the time of myspace.
Even then, JSON APIs were not that popular, most APIs had used XML which looks more like HTML.
However, even though theres no API exists, we can still call the PHP forms in order to gain cookies to get the session token.
Using this session token we can technically call every form like an API call through a simple request.
I'm personally building it in Golang since its my favorite language since it's a fast and simple language, already includes builtin packages to handle http requests/calls and Terraform is built in Golang aswell.
I'll most likely make a small package out of it to do calls to SpaceHey, even though GET calls are gonna be difficult since i'd need to scan through the html for the values, but the update calls are easily possible.
Also using CompileDaemon so that i can just work on the about_me.html page and reload to check my changes.
![Em(ily♥)'s profile picture](https://cdn.spacehey.net/profilepics/2019413_2849f740b0f582657b37824186787430.jpg?expires=1738942453&token=05184df8653afe7727e1ab5f9afc8eb33d2de7fa56376534304ed863b76313cd)
Automatic git syncing to spacehey!
0 Kudos
Comments
Displaying 0 of 0 comments ( View all | Add Comment )