At the top of the sample code I have done this:
class Program
{
private static string Url = "https://api.betfair.com/exchange/betting";
static void Main(string[] args )
{
Array.Resize(ref args, 2);
args[0] = "my app key";
args[1] = "my session key";
//app key and session token are mandatory
if (args.Length < 2)
{
Console.WriteLine("wrong number of arguments");
Environment.Exit(0);
}
The rest of the code is the same.
I keep getting this error:
App Key being used: mykey
Session token being used: mytoken
Using JsonRpcClient
Beginning sample run!
Calling: SportsAPING/v1.0/listEventTypes With args: {"filter":{},"locale":null}
Got Response: null
What am I doing wrong?
class Program
{
private static string Url = "https://api.betfair.com/exchange/betting";
static void Main(string[] args )
{
Array.Resize(ref args, 2);
args[0] = "my app key";
args[1] = "my session key";
//app key and session token are mandatory
if (args.Length < 2)
{
Console.WriteLine("wrong number of arguments");
Environment.Exit(0);
}
The rest of the code is the same.
I keep getting this error:
App Key being used: mykey
Session token being used: mytoken
Using JsonRpcClient
Beginning sample run!
Calling: SportsAPING/v1.0/listEventTypes With args: {"filter":{},"locale":null}
Got Response: null
What am I doing wrong?


Comment