[twitter-dev] Re: Parking

2010-06-01 Thread Bess
The best & closest Parking near Twitter headquarter is ProPark. It's
on the same side of street on the next block within 2-3 min walk.

795 Folsom Street ProPark
Sat Full Day $10 Cash Close at 11pm
Sun Full Day $8 Cash Close at 6pm

Many parking options along 3rd street between Folsom & Harrison. On
weekend many are charging $10 as low as $8 full day.

If you go with popular Parking option near Moscone it would cost you
$32 for 12-24 hrs.

http://www.fifthandmission.com/prices.htm

On May 29, 7:08 pm, Shannon Clark  wrote:
> Watch out for higher rates at many garages if there is a game at AT&T  
> park.
>
> There are a few lots on Harrison between 3rd and 4th which are  
> inexpensive typically less than $10.
>
> Shannon
>
> Sent from my iPhone
>
> On May 29, 2010, at 11:19 AM, Mark McBride  wrote:
>
> > There's parking at 795 Folsom that is $14/day during the week (not
> > sure on weekend rates), and a garage about 1/4 block further north on
> > Folsom that is $10.  Although last time they tried to tell me it was
> > $25 and I had to haggle them back down to $10.
>
> >   ---Mark
>
> >http://twitter.com/mccv
>
> > On Sat, May 29, 2010 at 11:15 AM, Zac Bowling   
> > wrote:
> >> Weird to ask this here, but does anyone know the parking situation at
> >> Twitter HQ for the hackfest?
>
> >> I usually just take the ferry but it does come on saturdays and  
> >> would rather
> >> avoid BART :-)
>
> >> Zac
>
> >> Sent from my iPad


[twitter-dev] Re: Parking

2010-06-01 Thread Bess
There is one $5 full day on Harrison but it was closed on weekend.

On May 29, 7:08 pm, Shannon Clark  wrote:
> Watch out for higher rates at many garages if there is a game at AT&T  
> park.
>
> There are a few lots on Harrison between 3rd and 4th which are  
> inexpensive typically less than $10.
>
> Shannon
>
> Sent from my iPhone
>
> On May 29, 2010, at 11:19 AM, Mark McBride  wrote:
>
> > There's parking at 795 Folsom that is $14/day during the week (not
> > sure on weekend rates), and a garage about 1/4 block further north on
> > Folsom that is $10.  Although last time they tried to tell me it was
> > $25 and I had to haggle them back down to $10.
>
> >   ---Mark
>
> >http://twitter.com/mccv
>
> > On Sat, May 29, 2010 at 11:15 AM, Zac Bowling   
> > wrote:
> >> Weird to ask this here, but does anyone know the parking situation at
> >> Twitter HQ for the hackfest?
>
> >> I usually just take the ferry but it does come on saturdays and  
> >> would rather
> >> avoid BART :-)
>
> >> Zac
>
> >> Sent from my iPad


[twitter-dev] Re: Thoughts on annotations

2010-06-01 Thread Bess
About Parking. Closest one near Twitter is Museum Parc Garage. It
closes at 11pm on Sat and 6pm on Sun.

There are other overnight parking but they charge $25-$32 for 12-24
hrs. Many parking options on 3rd Street between Harrison & Folsom Full
Day $8-10 on weekend. Some of them are outdoor so I don't think there
is issue on building being closed at night.

I am very surprise the parking situation near Twitter is better than
expected. Next time I would map other parking options so we can share
the info better on Tweet feed.

Museum Parc Garage
300 3rd St
(between Folsom St & Saint Francis Pl)
San Francisco, CA 94107
Neighborhood: SOMA
(415) 284-9553
www.museumparcgarage.com

Overnight Hotel Parking: $25.00 per night with In & Out Priveleges
Hours:
Mon-Fri 6 a.m. - 11 p.m.
Sat 8 a.m. - 11 p.m.

On May 31, 12:56 pm, "zbowl...@gmail.com"  wrote:
> I was still waking up and recovering from yesterday when I wrote this
> so forgive the typos, grammar, and mixing up attributes as
> annotations.
>
> I also wanted to mention that I'm glad that twitter didn't confuse
> annotations by using the term namespace or providing some kind of
> mechanism that goes that direction. I originally was wondering about
> conflicting but this method is better. Namespace gives developers a
> sense of ownership with the data stored in that annotation type. You
> can easily still easily namespace your types if you want (possibly in
> the reverse DNS format used in Java) but you can't prevent other
> developers from using them and that needs to be conveyed. If you need
> to strongly store annotation data, you can use signatures, hashes,
> version markers, or whatever in the annotation that you want to
> provide that, but it's up to the developer to what they want to fit
> their needs.
>
> Also wanted to playfully rant that parking overnight on the weekend
> near Twitter HQ sucks, especially when there is a baseball game. The
> closest garages all close at night on the weekends, so I ended up
> moving my car 3 times. Next time I'm taking BART and riding my
> bike. :-)
>
> Also
>
> On May 31, 11:39 am, Zac Bowling  wrote:
>
> > This weekend's hackfest was at Twitter HQ was fun. About a couple dozen of 
> > us stayed awake for about 30 hours and still had enough to energy to 
> > present. Some pretty amazing things created and we helped identified a 
> > bunch of bugs.
>
> > Now that I've had a chance to go home and catch up on some sleep, here is a 
> > brain dump of my thoughts.
>
> > * One of the documented recommended types is place/location, but this data 
> > is similar to what we store in the geo fields. I'm not sure what issues we 
> > may run into privacy using it rather then storing the Geo fields (users can 
> > enable/disable geo and remove geo data from all previous status updates).
>
> > * We will always have twitter clients that will not understand or look even 
> > look at our attributes. This means that we can't can't have annotations 
> > that change the meaning of a tweet or make the meaning of the tweet 
> > useless. This is basically graceful degradation, and not progressive 
> > enhancement. We joked that want to see tweets that say: "This tweet can 
> > only be read in clients that support X annotations. Please upgrade your 
> > twitter client or try X client.".
>
> > * You have to treat annotations as potentially hostile attack vectors.  As 
> > was proved with some awesome cornfied and flashing unicorn injections this 
> > weekend, any raw data can be store in annotations. Just because you stored 
> > it there, anyone can do store any raw data and anyone can post tweets that 
> > copy your annotation format. Twitter may sanitize javascript injections, 
> > but it doesn't stop other types of injections from occurring if you don't 
> > check. It's extremely important to validate, html encode, or whatever you 
> > need to with the data stored in the annotations.
>
> > As I did with my twitter remote shell execution example, I added my own 
> > signature and noance of my own into the twitter annotation to validate the 
> > sender had my secret. It may be one solution.
>
> > * Attributes work at the time of creation because status updates are 
> > immutable. This may be obvious to most, but its a limitation that hits you 
> > a few times as you develop. Because of that we need to make sure that we 
> > can get most of the clients, including Twitter.com, support the most 
> > popular annotation formats. We can't fix update status updates after the 
> > fact so we have to get it right.  (Adding annotations to new style retweets 
> > is in theory possible)
>
> > * Can't remind people enough to switch from twitter.com to api.twitter.com. 
> >  A bunch of little differences between the two that give you headaches. Our 
> > "board of wasted time" at the hackfest summed it up pretty well.
>
> > * A good number of us spent a good deal of time on just getting past OAuth 
> > this weekend. We had a lot of people that under

[twitter-dev] Re: How long does it take to get approved with xAuth?

2010-06-01 Thread Bess
Exactly how long does it take to apply and get approved on xAuth?

If I apply xAuth today, am I standing on a queue that is 1,000 long?

I am preparing a Twitter Developer Book. If it takes a few weeks and
few months, I would have to change plan not to count on xAuth. Would
anyone give any feedback?

I also like to confirm that I have tested Objective-C OAuth library on
iPhone. OAuth does take you outside the app to Safari for Twitter
authentication page. I test the work flow at Twitter Annotation
Hackfest this weekend. The Twitter authentication page is not
optimized for iPhone. It is difficult for users to find the section
where user can enter username and password. IMHO I would like to see
at least that page is styled and sized properly for mobile browser
webkit so it looks like part of native app with less word in larger
font size and bigger buttons.

The only way you can customize and style Twitter username/pwd page
would be using xAuth.

Thanks

On May 31, 9:35 am, Jann Gobble  wrote:
> On May 31, 2010, at 9:25 AM, Bernd Stramm wrote:
>
> > In any case Jann, you have convinced me of something I strongly
> > suspected - I really should get xauth for my application as well.
>
> If I have convinced one person today, I have done my job.  I am used to that 
> -- what with being a Mac user for decades.  
>
> > Be safe,
>
> You too!
>
> Jann


[twitter-dev] Re: Suggested method for getting GEO results

