Very excited about the launch today.
But now how does this all work? Do we have to implement all these calls to OAuth ourselves?
Because I was extremely fond of the following piece of code:
<?php
require_once('Space.php');
$key = 'http://www.myspace.com/xxxxx';
$secret = 'xxxxxx';
$s = new Space($key,$secret);
$hProfile = $s->profile($_GET["userid"]);
var_dump($hProfile);
echo "<img src='" . $hProfile['largeimageuri'] . "' />";
?>
Now obviously that code only works if userid is provided in the url as a get parameter and the user has already granted access to this application.
What do I need to add in order to get the user to add and grant access to my application?
btw, http://stage-developer.myspace.com/community/myspace/faq.aspx etc seem to be down? so many ppl requesting it or what ;)