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.msappspace.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 = "";
6. When i run the applicaion on myspace i am getting the below error
The remote server returned an error: (401) Unauthorized.