2010-06-02 Thread Bess
I am building a RSS native mobile app that pull Twitter feeds using
Search API. I am experiencing similar behavior. Sometimes it has fewer
results.

Could you advise me? If I would have to use Twitter to report real-
time events such as Earthquake alerts? for Medical Emergency alerts?
Should I use Search API for reliable real time results? Or consider
Stream API?

Other questions relating to using Geo and Places.

- What is the best way to filter results to just cover tweets from US?
Do I use a central geo point in US like mid west and expand the
radius?
- Would Near: & Within: filter deliver the same results as Geo filter?
example earthquake near:US within:500mi? Would near: filter work on
country level?
- How could I find acceptable country name that use in near: filter?
example Africa, Haiti?
- What is the radius limit on Geo & Near? in terms of mi or km?
- Do you recommend any utility or tools that I can export public
tweets into data store? for reporting purposes

Note: I try to expand geo radius to 800 miles but couldn't get much
results.

Earthquake using Geo Filter
earthquake - Twitter Search
http://search.twitter.com/search.rss?lang=en&geocode=37.09024%2C-95.712891%2C500.0mi&q=earthquake

Earthquake using Geo, Near: & Within: Filters
earthquake near:US within:500mi - Twitter Search
http://search.twitter.com/search.rss?lang=en&geocode=37.09024%2C-95.712891%2C500.0mi&q=earthquake+near%3AUS+within%3A500mi

On Jun 2, 3:03 pm, Matt Harris  wrote:
> As Taylor said, the Streaming API sounds like it would be a good option for
> you to consider but for a user driven search like yours you would probably
> need to build a caching layer.
>
> Whilst the near operator works well on the search.twitter.com website it
> isn't supported through the search API. Unfortunately this means you won't
> be able to use that operator in the way you hope to.
>
> I am interested in the blank results you get though and wondered if you
> would be happy to answer a couple of questions for me:
> * Do you ever see an error or warning in the response?
> * Are you using since_id?
> * Can you give an example of just one of your queries?
>
> Thanks
> Matt
>
>
>
> On Wed, Jun 2, 2010 at 2:59 PM, ELB  wrote:
> > thanks Taylor for the reply.
>
> > I am referring to user-initiated queries.
>
> > We have users that type in a keyword to a search box, and we then
> > return results from the Search API with the corresponding Geo
> > Coordinates included with the request
>
> > On Jun 2, 5:51 pm, Taylor Singletary 
> > wrote:
> > > Have you considered using the Streaming API for this purpose?
> >http://apiwiki.twitter.com/Streaming-API-Documentation#locations--we
> > > encourage those with heavy search needs to use it as an alternative.
> > Search
> > > is meant much more for servicing search results based off of
> > user-initiated
> > > queries, and is most tuned for that purpose.
>
> > > Taylor
>
> > > On Wed, Jun 2, 2010 at 2:37 PM, ELB  wrote:
> > > > Hello,
>
> > > > We are looking at getting city based search results for 14 major
> > > > cities.
>
> > > > The current method we use is to plug in a cities Geo Coordinates into
> > > > the search API and then include a 25KM radius around the city.  This
> > > > works well and allows us to get true results of people inside or
> > > > around a given city.
> > > > However, for maybe a 20 minute period once or twice per day, the
> > > > results are empty.  We go from 50-100+ results for a given keyword to
> > > > 0 - 5 results.  Then, 20 minutes later there will again be 50 - 100+
> > > > results including several results for the time period whereby the
> > > > results were blank.  So, its not a case of Twitter not having results,
> > > > it is a case of a 10 - 20 minute window whereby Twitter's results with
> > > > the GEO filter don't show up - or barely show up for a given time
> > > > period.
>
> > > > This has led us to consider using the Near API.  From what I
> > > > understand, the Near API will give us results near a given city based
> > > > off of GEO data as well as profile data.  I would assume this may be a
> > > > more stable option - but the option we use now is great except for
> > > > those rare instances whereby Twitter shows us little to no results for
> > > > a keyword they clearly have a lot of results for within our GEO
> > > > coordinates.
>
> > > > ELB
>
> --
>
> Matt Harris
> Developer Advocate, Twitterhttp://twitter.com/themattharris


[twitter-dev] lang= Support in Search API

2010-06-02 Thread Bess
I'd like to confirm the list of language support on Search API b/c I
couldn't find any documentation in this Google group and http://dev.twitter.com.

>From my online search developers say it supports only 3 languages:
English = en
Japanese = ja
Spanish = es

>From documentation, it refers to wikipedia on ISO 63901 code. However,
I try many lang parameters with many of them not working or returning
much results.

http://en.wikipedia.org/wiki/ISO_639-1

These are listed but not supported:

*   French is represented by fr
*   German is represented by de
*   Portuguese is represented by pt
*   Haiti is represented by ht or hat


lang: Optional: Restricts tweets to the given language, given by
an ISO 639-1 code.

http://search.twitter.com/search.atom?lang=en&q=devo
http://search.twitter.com/search.atom?q=東京大地震&locale=ja

What are the official lang supported? How can we get the latest list?


[twitter-dev] Re: Saerch API and Twitter "Live Search Results" disparity

2010-06-04 Thread Bess
This is related to cache. Search API results are from cache to improve
performance? Search API is not getting the same results as Stream API?

