Login Authentication And Data Retrieving Problem


#1
TwitterCore.getInstance().logInGuest(new Callback<AppSession>() {
			@Override
			public void success(Result<AppSession> result) {
				AppSession guestAppSession = result.data;
				Log.v("result.data", result.data.getId() + "="
						+ result.data.getAuthToken());
				TwitterApiClient twitterApiClient = TwitterCore
						.getInstance().getApiClient(guestAppSession);
				
				twitterApiClient
						.getSearchService()
						.tweets("slug=space-alabama-news&owner_screen_name=joshWAAY31",
								null, null, null, null, 50, null, null,
								null, true, new Callback<Search>() {
									@Override
									public void success(
											Result<Search> result) {
										// use result tweets

										try {
											inputStream = result.response
													.getBody().in();
											Log.v("getReason",
													result.response
															.getReason()
															+ "="
															+ result.response
																	.getStatus());
											Log.v("getBody",
													result.response
															.getUrl()
															+ "="
															+ result.response
																	.getHeaders());
											String urls = result.response
													.getUrl();
											try {
												Log.d("URLSSSS", "=" + urls);
												DefaultHttpClient client = new DefaultHttpClient();
												HttpGet method = new HttpGet(
														new URI(urls));
												HttpResponse res = client
														.execute(method);
												inputStream = res
														.getEntity()
														.getContent();
												BufferedReader bufferedReader = new BufferedReader(
														new InputStreamReader(
																inputStream));
												Log.d("bufferedReader_",
														"="
																+ bufferedReader
																		.readLine());
												while (bufferedReader
														.readLine() != null) {
													Log.d("bufferedReader",
															"="
																	+ bufferedReader
																			.readLine());

												}
											} catch (Exception e) {
												e.printStackTrace();
											}

											// bufferedReader.close();
										} catch (IOException e) {

											e.printStackTrace();
										}

									}

									@Override
									public void failure(
											TwitterException exception) {
										final TwitterApiException apiException = (TwitterApiException) exception;
										final int errorCode = apiException
												.getErrorCode();
										if (errorCode == TwitterApiConstants.Errors.APP_AUTH_ERROR_CODE
												|| errorCode == TwitterApiConstants.Errors.GUEST_AUTH_ERROR_CODE) {
											// get new guestAppSession
											// optionally retry
										}
									}
								});
			}

			@Override
			public void failure(TwitterException exception) {
				// unable to get an AppSession with guest auth
			}
		});

In Above Code I got Error
={“errors”:[{“code”:215,“message”:“Bad Authentication data.”}]}

Please Help me what i am doing wrong.
I wants to show Custom List For URL

https://api.twitter.com/1.1/lists/statuses.json?slug=space-alabama-news;&owner_screen_name=joshWAAY31;&count=50;


#2

(moved to the Fabric/Twitter category as this is using Twitter Kit to sign in)


#3