MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

REST App Notifications issues

Last post 09-22-2009 2:36 AM by Ashish. 52 replies.
Page 3 of 4 (53 items) < Previous 1 2 3 4 Next >
Sort Posts: Previous Next
  • 05-28-2009 3:17 PM In reply to

    Re: REST App Notifications issues

     Which PHP lib are you using? the one in myspaceSDK?

  • 05-28-2009 6:57 PM In reply to

    Re: REST App Notifications issues

     this one-

    http://wiki.developer.myspace.com/index.php?title=MySpace_REST_API_PHP_Library

  • 05-30-2009 7:18 AM In reply to

    Re: REST App Notifications issues

     http://wiki.developer.myspace.com/index.php?title=Category:MySpaceID_SDK_for_PHP

    Try this. All our sdks are avail for myspace ID and local apps

  • 05-30-2009 2:49 PM In reply to

    Re: REST App Notifications issues

     But my app is a local IFRAME app. I'm already using the official PHP library thats meant for local apps. I read the documentation for MySpaceID and that's meant for apps that are createded outside the Myspace platform.

    The official PHP library is what'll need to be fixed.

  • 05-31-2009 6:58 AM In reply to

    Re: REST App Notifications issues

     No Kush,

    It's labled incorrectly. This is the ONLY library you should be using.

  • 05-31-2009 6:31 PM In reply to

    Re: REST App Notifications issues

     Rhonda

     

    Are you sure about this? I read through the documentation again and it's all about MyspaceID not local apps. Even if I was to use the MyspaceID, I'll have to create my app from scratch now which I can't because it's already LIVE and I have users in it.

    My question then is, why is the other PHP library in myspace documentation then. There are other official REST libs out there which should all be discarded in that case. I find it hard to believe that we have to use MyspaceID library, with all due respect. In fact there's no natural way to get to the MyspaceID library from Myspace documentation page unless that's the kind of app you want to create. Fo local apps, it clearly space On Platform documentation link (on the homepage). I didnt know this MyspaceID lib existed until you showed me.

  • 05-31-2009 11:24 PM In reply to

    Re: REST App Notifications issues

     Kush,

    I will double check for you, but from what I understand, when we started creating the SDKs I was told the libraries could be used for both. It is labled badly, and I have put in a request to content to change that. If there are other links that still exist that should be replaced by this, I'll find out that too.

    I'm writing an email now.

    Rhonda


  • 06-02-2009 9:19 AM In reply to

    Re: REST App Notifications issues

    I have confirmed that all the old libraies have been deprecated. We apologize that this is not clear. We'll be taking down all the old library files and redirecting everyone to use the MySpaceID SDKs for both local apps and MySpaceID.

    Rhonda

  • 06-03-2009 9:21 AM In reply to

    Re: REST App Notifications issues

    Kush, I really want to help you on this, I am the engineer that worked on the php library you can find on the google code site.

    We are using the MySpaceID library for a number of purposes; and of those purposes we use the library quite successfully for some of our own projects, projects with partners, and definitely onsite apps.

    I know that this old lib is still on the site, but baring internal company policies and the documentation you found, please consider the old library deprecated.

    It is Absolutely recommended that you use the following library.

    http://code.google.com/p/myspaceid-php-sdk/
    It is also recommended that if you have a problem with it, please use the code.google bug reporting system for the project.

    This library is the most current and tested library that myspace has. There are a few known issues with this library, but I should be able to better help you with this library than any other library you find.

    I will have to warn you, that my team is on a high priority project which should complete in the next ~2weeks. We are putting the finishing touches on that project, and my time is limited when it comes to the PHP lib.

    From what I can tell you, there are known issues with Indicators endpoint, I have a few un-validated changes that need to go into the current php lib.

    Also if you plan to extend the php lib, please follow the pattern via the updateStatus function to make your rest request. For the next release I am planing on making all request with that pattern and deprecating the older request logic. The new request logic, allows better control over the request and the response.
  • 06-03-2009 1:37 PM In reply to

    Re: REST App Notifications issues

     Thanks jdavid, I appreciate your patience with me. I will indeed have to extend the php lib since I want to use the app notifications REST call and I don't see that in the myspace.php codefile.Will that be work with this library? I will follow the updatestatus function pattern as you suggested.

  • 06-03-2009 8:54 PM In reply to

    Re: REST App Notifications issues

     How do I avoid the MyspaceID login popup that comes up due to this call - $ms->getAuthorizeURL($token). Without this the access token is not getting generated and I keep getting a HTTP 401 error. It doesn't make sense to pop up this login message if it's an onsite app.

  • 06-04-2009 12:03 PM In reply to

    Re: REST App Notifications issues

     I was finally able to resolve this. The Auth library with the old api is messed up. It doesn't sign the params, headers and more importatnly the post_data correctly in case of a POST. The MyspaceID sdk has the correct Auth library, atleast so far it has worked with POST. If you're still working with the old library, get rid of the OAuth.php and copy the latest from MyspaceID sdk. Get the CryptUtil.php as well becuase OAuth is dependent on it.

     

    Then change the do_post in myspaceapi of your old library-

    from-

    $req = OAuthRequest::from_consumer_and_token($this->oauth_consumer, $this->oauth_token, HttpMethodType::$GET,$this->resource_base . $this->resource_uri, $headers);

    to

      $req = OAuthRequest::from_consumer_and_token($this->oauth_consumer, $this->oauth_token, HttpMethodType::$POST, $this->resource_base.$this->resource_uri, null, $headers, $post_data);

     

    you'll have to make changes in the _do_post function of BaseAPI as well but that should be self explanatory. let me know if someone needs help.

    Filed under:
  • 06-04-2009 8:33 PM In reply to

    Re: REST App Notifications issues

     Thanks Kush!

    Sorry for the delays. I'm glad you got it going and can help someone else! you're the expert now. I expect you here in these forums, coaching ;)

     You get 5 stars!

  • Yes 

  • 06-06-2009 1:31 PM In reply to

    Re: REST App Notifications issues

    Dear friend,
    my name is Chiara and I'm graduating in Computer Science.

    I need to use the myspace php rest library for my Thesis and I read on the forum that you got it working..

    I'd like to know if it's possible for you to send it to me.. if possibile, I'll give you my email address.

    I need all the files that you edited to make them work..
    Looking forward to hearing from you,
    thanx in advance,
    Chiara

  • 06-06-2009 2:10 PM In reply to

    Re: REST App Notifications issues

    http://wiki.developer.myspace.com/index.php?title=Category:MySpaceID_SDK

    You can get the library from the php link

    Rhonda

Page 3 of 4 (53 items) < Previous 1 2 3 4 Next >