Using java Syntax Highlighting
- private void Authication() throws Exception {
- // TODO Auto-generated method stub
- DefaultHttpClient client = new DefaultHttpClient();
- client.getCredentialsProvider().setCredentials(
- new AuthScope("api.cliqset.com", 200),
- new UsernamePasswordCredentials("Radzell", "Radzell1"));
- String login = "api.cliqset.com";
- URI uri = null;
- try {
- uri = new URI(login);
- } catch (URISyntaxException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- HttpGet method = new HttpGet(uri);
- method.addHeader("CliqsetConsumerKey",
- Consumerkey);
- HttpResponse res = null;
- try {
- res = client.execute(method);
- } catch (ClientProtocolException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- Log.i("log file",res.toString());
- }
- }
Parsed in 0.034 seconds, using GeSHi 1.0.8.4
I can figure out why i keep getting this error this is my second attempt first was with Oauth i can get any authication to work with Android can someone help.


