MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

how to work with data availability, library?

Last post 06-27-2008 2:50 PM by Sergey Mamyan. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 06-26-2008 11:42 AM

    how to work with data availability, library?

    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 ;)

    Filed under: , ,
  • 06-26-2008 5:27 PM In reply to

    Re: how to work with data availability, library?

    Docs are all here:http://developer.myspace.com/community/myspace/dataAvailability.aspx

    That was a bad link before (stage-developer is internal), apologies for that!

    Please follow us on Twitter for major announcements and updates:

    http://www.twitter.com/MySpaceDevTeam
  • 06-26-2008 9:30 PM In reply to

    Re: how to work with data availability, library?

     Ok thanks for that already.

    But are you gonna update the PHP libraries? When?

    thx alot

    F

  • 06-27-2008 11:29 AM In reply to

    Re: how to work with data availability, library?

     We'll have more documentation online as soon as it's available -soon.

    Thanks!

    Please follow us on Twitter for major announcements and updates:

    http://www.twitter.com/MySpaceDevTeam
  • 06-27-2008 2:50 PM In reply to

    Re: how to work with data availability, library?

    For getting current user information I need to pass folowing information 

    http://api.myspace.com/opensocial/people/@me/@self?format=json

    oauth_consumer_key

    oauth_consumer_secret 

    As we see there are no any data related user how MySpace deciding who is current user ? 

    In iframe request I am getting

    oauth_nonce

    oauth_signature

    oauth_timestamp

    is that somehow related to difference of session user ? 

Page 1 of 1 (5 items)