protected void Page_Load(object sender, EventArgs e) { var context = new OnsiteContext("YOUR_CONSUMER_KEY", "YOUR_CONSUMER_SECRET"); var response = context.ValidateSignature("http://localhost:9090", "/oauthvalidation.aspx", this.Request, string.Empty); this.Context.Response.ContentType = "text/plain"; this.Context.Response.Write(response); }
protected void btnRequest_Click(object sender, EventArgs e) { var context = new OnsiteContext("YOUR_CONSUMER_KEY", "YOUR_CONSUMER_SECRET"); context.OAuthConsumer.ApiServerUri = "http://localhost:9090"; var response = context.MakeRequest("/oauthvalidation.aspx", ResponseFormatType.Default, HttpMethodType.GET, null, false); Response.Write(response); }
public OnSiteRestV1Test() { context = new OnsiteContext(Constants.OnSiteConsumerKey, Constants.OnSiteConsumerSecret); restV1 = new MySpaceID.SDK.Api.RestV1(context); context.OAuthTokenKey = Constants.OAuthTokenKey; context.OAuthTokenSecret = Constants.OAuthTokenSecret; }
public OnSiteRoaApiTest() { context = new OnsiteContext(Constants.OnSiteConsumerKey, Constants.OnSiteConsumerSecret); openSocialv9 = new MySpaceID.SDK.Api.RoaApi(context); }