On Jun 4, 3:12 pm, Jonathan Reichhold 
wrote:
> This is actually an artifact of how retweets are displayed between
> search.twitter.com and twitter.com  The tweets are there, but the display is
> different.
>
> Jonathan
>
> On Fri, Jun 4, 2010 at 10:10 AM, Brian Maso wrote:
>
> > Last night I collected tweets through the search API for the hashtag
> > "#glossgreen", and got a sizeable number of tweets.
>
> > This morning I did the equivalent thing through the "search" box on my
> > Twitter homepage (the URL that appears in my browser is "http://
> > twitter.com/#search?q=%23glossgreen"), and got different results.
>
> > More specifically, I found that there were a few users who's tweets
> > appeared when doing the search through the "search" box in the browser
> > who do not appear at all through the search API results. For example,
> > the user "@gloss" had many tweets using the #glossgreen hashtag in the
> > time period around 6-8 pm PDT 6/2 -- none of these appear in the
> > twitter search results, but many appear in results through the twitter
> > "search" box on my personal twitter homepage.
>
> > I just re-performed both searches this morning to make sure this isn't
> > a temporary issue, but got the same disparity,
>
> > What expectation should I have about search API accuracy? Shold I
> > expect the search API results to eventually "repair", or is are the
> > @gloss tweets permanently missing from the search API's database?
>
> > I don't want to have to use multiple different APIs/screen-scrapes/
> > streams just to make sure I get accurate search results, but if that's
> > what I have to do then please let me know.
>
> > Brian Maso


[twitter-dev] Re: Saerch API and Twitter "Live Search Results" disparity

2010-06-05 Thread Bess
What is considered popular results (high-velocity)? high-velocity?

Any official documentation that define the differences between Search
& Stream API? in terms of result quality, data size, data rate, etc

If I would have to capture every single Tweet like someone asking for
medical emergency, should I use Stream API? You can't just ignore a
single emergency tweet b/c it is not popular.

On Jun 4, 9:27 pm, Jonathan Reichhold 
wrote:
> The stream API will have more results and will give all results versus the
> search API which will sample popular results (high-velocity), but for this
> case all results are available for both systems.
>
> Jonathan
>
> On Fri, Jun 4, 2010 at 9:12 PM, Bess  wrote:
> > This is related to cache. Search API results are from cache to improve
> > performance? Search API is not getting the same results as Stream API?
>
> > On Jun 4, 3:12 pm, Jonathan Reichhold 
> > wrote:
> > > This is actually an artifact of how retweets are displayed between
> > > search.twitter.com and twitter.com  The tweets are there, but the
> > display is
> > > different.
>
> > > Jonathan
>
> > > On Fri, Jun 4, 2010 at 10:10 AM, Brian Maso  > >wrote:
>
> > > > Last night I collected tweets through the search API for the hashtag
> > > > "#glossgreen", and got a sizeable number of tweets.
>
> > > > This morning I did the equivalent thing through the "search" box on my
> > > > Twitter homepage (the URL that appears in my browser is "http://
> > > > twitter.com/#search?q=%23glossgreen"), and got different results.
>
> > > > More specifically, I found that there were a few users who's tweets
> > > > appeared when doing the search through the "search" box in the browser
> > > > who do not appear at all through the search API results. For example,
> > > > the user "@gloss" had many tweets using the #glossgreen hashtag in the
> > > > time period around 6-8 pm PDT 6/2 -- none of these appear in the
> > > > twitter search results, but many appear in results through the twitter
> > > > "search" box on my personal twitter homepage.
>
> > > > I just re-performed both searches this morning to make sure this isn't
> > > > a temporary issue, but got the same disparity,
>
> > > > What expectation should I have about search API accuracy? Shold I
> > > > expect the search API results to eventually "repair", or is are the
> > > > @gloss tweets permanently missing from the search API's database?
>
> > > > I don't want to have to use multiple different APIs/screen-scrapes/
> > > > streams just to make sure I get accurate search results, but if that's
> > > > what I have to do then please let me know.
>
> > > > Brian Maso


[twitter-dev] Re: Which one are you using in your mobile app? xAuth or oAuth?

2010-07-09 Thread Bess
So far I only learn of one Twitter-based app is using OAuth - Twitter
official app (not sure it is out in app store yet).

I personally like to learn the best practice on OAuth and best OAuth
library used in iPhone, Android, Nokia and Blackberry.

On Jul 7, 10:19 am, Oscar Cortes  wrote:
>  Thanks for the feedback Rich.  I didn't know that the embedded web
> browser could be used for this. Can someone point me out to an iPhone
> or iPad app that uses oAuth with the embedded web browser? I would
> like to try it out.
>
> Oscar
>
> On Jul 6, 6:28 pm, Rich  wrote:
>
> > We are using oAuth on the iPhone. It works great and I don't see why
> > xAuth should be allowed on iPhone as the embedded web browser is more
> > than capable
>
> > On Jul 6, 8:55 pm, Oscar Cortes  wrote:
>
> > > We are about to integrate Twitter support in our iOS library and we
> > > are seeing that some devs prefer xAuth over oAuth? Which one are you
> > > using and why? Does Twitter push for one of them more?
>
> > > Thanks


[twitter-dev] Re: Problems with Twitter4J and OAuth on Android

2010-07-21 Thread Bess
So does it works completely now with manifest.xml permission in place?




What OAuth lib did you use with Twitter4J?

On Jul 21, 6:08 pm, Clay Graham  wrote:
> Ok I know what the problem is!
>
> The manifest was blocking connections to the internet because access
> was not defined. AARRRG!
>
> Here is the proper manifest. Hope this helps somebody
>
> Sorry
>
> 
> http://schemas.android.com/apk/res/android";
>       package="com.sightlyinc.oauth.android"
>       android:versionCode="1"
>       android:versionName="1.0">
>     
>                            android:label="@string/app_name"
>                   android:launchMode="singleInstance">
>             
>                 
>                  android:name="android.intent.category.LAUNCHER" />
>             
>             
>                     
>                      android:name="android.intent.category.DEFAULT" />
>                      android:name="android.intent.category.BROWSABLE" />
>                      android:host="oauth" />
>             
>
>         
>
>     
>
>          android:name="android.permission.ACCESS_COARSE_LOCATION"/>
>          android:name="android.permission.ACCESS_FINE_LOCATION"/>
>         
>
> 
>
> On Jul 21, 12:13 pm, Taylor Singletary 
> wrote:
>
> > Hi Clay,
>
> > Just noticed that you have an API secret in this code sample you've
> > provided -- you'll want to go to your application record and
> > regenerate a new key/secret pair.
>
> > As for the code itself -- I see you setting your consumer key and
> > secret as constants near the top, but then in askOAuth you're using
> > different values -- is this just a result of a bad paste?
>
> > Taylor
>
> > On Tue, Jul 20, 2010 at 11:18 PM, Clay Graham  
> > wrote:
> > > Cant figure out if this is a problem with Twitter4J or the Twitter
> > > API. I am trying to create an OAuth callback activity, started by a
> > > RequestToken, but the Request Token request is failing. DOES ANYONE
> > > KNOW IF GOOGLE HAS MADE THE TWITTER CLIENT AVAILABLE BY OPEN SOURCE
> > > YET?
>
> > > Twitter4J 2.1.2
> > > Android Froyo 2.2
>
> > > package com.sightlyinc.oauth.android;
>
> > > import java.util.Date;
>
> > > import twitter4j.Twitter;
> > > import twitter4j.TwitterFactory;
> > > import twitter4j.http.AccessToken;
> > > import twitter4j.http.RequestToken;
> > > import android.app.Activity;
> > > import android.content.Intent;
> > > import android.content.SharedPreferences;
> > > import android.content.SharedPreferences.Editor;
> > > import android.net.Uri;
> > > import android.os.Bundle;
> > > import android.preference.PreferenceManager;
> > > import android.util.Log;
> > > import android.view.View;
> > > import android.view.View.OnClickListener;
> > > import android.widget.Button;
> > > import android.widget.EditText;
> > > import android.widget.Toast;
>
> > > public class SightlyOauthActivity extends Activity {
>
> > >    private static final String TAG =
> > > SightlyOauthActivity.class.getName();
>
> > >    private Twitter twitter;
> > >    private RequestToken requestToken;
> > >    private SharedPreferences mSharedPreferences;
>
> > >    private String CONSUMER_KEY =           "yfKRsmTgi8UT8eHoV5Khrw";
> > >    private String CALLBACK_URL =           "sightlyoauth://oauth";
>
> > >    private EditText tweetTextView;
> > >    private Button buttonLogin;
>
> > >        /** Called when the activity is first created. */
> > >       �...@override
> > >        public void onCreate(Bundle savedInstanceState) {
> > >                super.onCreate(savedInstanceState);
> > >                setContentView(R.layout.main);
>
> > >                mSharedPreferences =
> > >                        PreferenceManager.getDefaultSharedPreferences(
> > >                                        getApplicationContext());
>
> > >                tweetTextView =
> > > (EditText)findViewById(R.id.TweetView);
> > >        buttonLogin = (Button)findViewById(R.id.ButtonLogon);
> > >        buttonLogin.setOnClickListener(new OnClickListener() {
> > >                public void onClick(View v) {
> > >                        askOAuth();
> > >                }
> > >        });
>
> > >        }
>
> > >        /**
> > >         * Open the browser and asks the user to authorize the app.
> > > Afterwards, we
> > >         * redirect the user back here!
> > >         */
> > >        private void askOAuth() {
> > >                try {
>
> > >                        //setup properties, https was attempted and I
> > > was advised to
> > >                        //use HTTPS instead.
>
> > > System.setProperty("twitter4j.http.useSSL","false");
>
> > > System.setProperty("twitter4j.oauth.consumerKey","MYKEY");
>
> > > System.setProperty("twitter4j.oauth.consumerSecret","MYSECRET");
>
> > > System.setProperty("twitter4j.oauth.requestTokenURL","http://
> > > api.twitter.com/oauth/request_token");
>
> > > System.setProperty("twitter4j.oauth.accessTokenURL","http://
> > > api.twitter.com/oauth/access_token");
>

[twitter-dev] Re: Twitter oAuth for PHP, some advice needed

2010-07-22 Thread Bess
Hi Taylor,

Can you explain more? How this is different than OAuth complete dance?
http://dev.twitter.com/pages/oauth_single_token

How do I use this single token hardcode method in mobile? iPhone
objective-c OAuth lib, Android java OAuth lib?

Thanks
Bess

On Jul 22, 4:53 pm, Paul  wrote:
> Hi Paul,
>
> > Is there a way to retrieve the consumer keys for the other Twitter  
> > account I own without registering an app?
>
> Yep, if you use that script given previously, just login to the other
> Twitter account instead (with the same consumer key/secret.  This will
> give you a different pair of tokens for the second account.
>
> Initialise as in tweeting example with the new token.  Basically what
> you're doing is authorising the same app for both accounts.
>
> - Paul


[twitter-dev] Re: OAuth page showing "opening and ending tag mismatch"

2010-07-26 Thread Bess
I don't see that error on mobile Twitter page but I am testing it in
US.

Do you think it is related to callingURL IP Address? Would Twitter
process it differently for non-US IP Address on callingURL?

On Jul 26, 2:10 pm, Jonathan del Strother 
wrote:
> Hi - thanks for the response.  Both the users who have come to us with
> this problem are non-english speakers - one was definitely viewing it
> in French, the other claimed to be using English but I kinda suspect a
> communication problem there...
> I've not been able to reproduce it, even when setting my phone to
> different locales - do you have a guaranteed way of reproducing it
> yet?  Any idea what percentage of users see the problem?  I've been
> wondering about sticking a ?lang=en parameter in there till it gets
> fixed.
>
> -Jonathan
>
> On Jul 26, 6:49 pm, Matt Harris  wrote:
>
> > Hi Jonathan,
>
> > Our mobile team is aware of this issue and is looking into it. From my tests
> > it looks like it only happens for users whose language is not English. Do
> > you know if these users are viewing the site in anything other than English?
>
> > Thanks
> > Matt
>
> > On Mon, Jul 26, 2010 at 12:06 AM, Jonathan del Strother <
>
> > jdelstrot...@gmail.com> wrote:
> > > Any further progress on this?  Is there anything I can get my users to
> > > try, to try & diagnose the problem some more?
>
> > > -Jonathan
>
> > > On Jul 22, 3:10 pm, Taylor Singletary 
> > > wrote:
> > > > Hi Jonathan,
>
> > > > One conjecture I can think of based on the screenshot is that this may
> > > > be due to the broken image upload issues we were having recently --
> > > > but the further reports on the original link you provided suggest
> > > > otherwise.
>
> > > > Looking into this.
>
> > > > Taylor
>
> > > > On Thu, Jul 22, 2010 at 3:11 AM, Jonathan del Strother
>
> > > >  wrote:
> > > > > No takers?
>
> > > > > On Jul 15, 1:10 pm, Jonathan del Strother 
> > > > > wrote:
> > > > >> Hi,
> > > > >> We use Twitter Oauth for third party signin.  I haven't been able to
> > > > >> reproduce this myself, but one of our users is seeing an error page
> > > > >> showing "this page contains the following errors: error on line 397
> > > > >> column 156: opening and ending tag mismatch:divline 0 andstrong".
> > > > >> Someone at Boxcar seems to be having similar problems -
> > >http://help.boxcar.io/discussions/problems/455-i-cant-sign-in-in-twitter
>
> > > > >> Anyone else run into this?  Any suggestions on fixing it?
>
> > > > >> -Jonathan
>
> > --
>
> > Matt Harris
> > Developer Advocate, Twitterhttp://twitter.com/themattharris


[twitter-dev] Re: Sending 1600 DMs?

2010-07-28 Thread Bess
There is no way to lift this DM daily limit?

If I build an emergency system to report accidents then official
twitter for police or Red Cross won't be able to receive more than 250
DM per day.

If there is a major accidents that involve more than 250 injuries
assuming each DM per injury report, Twitter will send out "Whale"
error after exceeding that limit?

On Jul 27, 10:01 pm, Mark Sievers  wrote:
> Right on, cheers Chris!
>
> On Jul 28, 2:53 pm, Chris Thomson  wrote:
>
> > You can only send 250 DMs from one account per 
> > day:http://support.twitter.com/articles/15364-about-twitter-limits-update...
>
> > --
> > Chris Thomson
>
> > On Jul 28, 2010, at 12:47 AM, Mark Sievers wrote:
>
> > >http://twitter.com/blekko/status/19714365588
>
> > > Kind of curious what would happen myself. The call is not itself rate-
> > > limited, and the target must be following you (ie they have opted in)
> > > so this is ok, but wonder if firing off 1600 DMs in the space of a few
> > > minutes raises any red flags in the Twitter mopther ship.
>
> > >http://dev.twitter.com/doc/post/direct_messages/new


[twitter-dev] Re: Better support for Developers

2010-07-28 Thread Bess
Yes I agree. What Twitter has already published is fairly good.
However the areas that Twitter won't mention or cover in the
documentation is the painful gray area. There are no sufficient of doc
to find out how to do certain ways especially on OAuth.

On Jul 28, 10:19 am, Sam  wrote:
> What I have found is that 99% of the topics on here relate to Oauth...
> if you have a question about a different aspect of the api it is less
> likely that you will get a reply.
>
> The wiki documentation is fairly good and code examples are given, but
> if you are trying to do something that is not covered in the wiki
> there is often limited info available. Similarly if you want to see
> what api features are planned for the future, and when, it is
> difficult to find reliable info.
>
> I haven't tried contacting twitter tech support, so can't comment on
> that.
>
> On the whole the api is great!!! and the wiki gave me enough info to
> easily create most features of my app. As Chi-Shun Chen said, it is
> partly down to your skills as a developer to find solutions to
> problems and get your app working - on the other hand, better
> documentation and tutorials and more variety of api features will
> always make it easier for us...


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

2010-07-29 Thread Bess
Like to ask if I use Twitter4J xAuth, then I don't need to add Java
OAuth lib to Android, right?

On Jul 28, 11:20 pm, Sambath Chandran  wrote:
> 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 wrote:
>
> > Thanks a lot Ernandes and Abraham.
>
> > Regards,
> > Sambath
>
> > On Wed, Jul 28, 2010 at 9:33 PM, Abraham Williams <4bra...@gmail.com>wrote:
>
> >> 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 wrote:
>
> >>> 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


[twitter-dev] Re: Twitter OAuth Example?

2010-08-02 Thread Bess
Yes it is

Depending on which 3rd party library.

Be ware of the publishing date of those info b/c there has been a lot
of changes.

I can confirmed that I am able to
1) Oauth in web app PHP
2) Oauth in Samsung bada C++
3) Oauth in Android SDK 2.1 Java

I am confirming that it can be done b/c I get these OAuth working this
month using the latest version of Oauth libraries. Unfortunately I
wasn't able to show them in the last Twitter hackathon b/c I haven't
started working on them at the time.

On Aug 2, 7:12 am, Konpaku Kogasa  wrote:
> > could somebody please help me
> > I need a simple Twitter OAuth example that fully running along with
> > the source code
>
> 1. What particular language are you using?
> 2. To better tailor your response, what part of the OAuth process is
> difficult to understand?
>
> - Konpaku


[twitter-dev] Re: Twitter OAuth Example?

2010-08-02 Thread Bess
Exactly how many developers out there are having troubles with OAuth?
I don't hear too many complaints in developer events except many
developers are still having UXP issues on OAuth in mobile native app.
There is no good solution using OAuth and Callback Out-of-band.

On Aug 2, 6:17 pm, Bess  wrote:
> Yes it is
>
> Depending on which 3rd party library.
>
> Be ware of the publishing date of those info b/c there has been a lot
> of changes.
>
> I can confirmed that I am able to
> 1) Oauth in web app PHP
> 2) Oauth in Samsung bada C++
> 3) Oauth in Android SDK 2.1 Java
>
> I am confirming that it can be done b/c I get these OAuth working this
> month using the latest version of Oauth libraries. Unfortunately I
> wasn't able to show them in the last Twitter hackathon b/c I haven't
> started working on them at the time.
>
> On Aug 2, 7:12 am, Konpaku Kogasa  wrote:
>
> > > could somebody please help me
> > > I need a simple Twitter OAuth example that fully running along with
> > > the source code
>
> > 1. What particular language are you using?
> > 2. To better tailor your response, what part of the OAuth process is
> > difficult to understand?
>
> > - Konpaku


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

2010-08-05 Thread Bess
Which OAuth library did you use on your BB? Did you use the Java
library?

On Aug 4, 7:42 am, "Ernandes Jr."  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 
>
>
> > 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...
>
> > /**
> >         * 
> >         * Generate a signature from the given base string.
> >         * 
> >         * @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."


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

2010-08-06 Thread Bess
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 
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."  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  wrote:
> > > Which OAuth library did you use on your BB? Did you use the Java
> > > library?
>
> > > On Aug 4, 7:42 am, "Ernandes Jr."  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...
>
> > > > > /**
> > > > >         * 
> > > > >         * Generate a signature from the given base string.
> > > > >         * 
> > > > >         * @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."


[twitter-dev] Re: OAuth singing on BlackBerry

2010-08-06 Thread Bess
You need Twitter to approve before you can use xAuth. xAuth is
different than OAuth.

Can I ask which xAuth library did you use on BB? Is that Java? not
J2ME

On Aug 6, 1:03 pm, BBTweet Media Player 
wrote:
> WHOOO! I got my first 200 getting an XAuth request token.
>
> I think the answer to my question is no, I am not expected to get the
> same signature the have in the XAuth example but it always the same on
> my device.  My final problem was I was not URL encoding the signature
> before placing it into the Authorization header.
>
> Thanks for all the help here hoping to things moving forward quicker.
> I spent way to long trying to figure that out.
>
> On Aug 6, 2:34 pm, BBTweet Media Player 
> wrote:
>
> > Tom,
>
> > Thanks for the reply.  That is what I tried to do here.  I used the
> > exact same values presented on the XAuth 
> > pagehttp://dev.twitter.com/pages/xauth.
> > Everything was exactly the same upto the point where I ran the HMAC-
> > SHA1 encoding
>
> > String signature = hmacsha1(signingSecret, baseString);
>
> > The signature was not the same as the signature the showed in the
> > example.  My first question is should it be if I run SHA1 encoding
> > will with the same input should it always return the exact same string
> > (I just do not know much about the encoding)?  If it should be the
> > exact same this means that my problem is definitively in the encoding
> > step.  If so can anyone see what I might be doing wrong in the signing
> > step...
>
> >         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);
>
> > Thanks,
> > Kevin
>
> > On Aug 6, 10:31 am, Tom  wrote:
>
> > > Hi,
>
> > > I don't have a java compiler ready so I can't test your code.
>
> > > The page about xAuth shows all steps between the start and the actual
> > > signature. Try reproducing every single one of these values. (Usually
> > > you can simply log all steps and then compare the results with the
> > > xauth page.)
>
> > > Tom
>
> > > On Aug 6, 2:56 am, BBTweet Media Player 
> > > wrote:
>
> > > > I am having a really tough time trying to figure out how to sign my
> > > > OAuth request.  I am trying to follow the example 
> > > > athttp://dev.twitter.com/pages/xauth
> > > > and my signature does not come out the same as it does in the
> > > > example...
>
> > > > I am doing
>
> > > > public static void xauth(){
> > > >         try {
> > > >             String twitter_url="https://api.twitter.com/oauth/
> > > > access_token";
> > > >             String oauth_consumer_key = "sGNxxnqgZRHUt6NunK3uw";
> > > >             String oauth_consumer_secret =
> > > > "5kEQypKe7lFHnufLtsocB1vAzO07xLFgp2Pc4sp2vk";
> > > >             String oauth_nonce =
> > > > "WLxsobj4rhS2xmCbaAeT4aAkRfx4vSHX4OnYpTE77hA";
> > > >             String oauth_signature_method = "HMAC-SHA1";
> > > >             String oauth_timestamp = "1276101652";
> > > >             String oauth_version = "1.0";
> > > >             String x_auth_mode = "client_auth";
> > > >             String x_auth_password = "%&123!aZ+()456242134";
> > > >             String x_auth_username = "tpFriendlyGiant";
>
> > > >             String postBody = "x_auth_mode="+x_auth_mode
> > > > +"&x_auth_password="+encodeUTF8(x_auth_password)+
> > > >                 "&x_auth_username="+encodeUTF8(x_auth_username);
>
> > > >             String baseString = "POST&"+encodeUTF8(twitter_url)+
> > > >                 "&oauth_consumer_key%3D"+oauth_consumer_key +
> > > >                 "%26oauth_nonce%3D"+oauth_nonce+
> > > >                 "%26oauth_signature_method%3D"+oauth_signature_method+
> > > >                 "%26oauth_timestamp%3D"+oauth_timestamp+
> > > >                 "%26oauth_version%3D"+oauth_version+
> > > >                 "%26"+encodeUTF8(postBody);
>
> > > >             String signingSecret = encodeUTF8(oauth_consumer_secret)
> > > > +"&";
>
> > > >             String signature = hmacsha1(signingSecret, baseString);
>
> > > >             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(oauth_consumer_key).append("\",
> > > > oauth_signature=\"").append(signature).append("\", oauth_version=\"")
> > > >                 .append(oauth_version).append("\"").toString();
>
> > > >             System.out.println("Header = " + header);
> > > >         } catch (CryptoTokenException e) {
> > > >             // TODO Auto-generated catch block
> > > >             e.printStackTrace();
> > > >         } catch (CryptoUnsupportedOperationException e) {
> > > >             // TODO A

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

2010-08-06 Thread Bess
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."  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 :
> > > 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 
> > > 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/xauthtomake 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."  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  wrote:
> > >> > > Which OAuth library did you use on your BB? Did you use the Java
> > >> > > library?
>
> > >> > > On Aug 4, 7:42 am, "Ernandes Jr."  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...
>
> > >> > > > > /**
> > >> > > > >         * 
> > >> > > > >         * Generate a signature from the given base string.
> > >> > > > >         * 
> > >> > > > >         * @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,
> &g

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

2010-08-08 Thread Bess
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 
>
> Sender: twitter-development-talk@googlegroups.com
> Date: Fri, 6 Aug 2010 22:06:12
> To: Twitter Development Talk
> 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."  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 :
> > > > 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 
> > > > 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."  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  wrote:
> > > >> > > Which OAuth library did you use on your BB? Did you use the Java
> > > >> > > library?
>
> > > >> > > On Aug 4, 7:42 am, "Ernandes Jr."  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
>
> > > >> > > &

[twitter-dev] Re: OAuth singing on BlackBerry

2010-08-08 Thread Bess
Is twitterapime the only OAuth lib for BB?

Anyone is able to use Twitter4J / SignOAuth in BB J2ME?

On Aug 7, 5:13 am, David Francisco Tavárez 
wrote:
> Why don't you use twitterapime?
>
> 2010/8/7, BBTweet Media Player :
>
>
>
> > BB is J2ME but has some quirks that did not allow me to use the
> > library I tired.  I am just handling the twitter communication on my
> > own.
>
> > On Aug 7, 1:01 am, Bess  wrote:
> >> You need Twitter to approve before you can use xAuth. xAuth is
> >> different than OAuth.
>
> >> Can I ask which xAuth library did you use on BB? Is that Java? not
> >> J2ME
>
> >> On Aug 6, 1:03 pm, BBTweet Media Player 
> >> wrote:
>
> >> > WHOOO! I got my first 200 getting an XAuth request token.
>
> >> > I think the answer to my question is no, I am not expected to get the
> >> > same signature the have in the XAuth example but it always the same on
> >> > my device.  My final problem was I was not URL encoding the signature
> >> > before placing it into the Authorization header.
>
> >> > Thanks for all the help here hoping to things moving forward quicker.
> >> > I spent way to long trying to figure that out.
>
> >> > On Aug 6, 2:34 pm, BBTweet Media Player 
> >> > wrote:
>
> >> > > Tom,
>
> >> > > Thanks for the reply.  That is what I tried to do here.  I used the
> >> > > exact same values presented on the XAuth
> >> > > pagehttp://dev.twitter.com/pages/xauth.
> >> > > Everything was exactly the same upto the point where I ran the HMAC-
> >> > > SHA1 encoding
>
> >> > > String signature = hmacsha1(signingSecret, baseString);
>
> >> > > The signature was not the same as the signature the showed in the
> >> > > example.  My first question is should it be if I run SHA1 encoding
> >> > > will with the same input should it always return the exact same string
> >> > > (I just do not know much about the encoding)?  If it should be the
> >> > > exact same this means that my problem is definitively in the encoding
> >> > > step.  If so can anyone see what I might be doing wrong in the signing
> >> > > step...
>
> >> > >         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);
>
> >> > > Thanks,
> >> > > Kevin
>
> >> > > On Aug 6, 10:31 am, Tom  wrote:
>
> >> > > > Hi,
>
> >> > > > I don't have a java compiler ready so I can't test your code.
>
> >> > > > The page about xAuth shows all steps between the start and the
> >> > > > actual
> >> > > > signature. Try reproducing every single one of these values.
> >> > > > (Usually
> >> > > > you can simply log all steps and then compare the results with the
> >> > > > xauth page.)
>
> >> > > > Tom
>
> >> > > > On Aug 6, 2:56 am, BBTweet Media Player 
> >> > > > wrote:
>
> >> > > > > I am having a really tough time trying to figure out how to sign
> >> > > > > my
> >> > > > > OAuth request.  I am trying to follow the example
> >> > > > > athttp://dev.twitter.com/pages/xauth
> >> > > > > and my signature does not come out the same as it does in the
> >> > > > > example...
>
> >> > > > > I am doing
>
> >> > > > > public static void xauth(){
> >> > > > >         try {
> >> > > > >             String twitter_url="https://api.twitter.com/oauth/
> >> > > > > access_token";
> >> > > > >             String oauth_consumer_key = "sGNxxnqgZRHUt6NunK3uw";
> >> > > > >             String oauth_consumer_secret =
> >> > > > > "5kEQypKe7lFHnufLtsocB1vAzO07xLFgp2Pc4sp2vk";
> >> > > > >             String oauth_nonce =
> >> > > > > "WLxsobj4rhS2xmCbaAeT4aAkRfx4vSHX4OnYpTE77hA";
> >> > > > >             String

[twitter-dev] Re: OAuth and Hardware

2010-08-13 Thread Bess
I'd like to learn more about how to use OAuth on hardware without a
browser or UI. Currently Java is being supported. What if I design a
hardware chip that must be written in C or C++, what are the options
to get hardware to post tweet

On Aug 11, 6:13 pm, Tom van der Woerdt  wrote:
> On 8/12/10 3:10 AM, ERenken wrote:
>
>
>
> > I thought about doing the proxy, but I liked having the device do it
> > itself and alot less code just having the device do it.  I will just
> > hard code it.  I would assume we can invalidate a token if for some
> > reason it is comprimised.  Like managing applications in FaceBook.
>
> > Eric
>
> > On Aug 11, 9:36 am, Tom van der Woerdt  wrote:
> >> On 8/11/10 6:30 PM, ERenken wrote:
>
> >>> So how can I use OAuth on a hardware device we are creating that
> >>> doesn't have a UI?  Can I share the key between all the devices?  This
> >>> is only twittering to 1 account that we have created.  Seems like
> >>> OAuth is going to make stuff like this harder for people to develope.
> >>> Seems like it would have just bee easier for security if you would
> >>> have added HTTPS and left basic auth.  At least for embedded devices
> >>> so they could send tweets.
>
> >> If there's no chance of the key leaking to people outside of your
> >> company (or whoever uses your application) then I don't see why not.
> >> It's always better than sharing username/password like with Basic Auth,
> >> and if they all use the same account, it's no problem at all.
>
> >> Of course, a better solution would be to create a simple proxy, but that
> >> may take some more programming and money if you don't have a server for it.
>
> >> Tom
>
> Yes, you can. Athttp://dev.twitter.com/appsyou can simply click Reset.
>
> Tom


[twitter-dev] Re: Open Source Android/Twitter Application

2010-08-15 Thread Bess
I have written a book chapter on how to integrate Twitter4J & OAuth
Java lib with code example in Android last month. It has the bare
minimal but the Twitter Java lib would support all Twitter APIs.

I am not sure I could release the chapter prior before the book. If
the book dies then I may be free to publish it.

I am not quite sure if Twitter has official Android app that Twitter
is going to open source the code.

On Aug 14, 4:39 pm, Clay Graham  wrote:
> Brad,
>
> The reason I am interested in it is not only because I am doing a ton
> of Twitter work for Android, but also because that app was supposed be
> their reference implementation for UI patterns and best practices for
> Android. I am revising my Android app now and would love to see how
> they did many of the things they do in that app. What I really wish is
> someone from google or twitter would respond.
>
> Clay
>
> On Aug 13, 7:16 pm, Brad Bosley  wrote:
>
> > Clay,
>
> > I've been waiting for it too!  Hopefully they don't back out of the promise.
>
> > Regards,
> > Brad Bosley
>
> > On Fri, Aug 13, 2010 at 6:07 PM, Clay Graham  
> > wrote:
> > > Ed,
>
> > > Thanks for the advice. I have emailed Tim directly, no reply. Will
> > > keep trying. Can I be the only one who is hungry for this?
>
> > > Clay


[twitter-dev] Re: Return Public Timeline Tweets based on Geo Location

2010-08-16 Thread Bess
You can use Twitter Search API to filter or limit the GEO location.

within range from 1 to 1000 in units of mi or km

near:"San Francisco" within:1000mi

Twitter search string
http://search.twitter.com/search.atom?geocode=37.775196,-122.419204,1000.0mi&q=+near:%22San+Francisco%22+within:1000mi

You can see it use geocode latitude and longitude, use near filter for
places and use within filter as diameter range.

You can use string to construct your search query to adjust your
search results. I have used this several times in a few mobile apps.
It works well.

On Aug 14, 2:34 pm, Tom van der Woerdt  wrote:
> On 8/14/10 11:20 PM, Mark W wrote:
>
>
>
> > I've searched for a solution, but couldn't find one.
>
> > I'm looking for a way that I can feed in a GeoLocation (Lat,Long) and
> > get the latest x tweets posted from around that area.
>
> > statuses/public_timeline doesn't support GeoLocation.
>
> > I looked at search, which can limit the returned amount by
> > GeoLocation, however, it requires a query search string, which I don't
> > have.
>
> > Any help or friendly point in the right direction is appreciated...
>
> > Thanks.
>
> > Mark
>
> The streams function of twitter can do this.
>
> http://dev.twitter.com/doc/post/statuses/filter
>
> Tom


[twitter-dev] Re: Open Source Android/Twitter Application

2010-08-17 Thread Bess
http://code.google.com/p/twitter-for-android/ is blocked and can't be
accessed

But I find this light-weight open source Android project. It seems
like it covers OAuth.

http://code.google.com/p/andtweet/

On Aug 16, 12:04 pm, Abraham Williams <4bra...@gmail.com> wrote:
> I've been asking about the Twitter for Android code for months. I guess
> priorities have changed.
>
> You can find the locked down code repository on Google 
> Code:http://code.google.com/p/twitter-for-android/
>
> 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 Sun, Aug 15, 2010 at 23:52, Bess  wrote:
> > I have written a book chapter on how to integrate Twitter4J & OAuth
> > Java lib with code example in Android last month. It has the bare
> > minimal but the Twitter Java lib would support all Twitter APIs.
>
> > I am not sure I could release the chapter prior before the book. If
> > the book dies then I may be free to publish it.
>
> > I am not quite sure if Twitter has official Android app that Twitter
> > is going to open source the code.
>
> > On Aug 14, 4:39 pm, Clay Graham  wrote:
> > > Brad,
>
> > > The reason I am interested in it is not only because I am doing a ton
> > > of Twitter work for Android, but also because that app was supposed be
> > > their reference implementation for UI patterns and best practices for
> > > Android. I am revising my Android app now and would love to see how
> > > they did many of the things they do in that app. What I really wish is
> > > someone from google or twitter would respond.
>
> > > Clay
>
> > > On Aug 13, 7:16 pm, Brad Bosley  wrote:
>
> > > > Clay,
>
> > > > I've been waiting for it too!  Hopefully they don't back out of the
> > promise.
>
> > > > Regards,
> > > > Brad Bosley
>
> > > > On Fri, Aug 13, 2010 at 6:07 PM, Clay Graham <
> > claytan...@sightlyinc.com> wrote:
> > > > > Ed,
>
> > > > > Thanks for the advice. I have emailed Tim directly, no reply. Will
> > > > > keep trying. Can I be the only one who is hungry for this?
>
> > > > > Clay


[twitter-dev] Re: iPhone - Twitter Home in a UIWebView with a valid access token.

2010-08-18 Thread Bess
To display status on UITableView doesn't require login. You can
reproduce Twitter website by using Twitter APIs.

On Aug 18, 8:29 am, Nik Fletcher  wrote:
> Hi Alban
>
> You're looking at two different environments here:
>
> 1. The native Cocoa touch view you're working with, in which you're
> requesting the methods from the Twitter API and updating the table
> view.
> 2. The WebView, which is the main Twitter website
>
> The OAuth flow you've run through for requesting data for your
> UITableView isn't valid for logging into the user-facing Twitter.com
> pages.
>
> To make the most of you doing the OAuth flow and downloading the
> tweets to a native Cocoa touch view, and to save the re-login to
> Twitter.com, you'd probably want to look to add some further view
> controllers to your app and push them with the data you've downloaded
> etc.
>
> Cheers
>
> -N
> --
> Nik Fletcher
> @nikf


[twitter-dev] Re: Return Public Timeline Tweets based on Geo Location

2010-08-23 Thread Bess
You are welcome. Glad it works for you.

It would be nice to see example of using Stream API using location.

Anyone can offer example code in using Twitter Places? narrow down
specific geo location?

On Aug 21, 5:43 pm, Mark W  wrote:
> Bess and Tom,
>
> Thanks for the responses.  The search method seemed to work best for
> me.  I appreciate the quick responses.
>
> Mark
>
> On Aug 14, 5:20 pm, Mark W  wrote:
>
>
>
> > I've searched for a solution, but couldn't find one.
>
> > I'm looking for a way that I can feed in a GeoLocation (Lat,Long) and
> > get the latest x tweets posted from around that area.
>
> > statuses/public_timeline doesn't support GeoLocation.
>
> > I looked at search, which can limit the returned amount by
> > GeoLocation, however, it requires a query search string, which I don't
> > have.
>
> > Any help or friendly point in the right direction is appreciated...
>
> > Thanks.
>
> > Mark


[twitter-dev] Re: single-access Oauth with Javascript

2010-08-23 Thread Bess
I haven't tried @anywhere yet but it seems like that is best approach
to log into twitter to post

On Aug 23, 7:49 am, Claudia  wrote:
> hey tom
>
> I ended up figuring it out using javascript to call php... i thought
> about using @anywhere, but I wasn't sure that I'd be able to
> circumvent the redirect out to twitter (for sign-in). all of this
> needs to happen in the background as it is multiple users posting to a
> single account.
>
> let me know if i have that wrong - thank you!
> c
>
> On Aug 22, 3:16 am, Tom van der Woerdt  wrote:
>
>
>
> > You can (should) use @anywhere for that.
>
> > Tom
>
> > On 22 aug. 2010, at 01:49, Claudia  wrote:
>
> > > Anyone have any examples? I need to post to a single account from my
> > > web app and the whole thing is built with Javascript/jQuwey/JSON.
> > > Should it be just as easy in Javascript as in PHP or some of the other
> > > examples up there?
>
> > > Thanks for any tips/help.. new to Oauth so I'm picking through it
> > > slowly.
>
> > > Claudia


[twitter-dev] Re: Open Source Android/Twitter Application

2010-09-10 Thread Bess
Yes you can. I can verify I did it myself from scratch and have also
tested other Android app.

Just read everything above in this email thread.

On Sep 10, 12:27 am, shubham patni 
wrote:
> I want to integrate Twitter with Android app, how can i dot this.
> Please suggest me
>
> On Aug 17, 1:48 pm, Bess  wrote:
>
> >http://code.google.com/p/twitter-for-android/isblocked and can't be
> > accessed
>
> > But I find this light-weight open sourceAndroidproject. It seems
> > like it covers OAuth.
>
> >http://code.google.com/p/andtweet/
>
> > On Aug 16, 12:04 pm, Abraham Williams <4bra...@gmail.com> wrote:
>
> > > I've been asking about theTwitterforAndroidcode for months. I guess
> > > priorities have changed.
>
> > > You can find the locked down code repository on Google 
> > > Code:http://code.google.com/p/twitter-for-android/
>
> > > 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 Sun, Aug 15, 2010 at 23:52, Bess  wrote:
> > > > I have written a book chapter on how to integrate Twitter4J & OAuth
> > > > Java lib with code example inAndroidlast month. It has the bare
> > > > minimal but theTwitterJava lib would support allTwitterAPIs.
>
> > > > I am not sure I could release the chapter prior before the book. If
> > > > the book dies then I may be free to publish it.
>
> > > > I am not quite sure ifTwitterhas officialAndroidapp thatTwitter
> > > > is going to open source the code.
>
> > > > On Aug 14, 4:39 pm, Clay Graham  wrote:
> > > > > Brad,
>
> > > > > The reason I am interested in it is not only because I am doing a ton
> > > > > ofTwitterwork forAndroid, but also because that app was supposed be
> > > > > their reference implementation for UI patterns and best practices for
> > > > >Android. I am revising myAndroidapp now and would love to see how
> > > > > they did many of the things they do in that app. What I really wish is
> > > > > someone from google ortwitterwould respond.
>
> > > > > Clay
>
> > > > > On Aug 13, 7:16 pm, Brad Bosley  wrote:
>
> > > > > > Clay,
>
> > > > > > I've been waiting for it too!  Hopefully they don't back out of the
> > > > promise.
>
> > > > > > Regards,
> > > > > > Brad Bosley
>
> > > > > > On Fri, Aug 13, 2010 at 6:07 PM, Clay Graham <
> > > > claytan...@sightlyinc.com> wrote:
> > > > > > > Ed,
>
> > > > > > > Thanks for the advice. I have emailed Tim directly, no reply. Will
> > > > > > > keep trying. Can I be the only one who is hungry for this?
>
> > > > > > > Clay

-- 
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] Re: xAuth request returns 401, need help

2010-11-19 Thread Bess
Twitter 401 error is related to Authentication
401 Unauthorized: Authentication credentials were missing or
incorrect.

Another debugging is to print out error type error message from iPhone
console

On Nov 19, 11:04 am, Matt Harris  wrote:
> Hey Chrys,
>
> The order of the parameters in the base string matter and they should be in
> lexicollexicographical order. For ease of debugging and to remove any
> ambiguity it would be better to have the authorization header use the same
> order too.
>
> Can you tell me what the body content of the 401 error is?
>
> Best,
> @themattharris
> Developer Advocate, Twitterhttp://twitter.com/themattharris
>
> On Thu, Nov 18, 2010 at 6:55 PM, Chrys Bader  wrote:
> > Does the order of the params in either the Authorization or Base
> > string matter?
>
> > Here are my Request Headers:
>
> >    Authorization = "OAuth oauth_timestamp=\"1290134876\", oauth_nonce=
> > \"D3EC42D2-A37F-4298-987D-0F9603B0C9C7\", oauth_version=\"1.0\",
> > oauth_consumer_key=\"xxx\", oauth_signature_method=\"HMAC-SHA1\",
> > oauth_signature=\"MOWT%2BaSs35RhzvRRMVxRG0Y5p0E%3D\"";
> >    "Content-Length" = 71;
> >     "Content-Type" = "application/x-www-form-urlencoded;
> > charset=utf-8";
>
> > Here is my actual base string:
>
> > POST&https%3A%2F%2Fapi.twitter.com%2Foauth
> > %2Faccess_token&oauth_consumer_key%3Dxxx%26oauth_nonce%3DD3EC42D2-
> > A37F-4298-987D-0F9603B0C9C7%26oauth_signature_method%3DHMAC-
> > SHA1%26oauth_timestamp%3D1290134876%26oauth_version%3D1.0%26x_auth_mode
> > %3Dclient_auth%26x_auth_password%3Dxxx%26x_auth_username%3Dchrysb
>
> > On Nov 18, 6:47 pm, Chrys Bader  wrote:
> > > Yes I compared the UTC timestamp that my phone is generating with the
> > > actual UTC timestamp, and they were the same.
>
> > > Is there anything else I can show you for more information?
>
> > > No matter what, I just keep getting a 401 response from Twitter.
>
> > > On Nov 18, 6:41 pm, Matt Harris  wrote:
>
> > > > OK, but is the UTC timestamp actually accurate? we've heard of a number
> > of
> > > > phones whose date/time are wildly wrong. It maybe find but it's quite
> > > > common.
>
> > > > Your content-type is fine.
> > > > Matt
>
> > > > On Thu, Nov 18, 2010 at 6:03 PM, Chrys Bader  wrote:
> > > > > Ok, I looked into it.  According to the iPhone SDK documentation, I
> > am
> > > > > indeed sending the UTC (GMT) timestamp.
>
> > > > > Still not sure what else could be wrong?
>
> > > > > Is this the right Content-Type?
>
> > > > > "Content-Type" = "application/x-www-form-urlencoded; charset=utf-8";
>
> > > > > On Nov 18, 5:53 pm, themattharris  wrote:
> > > > > > Hey Chrys,
>
> > > > > > A couple of things to check first:
>
> > > > > > 1. Have you been granted xAuth access?
> > > > > > 2. Double check the timestamp of your request is within 10 or so
> > > > > > minutes of the time returned by Twitter's servers. Our server time
> > is
> > > > > > in UTC.
> > > > > > 3. Verify your encoding is correct. For example: a password like
> > ab$
> > > > > > %&123 should be in your basestring as ab%2524%2525%2526123 and in
> > your
> > > > > > post body as ab%24%25%26123.
>
> > > > > > Best,
> > > > > > Matt
>
> > > > > > On Nov 18, 5:31 pm, Chrys Bader  wrote:
>
> > > > > > > *bump*
>
> > > > > > > I've run my base string through an oAuth verifier (
> >http://quonos.nl/
> > > > > > > oauthTester/), and it all checks out!
>
> > > > > > > Any ideas?
>
> > > > > > > On Oct 27, 4:50 pm, Chrys Bader  wrote:
>
> > > > > > > > Hey all,
>
> > > > > > > > This is my first post in this group, hi!
>
> > > > > > > > I am having trouble making a request onhttps://
> > > > > api.twitter.com/oauth/access_token.
> > > > > > > > I've been at this for 2 days and I can't make any progress.  I
> > feel
> > > > > > > > like everything matches up with all examples, documentation,
> > and
> > > > > other
> > > > > > > > forum posts perfectly.
>
> > > > > > > > Here is my post body:
>
> > > > > > > > x_auth_username=oauth_test_exec&x_auth_password=twitter-
> > > > > > > > xauth&x_auth_mode=client_auth
>
> > > > > > > > Here is my base string (using the example's test credentials):
>
> > > > > > > > POST&https%3A%2F%2Fapi.twitter.com%2Foauth
> > > > > > > > %2Faccess_token&oauth_consumer_key%3DJvyS7DO2qd6NNTsXJ4E7zA
> > > > > > > > %26oauth_nonce%3DE0E37C06-F12A-407B-8D80-20C78FF6183A
> > > > > > > > %26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp
> > > > > > > > %3D1288223176%26oauth_version%3D1.0%26x_auth_mode%3Dclient_auth
>
> > %26x_auth_password%3Dtwitter-xauth%26x_auth_username%3Doauth_test_exec
>
> > > > > > > > Here is my Authorization header:
>
> > > > > > > > OAuth oauth_timestamp="1288223176", oauth_nonce="E0E37C06-
> > > > > > > > F12A-407B-8D80-20C78FF6183A", oauth_version="1.0",
> > > > > > > > oauth_consumer_key="JvyS7DO2qd6NNTsXJ4E7zA",
> > > > > > > > oauth_signature_method="HMAC-SHA1",
> > oauth_signature="IwPFrvb0PExyS
> > > > > > > > %2F2QQvtbelsWk48%3D"
>
> > > > > --
> > > > > Twitter developer docum

[twitter-dev] Re: Convert RSS entries to tweets

2010-11-28 Thread Bess
I thought you could use 3rd party tool to support RSS>Tweet
conversion. Can you do such thing using Twitter API?

On Nov 27, 5:47 am, Chief  wrote:
> I have a RSS feed and I want it to convert it to auto-tweets (when new
> entries are available using my own twitter app.
> How can I do it in PHP?
>
> I know how to connect to twitter using OAuth, but I don't have any
> experience with RSS feeds.

-- 
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] Re: help me plz quiry speed and geocode

2010-11-28 Thread Bess
Any standard Twitter API is rate-limited except Streaming API
(Firehost). However Streaming API must be approved by Twitter
manually.

If radius cap is 100 miles, it should cover most metropolitan area
size. In some areas you may not get enough tweets for 200 miles
diameter to show sufficient Tweet results in real time or search
terms.

On Nov 27, 5:44 pm, danetroup  wrote:
> how do you get tweets from all over? I thought they were limited to up
> to 1000 mile radius?
>
> can you give a summary of your goal. It seems like doing it real time
> would be impossible (if you want to capture every tweet around the
> world)
>
> I am working on a geo mashup with tweets and google maps using Flash.
> It is working ok but the limitations are the 100 cap on results and
> the radius cap of 100 miles.
>
> it sounds like you must be hitting the rate limitation on the API. im
> not sure what it is on the authenticated status filter. did you try
> the search API?
>
> On Nov 27, 6:34 pm, disc31  wrote:
>
> > I am a uni student, I am very new to the twitter api, i have been
> > making an aplication in "Processing" to show tweets coming up on a
> > world map in real time. im not trying to get the post its the geocodes
> > i want, with lots of help from people here and on the processing
> > forums i have made it so that it plotts the geocode in my application
> > as a dot and this will represent twitter posts from all around the
> > world.
>
> > link to a picture of my app to give you an idea:
>
> >http://yfrog.com/b7worldstarmapj
>
> > here is the quiry i am using:
>
> > search.twitter.com/1/statuses/filter.json?
> > location=-168.75,9.79,158.90,83.02
>
> > The problem i am getting is that i am getting a twitter post about
> > every 30 seconds with this and after about 5/10 posts it stops feeding
> > me the posts and wont let me connect for about another hour.
>
> > OVER VIEW OF WHAT I WANT TO ACHIEVE
>
> > - geocode of posts from all around the would not just one place
> > - i dont need what they have posted but if i get it then its a bonus
> > - i need to be able to recieve this information at a reasonable speed
> > (i dont know if im allowed because of the quiry limit)
> > - any sugestions of different quirys or code are VERY WELCOME
>
> > here is my processing code is anyone is interested:
>
> > import com.twitter.processing.*;
> > //
>
> > // test tweet counting (not sure if it will work)
> > int tweetCount;
> > // this stores how many tweets we've gotten
> > int tweets = 0;
> > // and this stores the text of the last tweet
> > String tweetText = "";
> > Geo tweetGeo;
>
> > double lati, longi;
> > float latiFl, longiFl,latiMap, longiMap;
>
> > int textsize;
>
> > void setup() {
> >   size(1000,600);
> >     background(0);
>
> >   // set up twitter stream object
> >   TweetStream s = new TweetStream(this, "search.twitter.com", 80,
> >   "1/statuses/filter.json?location=-168.75,9.79,158.90,83.02",
> >   "Usser", "PASSWORD");
> >   s.go();
> >   smooth();
>
> > }
>
> > void draw() {
>
> >    fill(0);
> >   rect(0,450,1000,150);
>
> >   textsize = 12;
> >   // set up fonts
> >   PFont font;
> >   font = createFont("ArialMT-48.vlw", textsize);
> >   textFont(font);
> >   textSize(textsize);
>
> >   fill(255);
>
> >    //converts double to float
> >   latiFl = (float)lati;
> >   longiFl = (float)longi;
>
> >   //map value to screen
> >   latiMap = map(latiFl, -90, 90, 0, width);
> >   longiMap = map(longiFl, -180, 180, 0, height);
>
> >   // and draw the text of the last tweet
>
> >   text(tweetText, 20, 520);
> >   // adn its lat and long
> >   text("lat = " + lati + " long = " + longi,20,560);
>
> >   text("number of tweets:" +tweetCount, 880, 580);
>
> >   for( int i = 0; i < 7000; i++){
> >     fill(255);
> >     ellipse(latiMap, longiMap, 5,5);
> >    /* fill(0);
> >     rect(0,500,1000,100);
> >     */
> >   }
>
> > }
>
> > // called by twitter stream whenever a new tweet comes in
> > void tweet(Status tweet) {
> >   // print a message to the console just for giggles if you like
> >   // println("got tweet " + tweet.id());
>
> >   // store the latest tweet text
> >   tweetText = tweet.text();
> >   tweetGeo = tweet.geo();
>
> >   lati = tweetGeo.latitude();
> >  longi = tweetGeo.longitude();
>
> >   println("lat = " + lati + " long = " + longi);
> >   // bump our tweet count by one
> >   tweets += 1;
>
> >   println("number of tweets:" +tweetCount);
> >   tweetCount++;
>
> > }
>
> > thanks for looking

