Re: [twitter-dev] TweetDeck joins Twitter

2011-05-26 Thread Ernandes Jr.
Twitter is trying to defend himself of becoming an hostage, since most users
use these apps instead of the website. With such huge users base, TweetDeck
along with other app, e.g., Echofon, would have enough audience to create a
competitor to Twitter eventually.

Anyway, there is also room for innovation. Let's put our head to work. Who
knows our app becomes the next big purchase by Twitter. :D

On Wed, May 25, 2011 at 2:02 PM, Felipe Knorr Kuhn fkn...@gmail.com wrote:

 I just wish Twitter would focus on the features the users want, rather than
 spending money buying Twitter clients.

 Some are really simple like raising the number of lists you can create, an
 url shortener on the web interface, tweet to groups, etc.

 Or the really useful feature that is searching for tweets older than one
 week.

 But oh well, you can't demand features from a free service, anyway.

 FK


 On Wed, May 25, 2011 at 12:34 PM, Matt Harris 
 thematthar...@twitter.comwrote:

 Hey everyone,

 Today we announced on the Twitter Blog (
 http://blog.twitter.com/2011/05/all-decked-out.html ) that the TweetDeck
 team has joined Twitter.

 When Tweetie became part of the Twitter family the user growth was huge,
 creating more opportunities for developers to build applications for the
 growing audience. With TweetDeck now joining us we expect to see even more
 opportunities become available to you and look forward to seeing what you
 create.

 TweetDeck is a powerful platform for brands, publishers and advanced
 Twitter users, and we’re really excited that Iain and his team are joining
 us. We’re looking forward to working with them as we invest and support the
 TweetDeck that you all are familiar with.

 Best
 @themattharris

 --
 Twitter developer documentation and resources:
 https://dev.twitter.com/doc
 API updates via Twitter: https://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 https://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 https://groups.google.com/forum/#!forum/twitter-development-talk


  --
 Twitter developer documentation and resources: https://dev.twitter.com/doc
 API updates via Twitter: https://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 https://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 https://groups.google.com/forum/#!forum/twitter-development-talk




-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] Twitter API ME 1.6

2011-02-14 Thread Ernandes Jr.
Hi,

I would like to announce that *Twitter API ME 1.6* has just been released.
The main features present in this version are:

   - Retweets to me timeline
   - Retweets by me timeline
   - Tweets from list timeline
   - List management (e.g. create, update, memberships, subscriptions, etc)
   - Special character (*) in password bug fix

To download the new version, access:

http://kenai.com/projects/twitterapime/downloads/directory/1.6

Twitter API ME is available for Java ME, Android and Blackberry devices.

Regards,

-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] J2ME client to twitter

2010-12-29 Thread Ernandes Jr.
Hi,

Twitter4j is only for JSE and Android platforms. To develop a J2ME Twitter
Client, try this lib here:

http://kenai.com/projects/twitterapime/

Regards,
Ernandes

On Fri, Dec 24, 2010 at 3:05 PM, Kalpa Welivitigoda callka...@gmail.comwrote:

 Hi all,

 I though to develop a J2ME twitter client and wrote some code. I got
 stuck in authentication step.

 http://twitter4j.org/en/code-examples.html
 I tried this but there's no BufferedReader in J2ME.

 I read that pin type authentication is better for mobile apps. But
 found no proper guide.

 Does anyone know a proper link by which I can overcome this
 authentication issue?

 Thanks in advance.

 --
 Best Regards,

 Kalpa Pathum Welivitigoda
 http://kalpapathum.blogspot.com
 http://thiraya.wordpress.com

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk




-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Twitter API ME 1.5 released

2010-10-31 Thread Ernandes Jr.
Hi,

Just to announce that *Twitter API ME 1.5* has just been released.

In this new version, the following new features are available:

   - List of pending friends/followers request
   - Report spam
   - Retweets of me timeline
   - Trend Topics search
   - *Tweet's* entities
   - Retrieval of access token from UserAccountManager class

For further information on this new release, access www.twitterapime.com

Regards,

-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Twitter xauth login for posting and receiving Tweets

2010-09-15 Thread Ernandes Jr.
Your code looks OK! Either your problem is related to your keys our your
environment. Have you tryied to run you code on a real device?

On Wed, Sep 15, 2010 at 6:30 AM, vinod mopuruvinodre...@gmail.com wrote:

 Hi,
 Hi,

 I imported the libraries:

 xauth-encoders.jar
 kxml2-min-2.3.0.jar,
 mobile-ju-framework-1.0.jar
 twitter_api_me-1.3.jar


 After using Ernandes library i am receiving errors as below
 I used single access token here
 verification of credentials are successfull. but failed to Tweet and
 received below errors

 In WTK 3.0
 javax.microedition.io.ConnectionNotFoundException: ConnectionNotFound
 error in socket::open : error = 10060

 In WTK 2.5.2
 java.lang.SecurityException: Invalid / expired Token

 Source is as follows:

 Token token = new Token(token_access, token_secret);
 Credential c = new Credential(rahulka...@gmail.com,
 8oHIBK7T90Ye7GjIF6SToA,
 4Ebm4f7bie2AAYyN75DxwSUYeg8x0SBlL0IyKIXzaw, token);
 UserAccountManager m = UserAccountManager.getInstance(c);
 try {
 if (m.verifyCredential()) {
 System.out.println(Consumer or token keys are success);
 Tweet t = new Tweet(Hi!!! This is my first tweet via Twitter API
 ME.);
 TweetER ter = TweetER.getInstance(m);
 t = ter.post(t);

 } else {
 System.out.println(Consumer or token keys are invalid!);
 }
 } catch (Exception ex) {
 System.out.println(Exception here1=+ex);
 }

 If i use normal credentials my application is not able to validate
 credentials itself

 In WTK 3.0

 javax.microedition.io.ConnectionNotFoundException: ConnectionNotFound
 error in socket::open : error = 10060

 In WTK 2.5.2

 Credentials unsucessfull

 Also when i am not able to import Equifax cert
 Please help to authentication, post and receive tweets using my
 application.

 Regards,
 Basu

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en




-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Re: J2ME OAUTH token for Twitter

2010-09-08 Thread Ernandes Jr.
Hi, Amid

Do you know Twitter API ME (www.twapime.com)? This is a complete mobile Java
API that already supports xAuth. Even if you do not want to use it, you can
at least check its source code so you can find a solution for you problem.

In addition, here it goes a link that explaing how you have to perform to
get authenticated to Twitter, using OAuth, from your Java ME application:
http://dev.twitter.com/pages/xauth

Regards,
Ernandes

