Skip to main content
deleted 13 characters in body; edited tags
Source Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64

The below 2 codes returns null always. howHow to get the list of questions using API Version 2.2 1)?

1. Question thisPost = context.Official .StackApps .Questions.ById(1) .WithComments(true) .First(); 2)

2. var context = new ApiContext(apikey).Initialize(false); var site = context.Find("https://stackexchange.com/");

        var skysQuestions = site.Users.ById(1).Questions.ToList();

The below 2 codes returns null always. how to get the list of questions using API Version 2.2 1) Question thisPost = context.Official .StackApps .Questions.ById(1) .WithComments(true) .First(); 2) var context = new ApiContext(apikey).Initialize(false); var site = context.Find("https://stackexchange.com/");

        var skysQuestions = site.Users.ById(1).Questions.ToList();

The below 2 codes returns null always. How to get the list of questions using API Version 2.2?

1. Question thisPost = context.Official .StackApps .Questions.ById(1) .WithComments(true) .First();

2. var context = new ApiContext(apikey).Initialize(false); var site = context.Find("https://stackexchange.com/");

    var skysQuestions = site.Users.ById(1).Questions.ToList();
Source Link

Why API Version 2.2 returns null always while getting questions list?

The below 2 codes returns null always. how to get the list of questions using API Version 2.2 1) Question thisPost = context.Official .StackApps .Questions.ById(1) .WithComments(true) .First(); 2) var context = new ApiContext(apikey).Initialize(false); var site = context.Find("https://stackexchange.com/");

        var skysQuestions = site.Users.ById(1).Questions.ToList();