Problem With Sample API-Ng Code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Randy86
    Junior Member
    • Jan 2013
    • 1

    #1

    Problem With Sample API-Ng Code

    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?
  • betdynamics
    Junior Member
    • Sep 2010
    • 534

    #2
    Are you using a current session id? (it changes every time you log in to Betfair)

    Comment

    Working...
    X