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