On Wed, Sep 8, 2010 at 2:56 AM, Amid Lad amid@gmail.com wrote:

 Thanks Tayalor

 But I am developing a twitter app for mobile (j2me)

 should i get request token everytime user want to login ?
 should user enter pin code everytime ?
 should i get access token everytime ?

 isn't there is any other way rather than providing the pin user should
 directly login...

 Amit Lad


 On Sep 7, 3:23 am, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
  It's forbidden to automate the OAuth flow such that you attempt
  scarping the PIN code from the resultant page.
 
  If your application is capable of receiving URL-based callback, you'll
  want to preconfigure a default callback on dev.twitter.com (which
  indicates that your app is capable of receiving a callback) and
  provide an explicit callback on the request token step. When the user
  is sent to your callback, an oauth_verifier (PIN) will be included
  with the other relevant oauth_* parameters.
 
  If your application is incapable of receiving an URL-based callback,
  you need to present a UI for the user to hand-enter the PIN
  code/oauth_verifier, and then use that value to complete the flow
  after sending the user through the authorization steps.
 
  Taylor
 
  On Mon, Sep 6, 2010 at 12:14 AM, Amid Lad amid@gmail.com wrote:
   I've been transitioning our basic authentication calls over to OAuth.
   I'm using the j2me OAUTH library(for mobile). All of the
   authentication calls
   are working and I receive proper responses from GET requests.
 
   But the problem is with access token. What I have to do is to pass the
   url and get the
   pin number and need to pass the pin number to get the access.
 
   How can I avoid this process and directly get the pin response from
   server and use it get the
   twitter access?
 
   What is the url to get the pin response?
 
   Thanks in advance.
 
   --
   Twitter developer documentation and resources:
 http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en




-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Re: New SSL certificate issue with WTK 2.5.2

2010-09-02 Thread Ernandes Jr.
 in
   the
past?
 
-j
 
On Thu, Jul 22, 2010 at 6:43 AM, bjcoredev 
 jme...@gmail.com wrote:
 It seems that SUN WTK 2.5.2 doesn't accept wildcard
 certificates
 I hope that mobile platforms accept wildcard SSL
 certificates. If
 this
 not the case, it will make twitter xAuth/oAuth
 unusable
 
 Regards
 
 On 22 juil, 14:57, bjcoredev jme...@gmail.com wrote:
  Hi
 
  My mobile app logged to twitter using xAuth and was
 working like
 a
  charm until the last SSL certicate changed
  (seehttp://

 groups.google.com/group/twitter-development-talk/browse_thread...)
 
  My app logs correctly with the new certicate on real
 device (N97)
but
  failed with the 2.5.2 Sun Wireless Toolkit wich i use
 to develop
 my
  app.
 
  when i request token with the url (with all the
 parameters
 needed):
https://api.twitter.com/oauth/access_token
 
  I get the following error message relative to the SSL
 certificate:
 
  Subject alternative name did not match site name
 
  It seems that the SSSL certificate doesn't match the
 host name
  (api.twitter.com)
 
  I can't now no longer code end test my app on the
 computer
  Help !!!
 
  I repeat: All was working fine before the SSL
 certificate change
 on
  the 21/07/2001 1AM GMT.
 
  Regards- Masquer le texte des messages précédents -
 
- Afficher le texte des messages précédents -- Masquer le
 texte des
 messages précédents -
 
  - Afficher le texte des messages précédents -
 
--
 
Matt Harris
Developer Advocate, Twitterhttp://twitter.com/themattharris
 
   --
 
   Matt Harris
   Developer Advocate, Twitterhttp://twitter.com/themattharris
 
   --
   Twitter developer documentation and resources:
 http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en
 
  --
 
  Matt Harris
  Developer Advocate, Twitterhttp://twitter.com/themattharris

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en




-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Twitter Authentication

2010-09-02 Thread Ernandes Jr.
With SDK 3 it is supposed to work. You will have to import Equifax
certificate.

Check this tutorial:

http://kenai.com/projects/twitterapime/forums/forum/topics/3078-How-To-Using-Twitter-API-ME-with-Java-ME-SDK-3-0

On Thu, Sep 2, 2010 at 1:52 AM, Pradeep Senanayake 
pradeepd.senanay...@gmail.com wrote:

 HI

 I also tried on J2ME platform 3 but its too gives an exception like belows

 javax.microedition.pki.CertificateException: Certificate was issued by an
 unrecognized entity

 pls tel me how to avoid these certificate thing and get it done using Http.

 thanks  regards,
 Pradeep.


 On Thu, Sep 2, 2010 at 10:34 AM, Pradeep Senanayake 
 pradeepd.senanay...@gmail.com wrote:

 HI,

 Thaks for the immediate  reply.

 It doesnt work in nokia N95 also, but I will try it on wtk 3.

 Thanks  Regards,
 Pradeep.


 On Wed, Sep 1, 2010 at 8:09 PM, Ernandes Jr. ernan...@gmail.com wrote:

 Hi,

 This is a known issue of WTK 2.5.2, which has some issues to support the
 type of certificate used by Twitter. It has nothing to do with the API
 itself. I suggest you to try it on Java ME Plataform SDK 3 or on your
 device.

 Regards,
 Ernandes


 On Wed, Sep 1, 2010 at 2:20 AM, Pradeep Senanayake 
 pradeepd.senanay...@gmail.com wrote:

 Hi,

 Im using TwitterMe api for my mobile application, I registered my
 application in twitter and got the consumer key and the secret key.
 The problem Im having is after I post a twit it gives an exception
 which tells

 javax.microedition.pki.CertificateException: Subject alternative name
 did not match site name

 This is how I do the post.

 Credential credential = new Credential(user,
 pwd,Constants.twitConsumerKey,Constants.twitConsumerSecretKey);
 UserAccountManager userAccMgr =
 UserAccountManager.getInstance(credential);
if (userAccMgr.verifyCredential()) {
Tweet tweet = new Tweet(message);
TweetER tweeter =
 TweetER.getInstance(userAccMgr);
tweet = tweeter.post(tweet);
DialogFrame frame =  new DialogFrame();
frame.setTitle(Twitter);
frame.setBody(Successfully Twitted!);
frame.createUI(2);
}


 pls some body help me. Thanks in advance.

 pradeep.

 --
 Twitter developer documentation and resources:
 http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en




 --
 Ernandes Jr.
 -
 ALL programs are poems. However,
 NOT all programmers are poets.

  --
 Twitter developer documentation and resources:
 http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en



  --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en




-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Twitter Authentication

2010-09-01 Thread Ernandes Jr.
Hi,

This is a known issue of WTK 2.5.2, which has some issues to support the
type of certificate used by Twitter. It has nothing to do with the API
itself. I suggest you to try it on Java ME Plataform SDK 3 or on your
device.

