Hi
I need to get over this basic hurdle but keeps coming back (400)Bad Request. Can anyone see the problem with this c# code.
private void btnAppKey_Click(object sender, EventArgs e)
{
string Url = "https://beta-api.betfair.com/json-rpc";
string token = SessionTokenManager.SessionToken;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url + "/createDeveloperAppKeys");
request.Headers.Add("X-Authentication", token);
request.Method = "Post";
request.ContentType = "application/json";
WebResponse response = request.GetResponse();
}
I need to get over this basic hurdle but keeps coming back (400)Bad Request. Can anyone see the problem with this c# code.
private void btnAppKey_Click(object sender, EventArgs e)
{
string Url = "https://beta-api.betfair.com/json-rpc";
string token = SessionTokenManager.SessionToken;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url + "/createDeveloperAppKeys");
request.Headers.Add("X-Authentication", token);
request.Method = "Post";
request.ContentType = "application/json";
WebResponse response = request.GetResponse();
}

