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 5 of 9 (134 items) « First ... < Previous 3 4 5 6 7 Next > ... Last »
Sort Posts: Previous Next
  • 03-12-2008 9:26 AM In reply to

    Re: PHP Client Library

    Interesting.  Do you think it could be a PHP setting that is turned off?  Perhaps [extra security] setting? 

  • 03-12-2008 9:44 AM In reply to

    Re: PHP Client Library

    No, it just proves my first theory was wrong -- you can use domains outside MySpace, and they are used for your Consumer Key. How about the second? Does your Application URI actually exist? I mean, is it a site that can be pinged and get a return?

  • 03-12-2008 9:48 AM In reply to

    Re: PHP Client Library

    Jeremy,

     

    Yes it is.  If I type my URI in the browser it of course throws the exception (Authetication Failed on one server) and (Invalid Digital Signature) on another server.  If I comment out my call to the user method in the Spaces class, it loads up my page just fine (without the information provided by myspace of course)

     

  • 03-12-2008 10:03 AM In reply to

    Re: PHP Client Library

    Troy:
    where am I to get my appid for 'www.myspace.com/[appid]
     

    Troy:
    http://profile.myspace.com/Modules/Applications/Pages/Canvas.aspx?appId=123456
     

    this isn't the one to use - you need the Apps Profile Number I think and its shown on the apps edit detail page

    Eddie 

    [Edit]the whole URL/URI is there - Application URI.

    And the number is the myspace profile number not the app id


  • 03-12-2008 10:55 AM In reply to

    Re: PHP Client Library

    Sorry Eddie, I'm not following your post.  Do you mind reposting it?  Thanks again for your help. 

  • 03-12-2008 10:57 AM In reply to

    Re: PHP Client Library

    Jeremy,

     

    I switched it back to use my URI that has a port in it (http://222.222.222:2222), where I receive the Invalid Digital Signature exception, and it worked!  However, I hit refresh and BAMO back to giving me the Invalid Digital Signature message.  It continues to do so.  I'm not sure what happened to get it to work but this could possibly help pinpoint the problem.

     

    Thanks again! 

     Also if it helps, if i use the OAuth Tool it works using the ip with the port (No invalid digital signature error message), but when using the subdomain I have setup, it says Authentication Failed.  I moved my code over to another server using a subdomain and it gave me the same response that my ip with the port does (Invalid Digital Signature) exception thrown in my code, but works in OAuth Tool.

     

     

  • 03-12-2008 11:09 AM In reply to

    Re: PHP Client Library

    this should go to your profile page

    Troy:

    If so use that not your appid

    Eddie 

    {Nevermind I think I butted in a while back and got distracted} 

  • 03-12-2008 11:24 AM In reply to

    Re: PHP Client Library

    Oh I see!  Makes sense.

     

    Ok so what I've done was this:

    I changed my Application URI to:  http://www.myspace.com/<appid> and then changed my consumer key to the same thing.  I then left my iframe URL to my http://123.123.123:1111 

    I still get Invalid Digital Signature thrown as an exception, but when I do it in the OAuth tool it works.  This eliminates the problem that could have been caused by having a port as a Consumer Key.

     Any other suggestions?

     

    Thanks for everyones help 

  • 03-12-2008 11:50 AM In reply to

    Re: PHP Client Library

     Ok all.  I've solved my problem.  It was a problem with the fact that I was using the wrong Consumer Key (it should have been www.myspace.com/appid (Thanks Eddie) and once I switched it over, I noticed my Secret Key had unwanted spaces in the beginning of the string all along.  Doh!  Thanks to everyone especially Jeremy for their help!

  • 03-12-2008 1:47 PM In reply to

    Re: PHP Client Library

     How is everyone who uses this Library getting around the  currentUser problem?

  • 03-13-2008 5:43 PM In reply to

    • Dustin
    • Not Ranked
    • Joined on 02-05-2008
    • Posts 9

    Re: PHP Client Library

     I think everyone is still trying to figure this out. Hard to move foward without it.

     *EDIT*

     This will get you the current user id, works perfect: http://developer.myspace.com/Community/forums/t/538.aspx

  • 03-13-2008 9:03 PM In reply to

    Re: PHP Client Library

    The friends call does not contain the friend count. The XML contains:

    <user xsi:schemaLocation="https://api.myspace.com/myspace.xsd">
    <userid>8528142</userid>
    <uri>http://api.msappspace.com/v1/users/8528142</uri>
     <friends count="102">

    but when the function returns the array you loose the friend count. Has anyone fixed it? 

  • 03-16-2008 10:42 PM In reply to

    Re: PHP Client Library

    Is there any function to access the data api from php library? 

     

  • 03-17-2008 12:57 AM In reply to

    Re: PHP Client Library

    Here's a pretty good tutorial for anyone having a difficult getting their My Space app started. 

    How to create a MySpace App Tutorial - It assumes you know PHP. Good for anyone just trying to get started.

     

    - Nathan Mallamace

  • 03-17-2008 9:30 AM In reply to

    • nico
    • Not Ranked
    • Joined on 03-16-2008
    • Posts 1

    Re: PHP Client Library

     Hi,

    I worlk a little from the 2 given classes and i rebuild a shorter version for just API calls.

    Here is an example of what i obtain using my new class : http://www.webjax.eu/tools/MySpaceSimple.class.php5

    Here is the code i have writed to get the precedent result : http://www.webjax.eu/tools/highlight-myspace.php

    Be careful, in the code, there are no values for "consumer_key" and "secret" in the class since this is private informations of mine :-)

     If somebody can help me knowing why i obtain each time the error code 401 "invalid signature for base string" i will be very happy.

     Thanks for your time everyone :-) 

Page 5 of 9 (134 items) « First ... < Previous 3 4 5 6 7 Next > ... Last »