MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

.NET Client Libraries for REST?

Last post 09-22-2009 8:12 AM by John. 59 replies.
Page 4 of 4 (60 items) < Previous 1 2 3 4
Sort Posts: Previous Next
  • 07-30-2008 1:58 AM In reply to

    • duc
    • Not Ranked
    • Joined on 07-29-2008
    • Posts 1

    Re: .NET Client Libraries for REST?

    I get the same problem. i use the code fellow to get Dev Account information

    but it rise the 401 code number error. i don't know whether UserId is important. who can help me?

    requestObj.APIversion = "v1"; requestObj.AssetID = ""; requestObj.BaseApiUrlHost = "api.msappspace.com"; requestObj.ConsumerKey = "http://www.myspace.com/400704684"; requestObj.ConsumerSecret = "5bf8a08d787941a89b8032bc3c518abe"; requestObj.RequestMethod = (HttpPostUtility.RequestMethod)Convert.ToInt32(DropDownList1.SelectedItem.Value); requestObj.RequestMode = HttpPostUtility.RequestMode.QueryString; requestObj.ResponseType = HttpPostUtility.ResponseType.XML; requestObj.Token = ""; requestObj.TokenSecret = ""; requestObj.UserId = "";

     thanks ,

    Lam Tuan Duc 

  • 08-06-2008 11:48 PM In reply to

    • Hip
    • Not Ranked
    • Joined on 08-05-2008
    • Posts 3

    Re: .NET Client Libraries for REST?

     I got it to work by changing the requestObj.BaseApiUrlHost to api.myspace.com.

  • 08-06-2008 11:54 PM In reply to

    • Hip
    • Not Ranked
    • Joined on 08-05-2008
    • Posts 3

    Re: .NET Client Libraries for REST?

     I'm trying to get AGE and City information for the owner friends. Is there away to do this with the .net api. Alot of post say you can use REST to retrive the info but I have not seen any examples. 

     

     

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

    • Peter
    • Not Ranked
    • Joined on 07-19-2008
    • Posts 5

    Re: .NET Client Libraries for REST?

    Has anyone been successfully working with the MyspaceClient class instead of HttpPostUtility?  Can't get that one to work...any examples?

  • 09-16-2008 3:51 AM In reply to

    • Seenu
    • Not Ranked
    • Joined on 08-27-2008
    • Posts 5

    Re: .NET Client Libraries for REST?

    Normal 0 false false false EN-US X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

    <p>

    401- authorization failed....

     

     Here are the steps i followed to create an app & run.

     

     1. Created an app in the myspace

     

     2. Created a local website in Visual Stuio 2.0

     

     3. Downloaded the toolkit & added as reference

     

     4. Updated the source of the applicatoin to inline iframe and given source to my local applicatoin (http://localhot/demo/default.aspx)

     

     5. Copied the default.aspx from sample (below is the code)

     

            requestObj.APIversion = "v1";

            requestObj.AssetID = "";

            requestObj.BaseApiUrlHost = "api.myspace.com";

            requestObj.ConsumerKey = Request.QueryString["oauth_consumer_key"];

            requestObj.ConsumerSecret = "secret key of the app";

            requestObj.RequestMethod = (HttpPostUtility.RequestMethod)Convert.ToInt32(DropDownList1.SelectedItem.Value);

            requestObj.RequestMode = HttpPostUtility.RequestMode.QueryString;

            requestObj.ResponseType = HttpPostUtility.ResponseType.XML;

            requestObj.Token = Request.QueryString["opensocial_token"];

            requestObj.TokenSecret = "";

            requestObj.UserId = "myuserid";

     

     6. When i run the applicaion on myspace i am getting the below error

     

    The remote server returned an error: (401) Unauthorized.

    </p>

  • 09-16-2008 4:09 AM In reply to

    • Seenu
    • Not Ranked
    • Joined on 08-27-2008
    • Posts 5

    Re: .NET Client Libraries for REST?

    Normal 0 false false false EN-US X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

    401- authorization failed....

     

     Here are the steps i followed to create an app & run.

     

     1. Created an app in the myspace

     

     2. Created a local website in Visual Stuio 2.0

     

     3. Downloaded the toolkit & added as reference

     

     4. Updated the source of the applicatoin to inline iframe and given source to my local applicatoin (http://localhot/demo/default.aspx)

     

     5. Copied the default.aspx from sample (below is the code)

     

            requestObj.APIversion = "v1";

            requestObj.AssetID = "";

            requestObj.BaseApiUrlHost = "api.myspace.com";

            requestObj.ConsumerKey = Request.QueryString["oauth_consumer_key"];

            requestObj.ConsumerSecret = "secret key of the app";

            requestObj.RequestMethod = (HttpPostUtility.RequestMethod)Convert.ToInt32(DropDownList1.SelectedItem.Value);

            requestObj.RequestMode = HttpPostUtility.RequestMode.QueryString;

            requestObj.ResponseType = HttpPostUtility.ResponseType.XML;

            requestObj.Token = Request.QueryString["opensocial_token"];

            requestObj.TokenSecret = "";

            requestObj.UserId = "myuserid";

     

     6. When i run the applicaion on myspace i am getting the below error

     


    The remote server returned an error: (401) Unauthorized.

     

    is the myuserid is got from consumerkey the xxxxxx part  [http://www.myspace.com/xxxxxxx]

     

    do our APP to get publish before 

  • 09-16-2008 4:11 AM In reply to

    • Seenu
    • Not Ranked
    • Joined on 08-27-2008
    • Posts 5

    Re: .NET Client Libraries for REST?


  • 09-16-2008 4:21 AM In reply to

    • Seenu
    • Not Ranked
    • Joined on 08-27-2008
    • Posts 5

    Re: .NET Client Libraries for REST?


     

    hay,can you send me your working code as I  am in need of MyDSpace API code in ASP.Net 2.0 to return User's Profole Views and friends count , I even tried by using MySpace toolkit but I am only getting 401 authentication error ,even though I done a change in representing BaseApiUrlHost as "api.msappspace.com";

  • 01-29-2009 12:35 PM In reply to

    • sobees
    • Not Ranked
    • Joined on 01-28-2009
    • Posts 3

    Re: .NET Client Libraries for REST?

    i'm also interested about a working piece of code.... I'm trying to make it work with the MySpaceToolkit, but I always have a 401 error.... Anyone who has an idea how to solve it?? thxxxx
  • 02-09-2009 2:20 PM In reply to

    • Dawa
    • Not Ranked
    • Joined on 12-04-2008
    • Posts 3

    Re: .NET Client Libraries for REST?

     

    Hi I am using CS.Net with the following modification on your code. Try this see if it helps. You can modify to fit your VS.Net code.

     

                       requestObj.APIversion = "v1";


            requestObj.BaseApiUrlHost = "api.myspace.com";

            requestObj.ConsumerKey = Request["oauth_consumer_key"];

            requestObj.ConsumerSecret = "secret key of the app"; //you can get this by using Request["oauth_consumer_key"]

     

            requestObj.RequestMethod = (HttpPostUtility.RequestMethod)Convert.ToInt32(DropDownList1.SelectedItem.Value);

            requestObj.RequestMode = HttpPostUtility.RequestMode.QueryString;

            requestObj.ResponseType = HttpPostUtility.ResponseType.XML;

            requestObj.Token = Request["oauth_token"];

            requestObj.TokenSecret = ""; //this is from app profile page

            requestObj.UserId = "myuserid"; //this can be Request["opensocial_owner_id"]

     

    Hope this is helpful.

  • 03-23-2009 12:47 PM In reply to

    258 Video tutorials for developers free!!!

    258 Video tutorials for developers free!!!

    www.mrbool.com

    Mr. Bool it’s a web site dedicated exclusively for software developers. Actually, most part of our content is focused to .Net, but we already have stuff about Java and Database too.
    The spread of Mr.Bool is that 90% of our content is in the form of video lessons. We already have more than 250 videos and every month we produce more 10 new videos. And this material is totally free at our website! This website is helping a lot of developers and we would like to help so much more.

    Take a look at Mr. Boo and know a little bit more about tour services. We’re sure that you’re going to like it too!

    *258 Video tutorials
    *4 online courses
    *44 articles

    * Contact us

    Gladstone Matos

    gladstone@clubedelphi.net

    Kaline Dolabella

    kaline@devmedia.com.br

  • 03-23-2009 12:50 PM In reply to

     258 Video tutorials free!!!

    www.mrbool.com

    Mr. Bool it’s a web site dedicated exclusively for software developers. Actually, most part of our content is focused to .Net, but we already have stuff about Java and Database too.
    The spread of Mr.Bool is that 90% of our content is in the form of video lessons. We already have more than 250 videos and every month we produce more 10 new videos. And this material is totally free at our website! This website is helping a lot of developers and we would like to help so much more.

    Take a look at Mr. Boo and know a little bit more about tour services. We’re sure that you’re going to like it too!

    *258 Video tutorials
    *4 online courses
    *44 articles

    * Contact us

    Gladstone Matos

    gladstone@clubedelphi.net

    Kaline Dolabella

    kaline@devmedia.com.br

  • 07-11-2009 6:52 AM In reply to

    Re: .NET Client Libraries for REST?

     Hi Joseph,

    I have used this library to extract profile information of myspace.com user.But,all the time it gives me the same error........

     The remote server returned an error: (401) Unauthorized.

    I have created a test application at myspace namely ROT whose consumer key is: http://www.myspace.com/483043552 and secret is  ecd7321e29674ca6a85fb4a62d0579aa.

    Will you please suggest me the possible reasons for getting such a message...........?

    Thanks

     

     

     

     

     

     

  • 09-21-2009 11:49 PM In reply to

    • Kumud
    • Not Ranked
    • Joined on 09-07-2009
    • Posts 1

    Re: .NET Client Libraries for REST?

    Hi Guys,

    I am new to myspace and currently trying to create a desktop application that connects with myspace and post and download photos.  

    I tried the MySpaceToolkit but not able to run it to see the result. I am getting following error from the tookkit tester application. 

    The remote name could not be resolved: 'api.myspace.com'

    Can someone help me to resolve this issue and share the piece of code that helps me to build a small desktop application.

    Thanks & Regards,

    Kumud

  • 09-22-2009 8:12 AM In reply to

    • John
    • Top 200 Contributor
    • Joined on 02-02-2008
    • Posts 26

    Re: .NET Client Libraries for REST?

    The OpenSocial 0.9 REST API that just released supports photo uploads and downloads. The C# SDK for OpenSocial has also been updated with sample code 0.9:

     http://developer.myspace.com/Community/blogs/devteam/archive/2009/09/21/full-support-of-opensocial-0-9-rest-apis-now-available.aspx

Page 4 of 4 (60 items) < Previous 1 2 3 4