MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

PHP Client Library

Last post 11-05-2009 2:18 AM by sandy. 133 replies.
Page 9 of 9 (134 items) « First ... < Previous 5 6 7 8 9
Sort Posts: Previous Next
  • 07-31-2008 11:58 PM In reply to

    Re: PHP Client Library

     When I follow the steps I get the  error:

     

    Fatal error: Uncaught exception 'Exception' with message '401 ' in /hsphere/local/home/aarisair/runeaddict.net/myspace/runescapestats/Space.php:177 Stack trace: #0 /hsphere/local/home/aarisair/runeaddict.net/myspace/runescapestats/Space.php(135): Space->_do_request('users/368113199...', Array) #1 /hsphere/local/home/aarisair/runeaddict.net/myspace/runescapestats/Space.php(52): Space->do_request('users/368113199...') #2 /hsphere/local/home/aarisair/runeaddict.net/myspace/runescapestats/index.php(9): Space->profile('368113199') #3 {main} thrown in /hsphere/local/home/aarisair/runeaddict.net/myspace/runescapestats/Space.php on line 177 

  • 08-19-2008 10:40 AM In reply to

    • Frik
    • Not Ranked
    • Joined on 08-19-2008
    • Posts 1

    Re: PHP Client Library

    I want to post Status updates from my website (microblogging site) to myspace profiles. Can I do that with this script?

    thanks, Friedrich 

  • 08-20-2008 10:19 AM In reply to

    • Randy
    • Not Ranked
    • Joined on 05-07-2008
    • Posts 5

    Re: PHP Client Library

     I have been trying to make this work for a few days now and can't seem to make it go. I have followed the downdoggy.com example to the letter and it still won't work. I keep getting "Invalid digital signature for base string" when I try to get JSON results. If I try XML, then it's even worse and errors out before anything else happens - has anyone else had this problem? Has there been any more recent updates to this code? Any help would be appreciated.

     

    Thanks,

    Randy

    Filed under:
  • 09-19-2008 10:15 AM In reply to

    • A-Dub
    • Not Ranked
    • Joined on 08-22-2008
    • Posts 1

    Re: PHP Client Library

    Arieder [Rank 38 Cooking]:

     When I follow the steps I get the  error:

     

    Fatal error: Uncaught exception 'Exception' with message '401 ' in /hsphere/local/home/aarisair/runeaddict.net/myspace/runescapestats/Space.php:177 Stack trace: #0 /hsphere/local/home/aarisair/runeaddict.net/myspace/runescapestats/Space.php(135): Space->_do_request('users/368113199...', Array) #1 /hsphere/local/home/aarisair/runeaddict.net/myspace/runescapestats/Space.php(52): Space->do_request('users/368113199...') #2 /hsphere/local/home/aarisair/runeaddict.net/myspace/runescapestats/index.php(9): Space->profile('368113199') #3 {main} thrown in /hsphere/local/home/aarisair/runeaddict.net/myspace/runescapestats/Space.php on line 177 

     

     

    Im getting the exact same error and I cant figure it out for the life of me.

     Anyone got ideas?

  • 09-30-2008 3:31 PM In reply to

    • Kevin
    • Not Ranked
    • Joined on 08-07-2008
    • Posts 1

    Re: PHP Client Library

      Fatal error: Uncaught exception 'Exception' with message '401 ' in /home/twistede/public_html/myspace/Space.php:184 Stack trace: #0 /home/twistede/public_html/myspace/Space.php(143): Space->_do_request('users/11176363/...', Array) #1 /home/twistede/public_html/myspace/Space.php(60): Space->do_request('users/11176363/...') #2 /home/twistede/public_html/myspace/index.php(9): Space->profile('11176363') #3 {main} thrown in /home/twistede/public_html/myspace/Space.php on line 184

     

    any suggestions?

     

    lines 183-185 here:

          if( $code && $code >= 400 ) {
            throw new Exception($code.' '.$hResult['BODY']['DIV']['P']);
          }

    I did follow the downdoggy.com instructions to the tee... I do have a userid with the app added (my myspace id for myspace.com/kdawg08 (but the numbers instead)) any suggestions?

  • 11-17-2008 8:19 AM In reply to

    --- FAQ and final links / changes ---

    Jerome: Thanks...

    Your post of code helped me out a ton.

    But now I am way tired and have managed to mess up my code.

    I know it was working.

    I am looking for some of the others here that have "working" versions to upload a zip of their simple source.

    Not the "official version using Pear libs"

    For example....

    I know I made some changes to the Space.php file from the comments here on the board.

    If anyone as a 'fixed' version with a small sample, that would be great.

    I would be willing to make a screencast and or pdf for future users.

    It was working for me .... arhhhh....

    But not anymore.

    eyes are way too tired now to check mistakes.

    Thanks again!
    Filed under:
  • 11-18-2008 4:00 AM In reply to

    Re: --- FAQ and final links / changes ---

    Ok... So I got it. And as a big thank you to all my fellow coders

    I will go ahead and do the "step by step" screen cast as to why you would get errors in your setup.

    I think I managed to do everything wrong once, so it was only a matter of time before switching things around fixed something!

    Thanks again...

    To be Continued...
  • 11-18-2008 5:25 AM In reply to

    Re: --- FAQ and final links / changes ---

    Very quick screencast on how to use the lib

    I just made this before I fell asleep, but it works, --now stop making glitter apps--

    Jerome send me a paypal link so people using this code can donate.

    You have made it much easier for other "profit-based" apps to use the REST API in php.

    Code and Screencast are put up at Google for others. http://code.google.com/p/myspace-php-rest-api/

    Thanks.

  • 01-09-2009 5:13 PM In reply to

    Re: --- FAQ and final links / changes ---

     Everyone is trying to show how to get info from another user.  I'm trying to find out who is currently running the app.

    $s = new Space($key, $secret);
    $result = $s->currentUser();

     This results in:

    Fatal error: Uncaught exception 'Exception' with message '404 ' in /home/devex/public_html/class/Space.php:227 Stack trace: #0 /home/devex/public_html/class/Space.php(186): Space->_do_request('currentuser', Array) #1 /home/devex/public_html/class/Space.php(93): Space->do_request('currentuser') #2 /home/devex/public_html/common_myspace_code.php(17): Space->currentUser() #3 /home/devex/public_html/index.php(14): include('/home/devex/pub...') #4 {main} thrown in /home/devex/public_html/class/Space.php on line 227

    Any suggestions?

     

    Filed under:
  • 01-15-2009 4:24 PM In reply to

    Re: PHP Client Library

    do you know how to make your friends appear on your profile
  • 01-28-2009 10:00 AM In reply to

    Re: PHP Client Library

     Can this be applied to load the data from an external php file on my server to show a random image it generates?

  • 09-03-2009 4:11 AM In reply to

    • Davide
    • Not Ranked
    • Joined on 09-19-2008
    • Posts 8

    Re: PHP Client Library

    Hey, I have the same error you had, do you remember what you did yo fix it?

     

    Thanks!

  • 10-18-2009 8:42 AM In reply to

    Re: PHP Client Library

    I'm at a loss as to what to do next to create an app for myspace

  • 11-05-2009 2:18 AM In reply to

    • sandy
    • Not Ranked
    • Joined on 03-11-2008
    • Posts 2

    Re: PHP Client Library

    Hi Friends,

    I'm also getting same kind of error as 401.. following is the exception of the code.

     

    [05-Nov-2009 05:12:58] PHP Notice:  Undefined index:  message in /home/silkbrid/public_html/myspaceapp/Space.php on line 185
    [05-Nov-2009 05:12:58] PHP Notice:  Undefined index:  BODY in /home/silkbrid/public_html/myspaceapp/Space.php on line 185
    [05-Nov-2009 05:12:58] PHP Fatal error:  Uncaught exception 'Exception' with message '401 ' in /home/silkbrid/public_html/myspaceapp/Space.php:185
    Stack trace:
    #0 /home/silkbrid/public_html/myspaceapp/Space.php(143): Space->_do_request('users/4416169/p...', Array)
    #1 /home/silkbrid/public_html/myspaceapp/Space.php(60): Space->do_request('users/4416169/p...')
    #2 /home/silkbrid/public_html/myspaceapp/index.php(11): Space->profile('4416169')
    #3 {main}
      thrown in /home/silkbrid/public_html/myspaceapp/Space.php on line 185

    I have tried all option to modified but no chance.

    Please reply to me ASAP.

Page 9 of 9 (134 items) « First ... < Previous 5 6 7 8 9