-- 
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] Re: oAuth reporting a status update error when none exists

2010-11-30 Thread Bess
I am afraid Twitter has added this error - don't allow any duplicate
tweet at least from Twitter API. I have to add random text to bypass
this 403 error.

On Nov 30, 11:11 am, EastSideDev  wrote:
> I am getting this:
>
>     [request] => /1/statuses/update.json
>     [error] => Status is a duplicate.
>
> On Nov 30, 12:09 am, Abraham Williams <4bra...@gmail.com> wrote:
>
> > What does $connection->http_code return after calling $connection->post when
> > you get the duplicate error message?
>
> > Abraham
> > -
> > Abraham Williams | Hacker Advocate | abrah.am
> > @abraham  | github.com/abraham | blog.abrah.am
> > This email is: [ ] shareable [x] ask first [ ] private.
>
> > On Mon, Nov 29, 2010 at 23:58, EastSideDev  wrote:
> > > I double-checked my code, and I'm only calling statuses/update once:
>
> > >        $connection = new TwitterOAuth($ctck, $ctcks, $ot,$ots);
> > >        $opResult = $connection->post('statuses/update',
> > > array('status' => $statusUpdate), TRUE);
> > >        if (!$opResult['id']) {
> > >            $msgText .= $opResult['error']." ";
> > >        }
>
> > > This is code that was working fine, until recently (no changes).
>
> > > On Nov 29, 10:00 pm, Abraham Williams <4bra...@gmail.com> wrote:
> > > > It sound to me like your code might be making the same API request 
> > > > twice.
> > > > This would result in the status getting posted and the error message you
> > > end
> > > > up with.
>
> > > > If you are commonly creating statuses with the same text it might just
> > > seem
> > > > like a new status is getting posted when they are not.
>
> > > > Abraham
> > > > -
> > > > Abraham Williams | Hacker Advocate | abrah.am
> > > > @abraham  | github.com/abraham |
> > > blog.abrah.am
> > > > This email is: [ ] shareable [x] ask first [ ] private.
>
> > > > On Mon, Nov 29, 2010 at 20:18, EastSideDev 
> > > wrote:
> > > > > I have an application that uses oAuth to post a tweet on behalf of a
> > > > > user. I noticed today that when I do a status update, I'm getting a
> > > > > "Status is a duplicate" error message, when in fact the status posted
> > > > > correctly.
>
> > > > > I have not changed my code, and I am using the Twitter oAuth library
> > > > > (same code been working fine since June). Are we experiencing some API
> > > > > issues?
>
> > > > > --
> > > > > 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 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 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] Re: xAuth Request gives Error from samsung tv maple browser

2010-12-06 Thread Bess
I am interested in solving this too.

Let's say Samsung TV is same as desk top. You should be able to use
xAuth.

You need to create a new Twitter app to get Consumer key and Consumer
secret. Make sure you select client method and read/write.

On Dec 6, 1:23 am, "umamahesh G."  wrote:
> HI Tom,
>
> Thanks for your support. I am using javascript for samsung TV Applicaiton
> not for normal browser so there is no way to know about keys and secret
> key.Actually Samsung SDK uses Maple browser and  application runs on  this
> browser.
>
> I hope you help me out from this issue.
>
> Please find the below code.
>
> 
> 
>