Regards,
Ernandes

On Wed, Sep 1, 2010 at 2:20 AM, Pradeep Senanayake 
pradeepd.senanay...@gmail.com wrote:

 Hi,

 Im using TwitterMe api for my mobile application, I registered my
 application in twitter and got the consumer key and the secret key.
 The problem Im having is after I post a twit it gives an exception
 which tells

 javax.microedition.pki.CertificateException: Subject alternative name
 did not match site name

 This is how I do the post.

 Credential credential = new Credential(user,
 pwd,Constants.twitConsumerKey,Constants.twitConsumerSecretKey);
 UserAccountManager userAccMgr =
 UserAccountManager.getInstance(credential);
if (userAccMgr.verifyCredential()) {
Tweet tweet = new Tweet(message);
TweetER tweeter =
 TweetER.getInstance(userAccMgr);
tweet = tweeter.post(tweet);
DialogFrame frame =  new DialogFrame();
frame.setTitle(Twitter);
frame.setBody(Successfully Twitted!);
frame.createUI(2);
}


 pls some body help me. Thanks in advance.

 pradeep.

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en




-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] Twitter API ME 1.4: New release!!!

2010-08-29 Thread Ernandes Jr.
Hi all,

I would like to inform that *Twitter API ME 1.4* has just been released.
This new version comes with new features and the correction of a bug that
was preventing it to work on Blackberry devices. So Blackberry developers,
you all are now welcome back to Twitter API ME.

The new features available on version 1.4 are:


   - Single Access Token auth
   - Geo-located tweets
   - Friends/Followers list
   - Update user profile


See below how easy is to use Single Access token and send a geo-located
tweet.

*Token = new Token(token_access, token_secret);*
*Credential c = new Credential(user_name, consumer_key,
consumer_secret, token);*
*
*
*UserAccountManager m = UserAccountManager.getInstance(c);*
*
*
*if (m.verifyCredential()) {*
*  GeoLocation loc = new GeoLocation(+37.5, +26.7);*
*  Tweet t = new Tweet(Cool! Geo-located tweet via Twitter API ME. \o/,
loc);*
*
*
*  TweetER ter = TweetER.getInstance(m);*
*
*
*  t = ter.post(t);*
*}*

Easy, huh?

For further information on Twitter API ME, please visit us at
www.twitterapime.com.

Regards,

-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Re: STATUS update after getting the Auth token using by using X-auth.

2010-08-18 Thread Ernandes Jr.
(
 \, oauth_timestamp=\).append(
 
  URLUTF8Encoder.encode(oauth_timestamp)).append(
 \, oauth_consumer_key=\).append(my
 consumer key)
 .append(\,oauth_token=\).append(
 
  URLUTF8Encoder.encode(token.getToken())).append(
 \,
 oauth_signature=\).append(
 
  URLUTF8Encoder.encode(signature)).append(
 \,
 oauth_version=\).append(oauth_version).append(
 \).toString();
 UpdateMyNewStatus(header, postBody);
 }
 
 public static void UpdateMyNewStatus(String auth_header, String
 body)
  {
 String url = http://api.twitter.com/1/statuses/update.json
 ;
 HttpConnection httpConn = null;
 InputStream input = null;
 OutputStream os = null;
 try {
 
 httpConn = (HttpConnection) Connector.open(url
 +
 ConnectionUtils.getConnectionPerameter());
 
  httpConn.setRequestMethod(HttpProtocolConstants.HTTP_METHOD_POST);
 httpConn.setRequestProperty(WWW-Authenticate,
 OAuth realm=http://twitter.com/;);
 httpConn.setRequestProperty(Content-Type,
 
  application/x-www-form-urlencoded);
 String authHeader = auth_header;
 httpConn.setRequestProperty(Authorization,
 authHeader);
 
 // write post body
 String postBody = body;
 httpConn.setRequestProperty(Content-Length,
 Integer
 
  .toString(postBody.getBytes().length));
 os = httpConn.openOutputStream();
 os.write(postBody.getBytes());
 os.close();
 os = null;
 
 input = httpConn.openDataInputStream();
 
 int resp = httpConn.getResponseCode();
 Dialog.alert(httpConn.getResponseMessage());
 
 if (resp == HttpConnection.HTTP_OK) {
 
 StringBuffer buffer = new StringBuffer();
 int ch;
 while ((ch = input.read()) != -1) {
 buffer.append((char) ch);
 }
 String content = buffer.toString();
 Dialog.alert(content);
 }
 
 } catch (Exception e) {
 } finally {
 try {
 httpConn.close();
 input.close();
 } catch (IOException e) {
 e.printStackTrace();
 }
 }
 }
 
   i am using the above code..
 
  On Aug 17, 7:24 pm, Tom van der Woerdt i...@tvdw.eu wrote:
  On 8/17/10 1:47 PM, LINUXGEEK wrote:
 
  can any one help in updating the status of my twitter account by
 using
  auth token and secret.
 
  am getting 401 error while doing this..
 
  can any one give me code for updating the status.
 
  I could give you pseudocode, yes, but that will most likely be useless
  to you.
 
  Assuming that you know how to program a HTTP socket, what is the
 request
  you make to twitter before getting this 401 error, and what is the
 base
  string you use to generate the signature?
 
  Tom
 
  PS: People have said that I never mention the existence of libraries.
  So, here I go:http://dev.twitter.com/pages/oauth_libraries
  PPS: I dislike libraries.




-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.


Re: [twitter-dev] Re: STATUS update after getting the Auth token using by using X-auth.

2010-08-18 Thread Ernandes Jr.
Are you running it on a Blackberry? :)

On Wed, Aug 18, 2010 at 8:29 AM, LINUXGEEK yakubpash...@gmail.com wrote:

 hello Ernandes up to now is studied your code but  i am getting
 structed while using the send() in your twitter api me 1.3


 thanks for the replay..



 On Aug 18, 3:53 pm, Ernandes Jr. ernan...@gmail.com wrote:
  Hi,
 
  Check my xAuth implementation in TwAPIme,www.twapime.com. Maybe you can
  find what's wrong with your code.
 
  Regards,
  Ernandes
 
  On Wed, Aug 18, 2010 at 7:42 AM, Tom van der Woerdt i...@tvdw.eu
 wrote:
 
 
 
   The problem is that the last time I did Java (this is Java, right?) was
   ages ago (I was 12 back then) so I don't really know what the code is
   doing. The code looks fine to me, but like I said, I don't know Java
   very well.
 
   Can you show the actual request you make, instead of code? Like the
   POST /1/statuses/update.json HTTP/1.1 part. Also include the base
   string which you use.
 
   Tom
 
   On 8/18/10 12:38 PM, LINUXGEEK wrote:
