Navigation Data c# sample

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fossystem1
    Junior Member
    • Jun 2014
    • 5

    #1

    Navigation Data c# sample

    Hello all,
    Would you so kind to provide sample of Navigation Data using С# or link on topic where was described early.
    Thanks,
    Andrew
  • fossystem1
    Junior Member
    • Jun 2014
    • 5

    #2
    Was solved.

    Comment

    • betdynamics
      Junior Member
      • Sep 2010
      • 534

      #3
      Any chance you could post the solution for the benefit of others?

      Comment

      • ShootnikD
        Junior Member
        • Oct 2012
        • 11

        #4
        Code:
        string req = @"https://api.betfair.com/exchange/betting/rest/v1/en/navigation/menu.json";
                    System.Net.WebRequest feedClient = System.Net.WebRequest.Create(req);
                    feedClient.Headers["X-Application"] = yourApplicationKey;
                    feedClient.Headers["X-Authentication"] = yourSessionToken;
                    feedClient.Method = "GET";
                    System.Net.WebResponse feedResp = feedClient.GetResponse();
                    System.IO.Stream feedStream = feedResp.GetResponseStream();
                    System.IO.StreamReader reader = new System.IO.StreamReader(feedStream, Encoding.UTF8);
                    String responseString = reader.ReadToEnd();

        Comment

        • betdynamics
          Junior Member
          • Sep 2010
          • 534

          #5
          @ShootnikD

          Thanks for posting that.

          I think the question really related to how you PARSE the result of the response (not how to retrieve the information)

          Comment

          Working...
          X