Hi,
I'm working on an Android application for Android,
API methodes like getFriendsTimeline, works fine so I guess
authentication works fine,
but I got trouble with postUpdate. Here's My code :
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://" + user_login + ":" +
md5(user_password) + "@
twitxr.com/api/rest/postUpdate");
try
{
// add vars to the request
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
nameValuePairs.add(new BasicNameValuePair("place", place));
nameValuePairs.add(new BasicNameValuePair("text", text));
httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
//
HttpResponse response = httpclient.execute(httppost);
...
}
catch (ClientProtocolException e)
{
// TODO Auto-generated catch block
}
catch (IOException e)
{
// TODO Auto-generated catch block
}
All I can get is "Invalid Credentials" .. What could be the problem
here?
Thanks a lot.