how to get search result in windows 8.1

Oct 14, 2014 at 3:54 PM
Edited Oct 14, 2014 at 4:32 PM
I am using the following code for getting search result from the twitter but get no result. Please help me I am missing anything.

Also, how can I get implement pagination i.e. Suppose I want to get first 25 result once and then next 25 and so on.
    var auth = new ApplicationOnlyAuthorizer
    {
        CredentialStore = new InMemoryCredentialStore()
                              {
                                  ConsumerKey = "My_Key",
                                  ConsumerSecret = "My_Secret"
                              }
    };
    auth.AuthorizeAsync();
    var context = new TwitterContext(auth);

    var searchResponse = context.Search.Where(x => x.Type == SearchType.Search && x.Query == "Microsoft");
Looking forward for your help.
Coordinator
Oct 14, 2014 at 8:45 PM
Hi,

You can use WindowsStoreAuthorizer, like this:
                var auth = new WindowsStoreAuthorizer
                {
                    CredentialStore = new InMemoryCredentialStore
                    {
                        ConsumerKey = "",
                        ConsumerSecret = ""
                    },
                    Callback = "http://linqtotwitter.codeplex.com/"
                };

                await auth.AuthorizeAsync();
In the downloadable Source code, the LinqToTwitterPcl solution has a project named Linq2TwitterDemos_WindowsStore with a working example.

@JoeMayo
Marked as answer by JoeMayo on 10/19/2014 at 1:26 PM
Oct 15, 2014 at 4:02 AM
Thanks
Feb 9, 2015 at 8:26 PM
JoeMayo wrote:
Hi,

You can use WindowsStoreAuthorizer, like this:
                var auth = new WindowsStoreAuthorizer
                {
                    CredentialStore = new InMemoryCredentialStore
                    {
                        ConsumerKey = "",
                        ConsumerSecret = ""
                    },
                    Callback = "http://linqtotwitter.codeplex.com/"
                };

                await auth.AuthorizeAsync();
In the downloadable Source code, the LinqToTwitterPcl solution has a project named Linq2TwitterDemos_WindowsStore with a working example.

@JoeMayo
hi there; I can get everything in the Windows Store sample to work (user home timeline, friend stream etc) but the Stream Filter example throws 401 Status errors.

So to reiterate, the project builds and executes successfully and displays the UI but after you authorize the app and click on Filtered Stream (which should filter on the word twitter) you see exceptions as the results are iterated.

I've tried the PinAuthorizer with streaming status filter api as well but still get 401 errors.

please advise
thanks very much