Thanks for the replay i was waiting for your replay
 
here is my post body
 
String postBody = status=
  + URLUTF8Encoder.encode(Test
 message);
 
here is the base String
 
String baseString = POST
  + URLUTF8Encoder
  .encode(
  http://api.twitter.com/1/statuses/update.json;)
  + oauth_consumer_key%3D + my
 consumer
   key
  + %26oauth_nonce%3D+oauth_nonce+a
  +
   %26oauth_signature_method%3D+oauth_signature_method
  + %26oauth_token%3D+auth_token
  +
 %26oauth_timestamp%3D+oauth_timestamp
  + %26oauth_version%3D+oauth_version +
   %26
  + URLUTF8Encoder.encode(postBody);
 
  String signingSecret = URLUTF8Encoder.encode(my Secret key)+
 
   +
URLUTF8Encoder.encode(auth_secret);
 
here is my signature
 
  String signature =
   URLUTF8Encoder.encode(hmacsha1(signingSecret,
baseString));
 
here is my header
 
String header = new StringBuffer(OAuth oauth_nonce=\).append(
  oauth_nonce).append(
  \,
 oauth_signature_method=\).append(
  oauth_signature_method).append(
  \, oauth_timestamp=\).append(
  oauth_timestamp).append(
  \, oauth_consumer_key=\).append(my
   consumer key)
  .append(\,oauth_token=\).append(
   
 token.getToken()).append(
  \,
   oauth_signature=\).append(
  signature).append(
  \,
   oauth_version=\).append(oauth_version).append(
  \).toString();
 
one more question here
when i am making the http request do i need to write the post body to
the outputStream..
 
and tell me what should i change in the above code...
 
On Aug 18, 3:28 pm, Tom van der Woerdt i...@tvdw.eu wrote:
Hi,
 
That's a lot of code, but I prefer to know what it is doing over the
actual code. So: can you post a request which you make to Twitter,
 and
can you give the Base String which you use for generating the
 signature?
 
Tom
 
On 8/18/10 8:08 AM, LINUXGEEK wrote:
 
private void StatusUpdate() throws CryptoTokenException,
   CryptoUnsupportedOperationException, IOException
 {
 
   String oauth_signature_method = HMAC-SHA1;
   String oauth_timestamp = String.valueOf(timestamp());
   String oauth_nonce = createNonce(oauth_timestamp);
   String oauth_version = 1.0;
 
   String postBody = status=
   + URLUTF8Encoder.encode(Finally i got
   success);
 
   String baseString = POST
   + URLUTF8Encoder
   .encode(
  https://api.twitter.com/1/statuses/update.json;)
   + oauth_consumer_key%3D + my
 consumer
   key
   + %26oauth_nonce%3D + oauth_nonce
   + %26oauth_signature_method%3D +
   oauth_signature_method
   + %26oauth_token%3D + token.getToken()
   + %26oauth_timestamp%3D +
 oauth_timestamp
   + %26oauth_version%3D + oauth_version
 +
   %26
   + URLUTF8Encoder.encode(postBody);
   String signingSecret = URLUTF8Encoder
   .encode(my consuer Secret

Re: [twitter-dev] Re: STATUS update after getting the Auth token using by using X-auth.

2010-08-18 Thread Ernandes Jr.
OK!

I am working on this issue. Hope to get a fix for that very soon.

Regards,
Ernandes

On Wed, Aug 18, 2010 at 8:48 AM, LINUXGEEK yakubpash...@gmail.com wrote:

 yep..
 am running it in blackberry

 On Aug 18, 4:33 pm, Ernandes Jr. ernan...@gmail.com wrote:
  Are you running it on a Blackberry? :)
 
  On Wed, Aug 18, 2010 at 8:29 AM, LINUXGEEK yakubpash...@gmail.com
 wrote:
   hello Ernandes up to now is studied your code but  i am getting
   structed while using the send() in your twitter api me 1.3
 
   thanks for the replay..
 
   On Aug 18, 3:53 pm, Ernandes Jr. ernan...@gmail.com wrote:
Hi,
 
Check my xAuth implementation in TwAPIme,www.twapime.com. Maybe you
 can
find what's wrong with your code.
 
Regards,
Ernandes
 
On Wed, Aug 18, 2010 at 7:42 AM, Tom van der Woerdt i...@tvdw.eu
   wrote:
 
 The problem is that the last time I did Java (this is Java, right?)
 was
 ages ago (I was 12 back then) so I don't really know what the code
 is
 doing. The code looks fine to me, but like I said, I don't know
 Java
 very well.
 
 Can you show the actual request you make, instead of code? Like the
 POST /1/statuses/update.json HTTP/1.1 part. Also include the base
 string which you use.
 
 Tom
 
 On 8/18/10 12:38 PM, LINUXGEEK wrote:
  Thanks for the replay i was waiting for your replay
 
  here is my post body
 
  String postBody = status=
+ URLUTF8Encoder.encode(Test
   message);
 
  here is the base String
 
  String baseString = POST
+ URLUTF8Encoder
.encode(
http://api.twitter.com/1/statuses/update.json;)
+ oauth_consumer_key%3D + my
   consumer
 key
+
 %26oauth_nonce%3D+oauth_nonce+a
+
 %26oauth_signature_method%3D+oauth_signature_method
+ %26oauth_token%3D+auth_token
+
   %26oauth_timestamp%3D+oauth_timestamp
+
 %26oauth_version%3D+oauth_version +
 %26
+ URLUTF8Encoder.encode(postBody);
 
String signingSecret = URLUTF8Encoder.encode(my Secret
 key)+
   
 +
  URLUTF8Encoder.encode(auth_secret);
 
  here is my signature
 
String signature =
 URLUTF8Encoder.encode(hmacsha1(signingSecret,
  baseString));
 
  here is my header
 
  String header = new StringBuffer(OAuth oauth_nonce=\).append(
oauth_nonce).append(
\,
   oauth_signature_method=\).append(
oauth_signature_method).append(
\, oauth_timestamp=\).append(
oauth_timestamp).append(
\,
 oauth_consumer_key=\).append(my
 consumer key)
 
 .append(\,oauth_token=\).append(
 
   token.getToken()).append(
\,
 oauth_signature=\).append(
signature).append(
\,
 oauth_version=\).append(oauth_version).append(
\).toString();
 
  one more question here
  when i am making the http request do i need to write the post
 body to
  the outputStream..
 
  and tell me what should i change in the above code...
 
  On Aug 18, 3:28 pm, Tom van der Woerdt i...@tvdw.eu wrote:
  Hi,
 
  That's a lot of code, but I prefer to know what it is doing over
 the
  actual code. So: can you post a request which you make to
 Twitter,
   and
  can you give the Base String which you use for generating the
   signature?
 
  Tom
 
  On 8/18/10 8:08 AM, LINUXGEEK wrote:
 
  private void StatusUpdate() throws CryptoTokenException,
 CryptoUnsupportedOperationException,
 IOException
   {
 
 String oauth_signature_method = HMAC-SHA1;
 String oauth_timestamp =
 String.valueOf(timestamp());
 String oauth_nonce = createNonce(oauth_timestamp);
 String oauth_version = 1.0;
 
 String postBody = status=
 + URLUTF8Encoder.encode(Finally i
 got
 success);
 
 String baseString = POST
 + URLUTF8Encoder
 .encode(
https://api.twitter.com/1/statuses/update.json;)
 + oauth_consumer_key%3D + my
   consumer
 key
 + %26oauth_nonce%3D + oauth_nonce
 + %26oauth_signature_method%3D

Re: [twitter-dev] Re: BlackBerry, XAuth and twitterapime

2010-08-09 Thread Ernandes Jr.
Hi,

This issue of TwAPIme on BB will be investigated as soon as possible.
Unfortunately, I do not have a BB device to test on a real environment.
Nevertheless, I will perform some tests on BB emulator.

I will keep you guys posted on any news on this matter.

Regards,
Ernandes

On Mon, Aug 9, 2010 at 3:06 AM, Bess bess...@gmail.com wrote:

 It seems like everyone like having trouble moving from basic to Oauth
 in mobile.

 TwitterAPIME works on BB via J2ME Twitter lib from Kenai. This library
 also supports Android. But this lib author develop this lib in his
 spare time so he didn't include every Twitter API. It can only do a
 few things.

 http://kenai.com/projects/twitterapime/pages/Home

 Any BB developer can tell me which JS lib BB would support on their
 Javascript API?

 On Aug 7, 4:33 am, kmba...@gmail.com wrote:
  Yes BlackBerry is Java ME, but it also has it's own API quirks and I was
 unable to get one of the existing libraries to work for me.
 
  I am doing the communication on my own.  May app have been working fine
 using BASIC.  I have just had a hard time moving it over to OAuth based.
 
  Sent via BlackBerry by ATT
 
  -Original Message-
  From: Bess bess...@gmail.com
 
  Sender: twitter-development-talk@googlegroups.com
  Date: Fri, 6 Aug 2010 22:06:12
  To: Twitter Development Talktwitter-development-talk@googlegroups.com
  Reply-To: twitter-development-talk@googlegroups.com
  Subject: [twitter-dev] Re: BlackBerry, XAuth and twitterapime
 
  If Twitter4J do not run on BB, which OAuth or xAuth lib do you use in
  BB?
 
  There is no other Java option in BB? You have to use J2ME in BB?
 
  What about webos BB has announced?
 
  Can I port my Java code from Android straight to BB? How much code re
  factoring or rewrite I have to do to move from Android to BB?
 
  On Aug 6, 10:23 am, Ernandes Jr. ernan...@gmail.com wrote:
   BB is powered by Java ME and some specific RIM Java APIs.
 
   On Fri, Aug 6, 2010 at 8:26 AM, David Francisco Tavárez 
 
   davidftava...@gmail.com wrote:
Twitter4J do not run on BB.
 
2010/8/6, Bess bess...@gmail.com:
 I am able to use Twitter4J Oauth in Android SDK 2.1. Can you do the
 same on BB?
 
 Does BB has the same JAVA environment similar to Android? I assume
 J2SE is very different than Android Java?
 
 On Aug 5, 4:52 pm, BBTweet Media Player bbtweetme...@gmail.com
 wrote:
 Ernandes,
 
 Thanks for the response.  I am sure there is something small I am
 doing wrong.  I did grab twitter4j and made a simple j2se app to
 make
 sure I could use my consumer key and secret and XAuth worked.  So
 I
 know my account is good at least.  I am now trying to hand code
 the
 example onhttp://dev.twitter.com/pages/xauthtomakesure I can
 properly encode a header. Everything worked fine using BASIC.  I
 do
 not see why they had to make it so hard.
 
 I am using the BB 5 and 6 OSs.
 
 On Aug 5, 2:39 pm, Ernandes Jr. ernan...@gmail.com wrote:
 
  I do not have a BB to test the API. However, I have received
 some
  e-mails
  from people facing same problem as you. Some of them were making
 some
  small
  mistakes and then it worked, however, others did not have much
success.
  At
  this moment, I am trying to find the route cause of many
 problems with
  BB. I
  hope to find it soon and then release a fix for release 1.4.
 
  By the way. which is your BB's OS version?
 
  Regards,
  Ernandes
 
  On Thu, Aug 5, 2010 at 4:56 AM, Bess bess...@gmail.com wrote:
   Which OAuth library did you use on your BB? Did you use the
 Java
   library?
 
   On Aug 4, 7:42 am, Ernandes Jr. ernan...@gmail.com wrote:
Hi,
 
I suggest you to get in touch to Twitter API ME support
 before
replacing
codes. Send an e-mail to supp...@twapime.com or check
 project's
forum
   page:http://kenai.com/projects/twitterapime/forums/forum
 
Maybe your issues are already discussed there.
 
Regards,
Ernandes
 
On Tue, Aug 3, 2010 at 9:21 PM, BBTweet Media Player 
   bbtweetme...@gmail.com
 
 wrote:
 I am having a very difficult time trying to get XAuth
 working in
 my
 BlackBerry app.  I have downloaded twitterapime the
 hmacsha
 ecodingand
 Base64Ecoder did not seem to work for me so I replaced the
 getSignature method in XAuthSigner with...
 
 /**
 * p
 * Generate a signature from the given base string.
 * /p
 * @param baseString Base string.
 * @param consumerSecret Consumer secret.
 * @param tokenSecret Token secret.
 * @return Signature.
 */
private static String getSignature(String
 baseString,
 String
 consumerSecret,
String tokenSecret

Re: [twitter-dev] BlackBerry, XAuth and twitterapime

2010-08-06 Thread Ernandes Jr.
BB is powered by Java ME and some specific RIM Java APIs.

On Fri, Aug 6, 2010 at 8:26 AM, David Francisco Tavárez 
davidftava...@gmail.com wrote:

 Twitter4J do not run on BB.

 2010/8/6, Bess bess...@gmail.com:
  I am able to use Twitter4J Oauth in Android SDK 2.1. Can you do the
  same on BB?
 
  Does BB has the same JAVA environment similar to Android? I assume
  J2SE is very different than Android Java?
 
  On Aug 5, 4:52 pm, BBTweet Media Player bbtweetme...@gmail.com
  wrote:
  Ernandes,
 
  Thanks for the response.  I am sure there is something small I am
  doing wrong.  I did grab twitter4j and made a simple j2se app to make
  sure I could use my consumer key and secret and XAuth worked.  So I
  know my account is good at least.  I am now trying to hand code the
  example onhttp://dev.twitter.com/pages/xauthto make sure I can
  properly encode a header. Everything worked fine using BASIC.  I do
  not see why they had to make it so hard.
 
  I am using the BB 5 and 6 OSs.
 
  On Aug 5, 2:39 pm, Ernandes Jr. ernan...@gmail.com wrote:
 
   I do not have a BB to test the API. However, I have received some
   e-mails
   from people facing same problem as you. Some of them were making some
   small
   mistakes and then it worked, however, others did not have much
 success.
   At
   this moment, I am trying to find the route cause of many problems with
   BB. I
   hope to find it soon and then release a fix for release 1.4.
 
   By the way. which is your BB's OS version?
 
   Regards,
   Ernandes
 
   On Thu, Aug 5, 2010 at 4:56 AM, Bess bess...@gmail.com wrote:
Which OAuth library did you use on your BB? Did you use the Java
library?
 
On Aug 4, 7:42 am, Ernandes Jr. ernan...@gmail.com wrote:
 Hi,
 
 I suggest you to get in touch to Twitter API ME support before
 replacing
 codes. Send an e-mail to supp...@twapime.com or check project's
 forum
page:http://kenai.com/projects/twitterapime/forums/forum
 
 Maybe your issues are already discussed there.
 
 Regards,
 Ernandes
 
 On Tue, Aug 3, 2010 at 9:21 PM, BBTweet Media Player 
bbtweetme...@gmail.com
 
  wrote:
  I am having a very difficult time trying to get XAuth working in
  my
  BlackBerry app.  I have downloaded twitterapime the hmacsha
  ecodingand
  Base64Ecoder did not seem to work for me so I replaced the
  getSignature method in XAuthSigner with...
 
  /**
  * p
  * Generate a signature from the given base string.
  * /p
  * @param baseString Base string.
  * @param consumerSecret Consumer secret.
  * @param tokenSecret Token secret.
  * @return Signature.
  */
 private static String getSignature(String baseString,
  String
  consumerSecret,
 String tokenSecret) {
  //  byte[] b = HMAC.getHmac(baseString,
 consumerSecret
  +
'' +
  tokenSecret);
  //  //
  //  return Base64Encoder.encode(b);
 String ret = null;
 try {
 ret = hmacsha1(baseString, consumerSecret
 +
  ''
+
  tokenSecret);
 } catch (Exception e) {
 new RuntimeException(e.getMessage());
 }
 return ret;
 }
 
 private static String hmacsha1(String key, String
 message)
 throws CryptoTokenException,
CryptoUnsupportedOperationException,
  IOException {
   HMACKey k = new HMACKey(key.getBytes());
   HMAC hmac = new HMAC(k, new SHA1Digest());
   hmac.update(message.getBytes());
   byte[] mac = hmac.getMAC();
   return Base64OutputStream.encodeAsString(mac, 0,
  mac.length, false, false);
 }
 
  and any  base 64 encodings with
  Base64OutputStream.encodeAsString(mac,
  0, mac.length, false, false);
 
  I get 401 errors when attempting to get my request token.
 
  I can replace my secrets, ids and pass with dummys and place a
  step by
  steps of what is going on if that would help?
 
 --
 Ernandes Jr.
 -
 ALL programs are poems. However,
 NOT all programmers are poets.
 
   --
   Ernandes Jr.
   -
   ALL programs are poems. However,
   NOT all programmers are poets.

 --
 Enviado desde mi dispositivo móvil

 David F. Tavárez
 
 Software Developer
 http://www.davidtavarez.com/
 http://twitter.com/davidtavarez
 http://www.facebook.com/davidtavarez




-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.


Re: [twitter-dev] Re: BlackBerry, XAuth and twitterapime

2010-08-05 Thread Ernandes Jr.
I do not have a BB to test the API. However, I have received some e-mails
from people facing same problem as you. Some of them were making some small
mistakes and then it worked, however, others did not have much success. At
this moment, I am trying to find the route cause of many problems with BB. I
hope to find it soon and then release a fix for release 1.4.

By the way. which is your BB's OS version?

Regards,
Ernandes

On Thu, Aug 5, 2010 at 4:56 AM, Bess bess...@gmail.com wrote:

 Which OAuth library did you use on your BB? Did you use the Java
 library?

 On Aug 4, 7:42 am, Ernandes Jr. ernan...@gmail.com wrote:
  Hi,
 
  I suggest you to get in touch to Twitter API ME support before replacing
  codes. Send an e-mail to supp...@twapime.com or check project's forum
 page:http://kenai.com/projects/twitterapime/forums/forum
 
  Maybe your issues are already discussed there.
 
  Regards,
  Ernandes
 
  On Tue, Aug 3, 2010 at 9:21 PM, BBTweet Media Player 
 bbtweetme...@gmail.com
 
 
 
   wrote:
   I am having a very difficult time trying to get XAuth working in my
   BlackBerry app.  I have downloaded twitterapime the hmacsha ecodingand
   Base64Ecoder did not seem to work for me so I replaced the
   getSignature method in XAuthSigner with...
 
   /**
   * p
   * Generate a signature from the given base string.
   * /p
   * @param baseString Base string.
   * @param consumerSecret Consumer secret.
   * @param tokenSecret Token secret.
   * @return Signature.
   */
  private static String getSignature(String baseString, String
   consumerSecret,
  String tokenSecret) {
   //  byte[] b = HMAC.getHmac(baseString, consumerSecret +
 '' +
   tokenSecret);
   //  //
   //  return Base64Encoder.encode(b);
  String ret = null;
  try {
  ret = hmacsha1(baseString, consumerSecret + ''
 +
   tokenSecret);
  } catch (Exception e) {
  new RuntimeException(e.getMessage());
  }
  return ret;
  }
 
  private static String hmacsha1(String key, String message)
  throws CryptoTokenException,
 CryptoUnsupportedOperationException,
   IOException {
HMACKey k = new HMACKey(key.getBytes());
HMAC hmac = new HMAC(k, new SHA1Digest());
hmac.update(message.getBytes());
byte[] mac = hmac.getMAC();
return Base64OutputStream.encodeAsString(mac, 0,
   mac.length, false, false);
  }
 
   and any  base 64 encodings with Base64OutputStream.encodeAsString(mac,
   0, mac.length, false, false);
 
   I get 401 errors when attempting to get my request token.
 
   I can replace my secrets, ids and pass with dummys and place a step by
   steps of what is going on if that would help?
 
  --
  Ernandes Jr.
  -
  ALL programs are poems. However,
  NOT all programmers are poets.




-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.


Re: [twitter-dev] BlackBerry, XAuth and twitterapime

2010-08-04 Thread Ernandes Jr.
Hi,

I suggest you to get in touch to Twitter API ME support before replacing
codes. Send an e-mail to supp...@twapime.com or check project's forum page:
http://kenai.com/projects/twitterapime/forums/forum

Maybe your issues are already discussed there.

Regards,
Ernandes

On Tue, Aug 3, 2010 at 9:21 PM, BBTweet Media Player bbtweetme...@gmail.com
 wrote:

 I am having a very difficult time trying to get XAuth working in my
 BlackBerry app.  I have downloaded twitterapime the hmacsha ecodingand
 Base64Ecoder did not seem to work for me so I replaced the
 getSignature method in XAuthSigner with...

 /**
 * p
 * Generate a signature from the given base string.
 * /p
 * @param baseString Base string.
 * @param consumerSecret Consumer secret.
 * @param tokenSecret Token secret.
 * @return Signature.
 */
private static String getSignature(String baseString, String
 consumerSecret,
String tokenSecret) {
 //  byte[] b = HMAC.getHmac(baseString, consumerSecret + '' +
 tokenSecret);
 //  //
 //  return Base64Encoder.encode(b);
String ret = null;
try {
ret = hmacsha1(baseString, consumerSecret + '' +
 tokenSecret);
} catch (Exception e) {
new RuntimeException(e.getMessage());
}
return ret;
}


private static String hmacsha1(String key, String message)
throws CryptoTokenException, CryptoUnsupportedOperationException,
 IOException {
  HMACKey k = new HMACKey(key.getBytes());
  HMAC hmac = new HMAC(k, new SHA1Digest());
  hmac.update(message.getBytes());
  byte[] mac = hmac.getMAC();
  return Base64OutputStream.encodeAsString(mac, 0,
 mac.length, false, false);
}

 and any  base 64 encodings with Base64OutputStream.encodeAsString(mac,
 0, mac.length, false, false);

 I get 401 errors when attempting to get my request token.

 I can replace my secrets, ids and pass with dummys and place a step by
 steps of what is going on if that would help?




-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.


Re: [twitter-dev] Need inputs to implement Twitter app using xAuth

2010-07-30 Thread Ernandes Jr.
It is not that difficult. However, that would be a good time saving if you
reused some of those libraries.

On Thu, Jul 29, 2010 at 3:20 AM, Sambath Chandran sambat...@gmail.comwrote:

 But I just want to know one thing.

 How much difficult to implement making xAuth call in Java without any
 libraries?

 Thanks,
 Sambath


 On Thu, Jul 29, 2010 at 11:29 AM, Sambath Chandran sambat...@gmail.comwrote:

 Thanks a lot Ernandes and Abraham.

 Regards,
 Sambath


 On Wed, Jul 28, 2010 at 9:33 PM, Abraham Williams 4bra...@gmail.comwrote:

 Twitter4j supports xAuth: http://goo.gl/ZmM2

 Abraham
 -
 Abraham Williams | Hacker Advocate | http://abrah.am
 @abraham | http://projects.abrah.am | http://blog.abrah.am
 This email is: [ ] shareable [x] ask first [ ] private.



 On Wed, Jul 28, 2010 at 02:29, Sambath Chandran sambat...@gmail.comwrote:

 All,
 I am implementing an application to receive and the latest tweet from
 the twitter. After refering to twitter website, I concluded to use xAuth
 authentication for my development.

 Can anybody let me know is there any ready to use java library for
 xAuth?

 Basially I want to know to how to make xAuth work with Java.

 Thanks,
 Sambath







-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.


Re: [twitter-dev] Need inputs to implement Twitter app using xAuth

2010-07-28 Thread Ernandes Jr.
Hi,

Please, refer to http://dev.twitter.com/pages/oauth_libraries and you find
some libraries developed by community. Otherwise, you can use Android
version of TwAPIme and reuse the classes related to xAuth.

Regards,
Ernandes

On Wed, Jul 28, 2010 at 6:29 AM, Sambath Chandran sambat...@gmail.comwrote:

 All,
 I am implementing an application to receive and the latest tweet from the
 twitter. After refering to twitter website, I concluded to use xAuth
 authentication for my development.

 Can anybody let me know is there any ready to use java library for xAuth?

 Basially I want to know to how to make xAuth work with Java.

 Thanks,
 Sambath




-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.


[twitter-dev] TwAPIme 1.3 now supporting xAuth

2010-06-14 Thread Ernandes Jr.
Hi,

I am pleased to announce that I have just uploaded the new version of *
TwAPIme* with *xAuth* support. TwAPIme is mobile Java API for Java ME and
Android developers that want to create applications that access Twitter
API's services.

Check out how easy is it to work with TwAPIme and xAuth:

...

Credential c = *new* Credential(john, foobar, usdhjhe767djsahda0kjdska,
dsadahd8978e3qejsnddjdhf8);

UserAccountManager m = UserAccountManager.getInstance(c);


*if* (m.verifyCredential()) {

TweetER ter = TweetER.getInstance(m);

ter.post(new Tweet(My tweet from TwAPIme 1.3. #likethis));

} *else* {

System.out.println(Login failed!);

}

...

For more details on TwAPIme 1.3, access www.twitterapime.com

Regards,

-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.


Re: [twitter-dev] Re: Bug on dev.twitter.com login page

2010-06-01 Thread Ernandes Jr.
I am facing the same issue as Ken.

On Tue, Jun 1, 2010 at 10:56 AM, Taylor Singletary 
taylorsinglet...@twitter.com wrote:

 Thanks, we'll look into those issues when we can. Not sure why the specific
 problem with Firefox Ubuntu, but we'll see what we can do to test that in a
 virtual machine. You can always view the terms of service at
 http://dev.twitter.com/pages/api_terms

 Taylor Singletary
 Developer Advocate, Twitter
 http://twitter.com/episod


 On Tue, Jun 1, 2010 at 6:43 AM, Ken k...@cimas.ch wrote:

 Hey, here's a couple of minor probs inside the dev site:
 - when registering a new app (on Firefox 3.6.3/Ubuntu) - the terms of
 service thingy shows no text, just grey background.
 - on the application details page, app description section, the
 Created by link goes to 
 http://dev.twitter.com/[screen_name]http://dev.twitter.com/%5Bscreen_name%5D,
 which
 does not compute...

 On Jun 1, 2:55 am, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
  Thanks. We'll have this fixed soon. For now, just remove the bonus
 subdomain.
 
  On Monday, May 31, 2010, Ernandes Jr. ernan...@gmail.com wrote:
   Hi,
   As soon as I enter my credentials on Twitter's dev login page and
 press Sign In, the website is redirecting me to
 http://dev.dev.twitter.com/, instead of http://dev.twitter.com/.
 
   Regards,
   --
   Ernandes Jr.
   -
   ALL programs are poems. However,
   NOT all programmers are poets.
 
  --
  Taylor Singletary
  Developer Advocate, Twitterhttp://twitter.com/episod





-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.


[twitter-dev] Bug on dev.twitter.com login page

2010-05-31 Thread Ernandes Jr.
Hi,

As soon as I enter my credentials on Twitter's dev login page and press
Sign In, the website is redirecting me to http://*dev.*dev.twitter.com/,
instead of http://dev.twitter.com/.

Regards,

-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.


Re: [twitter-dev] How to set 'source' when update status

2010-05-02 Thread Ernandes Jr.
Hi!

Please, read this: http://dev.twitter.com/pages/api_faq#attribution

Regards,
Ernandes

On Sun, May 2, 2010 at 11:49 AM, vibbow vib...@gmail.com wrote:

 I remember we can set the SOURCE when use API to update status, but I
 can not find it on API document now. So can anybody help me to set the
 SOURCE via API?

 I'm a chinese, so please forgive my terrible English, thank you.




-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.


[twitter-dev] Twitter API ME 1.2 released!!!

2010-04-28 Thread Ernandes Jr.
Hi,

I am pleased to announce that *Twitter API ME* version 1.2 is finally
released. This new version comes with some great new stuffs, e.g., direct
messages, timelines, friendship management, retweet, etc.

For those who do not know Twitter API ME, this a Twitter Java API designed
to run on any Java Platform. Currently this API provides support for Java ME
and Android. The Android version can be used for Java SE development as
well.

To know more about Twitter API ME, visit us at www.twitterapime.com

Now it is time to work on OAuth support. We have a tight deadline to meet.

I hope you enjoy it!

Regards,

-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.


[twitter-dev] OAuth credentials for test

2010-04-23 Thread Ernandes Jr.
Hi,

I'am developing OAuth support for my Java API, however, I am needing a
consumer key and secret in order to test it. Should I register my API to get
them or there is a key/secret available for test purpose that I could use?

Regards,

-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.


-- 
Subscription settings: 
http://groups.google.com/group/twitter-development-talk/subscribe?hl=en


Re: [twitter-dev] Re: Introduce yourself!

2010-04-15 Thread Ernandes Jr.
Hi!

I'm Ernandes, developer from Brazil. My twitter's nickname is @ernandesmjr.

Currently I am developing a Java mobile Twitter API, to run on Java ME and
Android-enabled devices.

More details, check at www.twitterapime.com

If you like it, join us!

Regards,
Ernandes

On Wed, Apr 14, 2010 at 7:58 PM, seocoder mam...@gmail.com wrote:

 Hi. I'm Vidadi, coder from Russia. My NickName - SeoCoder.
 My first Twitter tools:

 #twittertime service - Find out how many days you are in a twitter
 -  http://twitter.seocoder.org/
 #UnFollower - standalone windows application writen in Delphi.
 UnFollow Who Not Follow U at

 http://www.seocoder.org/2010/03/25/twitter-pervaya-utilita-unfollower-udalyaem-tex-kto-nas-ne-followit/




-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.


-- 
To unsubscribe, reply using remove me as the subject.


Re: [twitter-dev] Re: dev.twitter.com

2010-04-14 Thread Ernandes Jr.
What a cool stuff!!! Congrats, guys!!!

On Wed, Apr 14, 2010 at 7:21 PM, Robby Grossman ro...@freerobby.com wrote:

 Why in peace? :P

 +1 on the positive sentiments. Looks great!

 --Robby

 On Apr 14, 3:16 pm, Josh Roesslein jroessl...@gmail.com wrote:
  Very nice! RIP apiwiki.
 
  Josh


 --
 To unsubscribe, reply using remove me as the subject.




-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.


[twitter-dev] Issue on Follow feature

2010-04-12 Thread Ernandes Jr.
Hi all,

I have been struggling to get Follow feature working on a Java API that I am
working on. For every request I am getting the error bellow:

hash
  request/1/notifications/follow/ernandesmjr.xml/request
  errorThere was a problem following the specified user./error
/hash

According to the feature's spec, I just need a simple post request to a
given user, e.g.,
http://api.twitter.com/1/notifications/follow/ernandesmjr.xml. To perform a
quick and straighforward test, I created this HTML file:

html
  head
titleFollow Usertitle
  /head
body
  form action=
http://api.twitter.com/1/notifications/follow/ernandesmjr.xml;
method=post
input type=submit/
  /form
/body
/html

Either way, I get the same error as I get with Java.

Any idea? Am I missing something?

Thanks in advance.

Regards,

-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.


Re: [twitter-dev] Re: Issue on Follow feature

2010-04-12 Thread Ernandes Jr.
In fact, I am developing a mobile Java API, not an app, which I am
attempting to get this feature working. Anyway, I will take a look at
twitter4j source code to see which magic it performs. :)

On Mon, Apr 12, 2010 at 2:19 PM, nischalshetty nischalshett...@gmail.comwrote:

 You can use http://twitter4j.org for your app. It's an open source API
 for Java. Has an awesome community around it as well and the developer
 Yusuke is smart and helpful!


 On Apr 12, 9:29 pm, Ernandes Jr. ernan...@gmail.com wrote:
  Hi all,
 
  I have been struggling to get Follow feature working on a Java API that I
 am
  working on. For every request I am getting the error bellow:
 
  hash
request/1/notifications/follow/ernandesmjr.xml/request
errorThere was a problem following the specified user./error
  /hash
 
  According to the feature's spec, I just need a simple post request to a
  given user, e.g.,
 http://api.twitter.com/1/notifications/follow/ernandesmjr.xml. To perform
 a
  quick and straighforward test, I created this HTML file:
 
  html
head
  titleFollow Usertitle
/head
  body
form action=
 http://api.twitter.com/1/notifications/follow/ernandesmjr.xml;
  method=post
  input type=submit/
/form
  /body
  /html
 
  Either way, I get the same error as I get with Java.
 
  Any idea? Am I missing something?
 
  Thanks in advance.
 
  Regards,
 
  --
  Ernandes Jr.
  -
  ALL programs are poems. However,
  NOT all programmers are poets.


 --
 To unsubscribe, reply using remove me as the subject.




-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.