This is a quick implementation of a PHP library for the REST API.
It's using curl but falls back onto file_get_contents, a fsockopen could be done but I prefer curl so I did not bother. I've looked at most calls but not all of them so it might fail on some of them (specific photo/album/video details)
It throws an exception when the return HTTP code from myspace is not 2xx, and unfortunately the message is embedded in HTML so the message might not work some day.
Also it has some basic profiling built-in. You can set bProfiling = false to not go through, otherwise a print_r(Space::get_calls()) would give you an idea on how many calls and how long it took.
The Key it the Application URI and the secret is below that on the application information.
myspace-platform.tar.gz