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 AT&T
> >
> > -----Original Message-----
> > From: Bess <bess...@gmail.com>
> >
> > Sender: twitter-development-talk@googlegroups.com
> > Date: Fri, 6 Aug 2010 22:06:12
> > To: Twitter Development Talk<twitter-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) {
> > > > >> > > > > //              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."
>



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

Reply via email to