[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 shannon.cl...@gmail.com wrote:
 Watch out for higher rates at many garages if there is a game at ATT  
 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 mmcbr...@twitter.com 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 zbowl...@gmail.com  
  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 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 zbowl...@gmail.com 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 understood the OAuth spec fairly 
  well thankfully and @jmhodges was there to help 

[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=engeocode=37.09024%2C-95.712891%2C500.0miq=earthquake

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

On Jun 2, 3:03 pm, Matt Harris thematthar...@twitter.com 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 ebrit...@gmail.com 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 taylorsinglet...@twitter.com
  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 ebrit...@gmail.com 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] 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 jonathan.reichh...@gmail.com
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 br...@blumenfeld-maso.comwrote:

  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 jonathan.reichh...@gmail.com
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 bess...@gmail.com 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 jonathan.reichh...@gmail.com
  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 br...@blumenfeld-maso.com
  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 ocort...@gmail.com 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 rhyl...@gmail.com 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 ocort...@gmail.com 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?
uses-permission
android:name=android.permission.ACCESS_COARSE_LOCATION/
uses-permission
android:name=android.permission.ACCESS_FINE_LOCATION/
uses-permission android:name=android.permission.INTERNET/

What OAuth lib did you use with Twitter4J?

On Jul 21, 6:08 pm, Clay Graham claytan...@sightlyinc.com 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

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
       package=com.sightlyinc.oauth.android
       android:versionCode=1
       android:versionName=1.0
     application android:icon=@drawable/icon android:label=@string/
 app_name
         activity android:name=.SightlyOauthActivity
                   android:label=@string/app_name
                   android:launchMode=singleInstance
             intent-filter
                 action android:name=android.intent.action.MAIN /
                 category
 android:name=android.intent.category.LAUNCHER /
             /intent-filter
             intent-filter
                     action android:name=android.intent.action.VIEW /

                     category
 android:name=android.intent.category.DEFAULT /
                     category
 android:name=android.intent.category.BROWSABLE /
                     data android:scheme=sightlyoauth
 android:host=oauth /
             /intent-filter

         /activity

     /application

         uses-permission
 android:name=android.permission.ACCESS_COARSE_LOCATION/
         uses-permission
 android:name=android.permission.ACCESS_FINE_LOCATION/
         uses-permission android:name=android.permission.INTERNET/

 /manifest

 On Jul 21, 12:13 pm, Taylor Singletary taylorsinglet...@twitter.com
 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 claytan...@sightlyinc.com 
  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
      

[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 cron...@gmail.com 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 jdelstrot...@gmail.com
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 thematthar...@twitter.com 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 taylorsinglet...@twitter.com
   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

jdelstrot...@gmail.com wrote:
 No takers?

 On Jul 15, 1:10 pm, Jonathan del Strother jdelstrot...@gmail.com
 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 mark.siev...@gmail.com wrote:
 Right on, cheers Chris!

 On Jul 28, 2:53 pm, Chris Thomson chri...@chris24.ca 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 sammybli...@yahoo.co.uk 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 sambat...@gmail.com 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 sambat...@gmail.comwrote:

  Thanks a lot Ernandes and Abraham.

  Regards,
  Sambath

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

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

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

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

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

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

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

  Thanks,
  Sambath


[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 kogasa.l...@gmail.com 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 bess...@gmail.com 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 kogasa.l...@gmail.com 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. 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.


[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 bbtweetme...@gmail.com
wrote:
 Ernandes,

 Thanks for the response.  I am sure there is something small I am
 doing wrong.  I did grab twitter4j and made a simple j2se app to make
 sure I could use my consumer key and secret and XAuth worked.  So I
 know my account is good at least.  I am now trying to hand code the
 example onhttp://dev.twitter.com/pages/xauthto make sure I can
 properly encode a header. Everything worked fine using BASIC.  I do
 not see why they had to make it so hard.

 I am using the BB 5 and 6 OSs.

 On Aug 5, 2:39 pm, Ernandes Jr. ernan...@gmail.com wrote:

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

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

  Regards,
  Ernandes

  On Thu, Aug 5, 2010 at 4:56 AM, Bess bess...@gmail.com wrote:
   Which OAuth library did you use on your BB? Did you use the Java
   library?

   On Aug 4, 7:42 am, Ernandes Jr. ernan...@gmail.com wrote:
Hi,

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

Maybe your issues are already discussed there.

Regards,
Ernandes

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

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

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

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

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

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

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

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

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


[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 bbtweetme...@gmail.com
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 bbtweetme...@gmail.com
 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 allerleiga...@gmail.com 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 bbtweetme...@gmail.com
   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 Auto-generated catch block
            e.printStackTrace();
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

    private static String hmacsha1(String key, String message) 

[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. 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/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. 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

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

2010-08-09 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 ATT

 -Original Message-
 From: Bess bess...@gmail.com

 Sender: twitter-development-talk@googlegroups.com
 Date: Fri, 6 Aug 2010 22:06:12
 To: Twitter Development Talktwitter-development-talk@googlegroups.com
 Reply-To: twitter-development-talk@googlegroups.com
 Subject: [twitter-dev] Re: BlackBerry, XAuth and twitterapime

 If Twitter4J do not run on BB, which OAuth or xAuth lib do you use in
 BB?

 There is no other Java option in BB? You have to use J2ME in BB?

 What about webos BB has announced?

 Can I port my Java code from Android straight to BB? How much code re
 factoring or rewrite I have to do to move from Android to BB?

 On Aug 6, 10:23 am, Ernandes Jr. ernan...@gmail.com wrote:
  BB is powered by Java ME and some specific RIM Java APIs.

  On Fri, Aug 6, 2010 at 8:26 AM, David Francisco Tavárez 

  davidftava...@gmail.com wrote:
   Twitter4J do not run on BB.

   2010/8/6, Bess bess...@gmail.com:
I am able to use Twitter4J Oauth in Android SDK 2.1. Can you do the
same on BB?

Does BB has the same JAVA environment similar to Android? I assume
J2SE is very different than Android Java?

On Aug 5, 4:52 pm, BBTweet Media Player bbtweetme...@gmail.com
wrote:
Ernandes,

Thanks for the response.  I am sure there is something small I am
doing wrong.  I did grab twitter4j and made a simple j2se app to make
sure I could use my consumer key and secret and XAuth worked.  So I
know my account is good at least.  I am now trying to hand code the
example onhttp://dev.twitter.com/pages/xauthtomakesure I can
properly encode a header. Everything worked fine using BASIC.  I do
not see why they had to make it so hard.

I am using the BB 5 and 6 OSs.

On Aug 5, 2:39 pm, Ernandes Jr. ernan...@gmail.com wrote:

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

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

 Regards,
 Ernandes

 On Thu, Aug 5, 2010 at 4:56 AM, Bess bess...@gmail.com wrote:
  Which OAuth library did you use on your BB? Did you use the Java
  library?

  On Aug 4, 7:42 am, Ernandes Jr. ernan...@gmail.com wrote:
   Hi,

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

   Maybe your issues are already discussed there.

   Regards,
   Ernandes

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

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

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

[twitter-dev] Re: OAuth singing on BlackBerry

2010-08-09 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 davidftava...@gmail.com
wrote:
 Why don't you use twitterapime?

 2010/8/7, BBTweet Media Player bbtweetme...@gmail.com:



  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 bess...@gmail.com 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 bbtweetme...@gmail.com
  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 bbtweetme...@gmail.com
   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 allerleiga...@gmail.com 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 bbtweetme...@gmail.com
 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

[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 i...@tvdw.eu 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 i...@tvdw.eu 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: 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.0miq=+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 i...@tvdw.eu 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 bess...@gmail.com 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 claytan...@sightlyinc.com 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 brad.bos...@gmail.com 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 nik.fletc...@gmail.com 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 mdwolin...@gmail.com 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 mdwolin...@gmail.com 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 cbern...@gmail.com 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 i...@tvdw.eu wrote:



  You can (should) use @anywhere for that.

  Tom

  On 22 aug. 2010, at 01:49, Claudia cbern...@gmail.com 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 shub...@elantechnologies.com
wrote:
 I want to integrate Twitter with Android app, how can i dot this.
 Please suggest me

 On Aug 17, 1:48 pm, Bess bess...@gmail.com 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 bess...@gmail.com 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 claytan...@sightlyinc.com 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 brad.bos...@gmail.com 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 thematthar...@twitter.com 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 chr...@gmail.com 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:

  POSThttps%3A%2F%2Fapi.twitter.com%2Foauth
  %2Faccess_tokenoauth_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 chr...@gmail.com 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 thematthar...@twitter.com 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 chr...@gmail.com 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 thematthar...@twitter.com 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 chr...@gmail.com 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 chr...@gmail.com 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_execx_auth_password=twitter-
xauthx_auth_mode=client_auth

Here is my base string (using the example's test credentials):

POSThttps%3A%2F%2Fapi.twitter.com%2Foauth
%2Faccess_tokenoauth_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 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 

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

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

On Nov 27, 5:47 am, Chief chie...@gmail.com 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 danetr...@gmail.com 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 dis...@hotmail.com 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 eastside...@gmail.com 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 https://twitter.com/abraham | github.com/abraham | blog.abrah.am
  This email is: [ ] shareable [x] ask first [ ] private.

  On Mon, Nov 29, 2010 at 23:58, EastSideDev eastside...@gmail.com 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 https://twitter.com/abraham | github.com/abraham |
   blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.

On Mon, Nov 29, 2010 at 20:18, EastSideDev eastside...@gmail.com
   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. g.umamahesh...@gmail.com 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.

 html
 head
 lt;script type =text/Javascript language=Javascript
 src=sha1.js/script
 lt;script type=text/javascript charset=utf-8

 /*To authorize on Twitter API through xAuth, you need HMAC-SHA1
 I'm using the following lib for that:http://jssha.sourceforge.net
 Make sure you have sha.js included!Also, you need to email
 a...@twitter.comto get xAuth access
 I cannot do that for you - seehttp://dev.twitter.com/pages/xauth
 cross-domain XHRs only work on file:// protocol pages
 use PhoneGap!
  */

 var TwitterApiRequest = function() {
 this.nonce = this.generateNonce();
 this.timestamp = this.getUTCtimestamp();

 this.postBody = null;
 this.signature = null;
 this.signatureBaseString = null;
 this.consumerSecret=MY consumerSecret ;

 }

 TwitterApiRequest.prototype.generateNonce = function () {
 var nonce = [];
 var length = 6; // arbitrary - looks like a good length

 for (length; length  0; length--)
 nonce.push1+Math.random())*0x1)|0).toString(16).substring(1));

 return nonce.join();

 }

 // could possibly do without UTC, but here we are
 TwitterApiRequest.prototype.getUTCtimestamp = function ()
 {
 //var currentTime = new Date();
 //var currentUTCTimeInSecs =
 Math.floor(Date.parse(currentTime.toUTCString()) / 1000);
 //return currentUTCTimeInSecs;
 return (new Date((new Date).toUTCString())).getTime() / 1000;

 }

 // don't forget trailing !
 //TwitterApiRequest.prototype.consumerSecret =
 MY consumerSecret ;

 TwitterApiRequest.prototype.signatureBaseStringTemplate = POST +
 https%3A%2F%2Fapi.twitter.com
 http://2fapi.twitter.com/%2Foauth%2Faccess_token
 + // oauth_path
 oauth_consumer_key%3DMY CONSUMER KEY%26 +
 oauth_nonce%3D + {{ nonce }} + %26 +
 oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D + {{ time }} +
 %26 +
 oauth_version%3D1.0%26 +
 x_auth_mode%3Dclient_auth%26 +
 x_auth_password%3D + {{ password }} + %26 +
 x_auth_username%3D + {{ username }}

 TwitterApiRequest.prototype.authHeaderTemplate = OAuth  +
 oauth_nonce=\ + {{ nonce }} + \,  +
 oauth_signature_method=\HMAC-SHA1\,  +
 oauth_timestamp=\ + {{ time }} + \,  +
 oauth_consumer_key=\MY CONSUMER KEY\,  +
 oauth_signature=\ + {{ signature }} + \,  +
 oauth_version=\1.0\;

 TwitterApiRequest.prototype.processCredentials = function (user, pw) {
 this.signatureBaseString = this.signatureBaseStringTemplate
 .split({{ nonce }}).join(this.nonce)
 .split({{ time }}).join(this.timestamp)
 .split({{ password

 }}).join(encodeURIComponent(pw))
 .split({{ username
 }}).join(encodeURIComponent(user));

 this.postBody = x_auth_mode=client_auth +
 x_auth_password= + encodeURIComponent(pw) +  +
 x_auth_username= + encodeURIComponent(user);

 }

 TwitterApiRequest.prototype.sign = function ()
 {
 //var shaObj = new jsSHA(base_string, ASCII);
 //var oauth_signature = shaObj.getHMAC(consumersecret, ASCII, B64);
 alert(this.signatureBaseString :+this.signatureBaseString);
 var hmacGen = new jsSHA(this.signatureBaseString,ASCII);
 this.signature = hmacGen.getHMAC(this.consumerSecret,ASCII,B64)+%3D;

 this.authHeader = this.authHeaderTemplate
 .split({{ nonce }}).join(this.nonce)
 .split({{ time }}).join(this.timestamp)
 .split({{ signature }}).join(this.signature);

 }

 function ajaxrequest()
 {
 var authorizeRequest = new TwitterApiRequest();
 authorizeRequest.processCredentials(suyambu.vikn...@gmail.com,
 simcard00);
 authorizeRequest.sign();

 var twitterUrl = 'https://api.twitter.com/oauth/access_token?'+
 authorizeRequest.postBody;

 var req = new XMLHttpRequest();
 alert(this.postBody : +authorizeRequest.postBody);
 alert(header :+authorizeRequest.authHeader);
 // sync for testing purposes, not required
 req.open('POST', twitterUrl, false);
 req.setRequestHeader(Authorization, authorizeRequest.authHeader);
 req.send();
 alert(Response :+req.responseText);
 // should be 200
 //console.log(req.status);
 alert(Status :+req.status);
 // should look like:
 //
 oauth_token=HERE-IS-MY-AWESOME-TOKENoauth_token_secret=THIS-IS-MY-TOKEN-SECRET
 // user_id=007screen_name=JamesBondx_auth_expires=0
 //console.log(req.responseText);

 }

 /script
 /head

 body onLoad=ajaxrequest();

 /body
 /html

 On Sat, Dec 4, 2010 at 4:35 PM, Tom van der Woerdt i...@tvdw.eu wrote:



  You really shouldn't implement xAuth in JavaScript for obvious reasons,
  like how impossible it is to keep your keys secret.

  Tom

  On 12/4/10 6:19 AM, 

[twitter-dev] Re: Xauth 401 error....T^T by iOS

2010-12-13 Thread Bess
Your xAuth is not approved and activated yet - 401 error

On Dec 12, 6:59 pm, Mchello mchel...@gmail.com wrote:
 I use this source athttps://github.com/aral/XAuthTwitterEngine

 first..

 I register my App at dev.twitter.com

 and send message to a...@twitter.com .. about Xauth Key..

 and i get consumerKey and consumerSecret..

 I change consumerKey and consumerSecret line at XauthTwitterEngine

 I can get tokenString

 but.. i send twit message..

 i get 401 error..

 my id and password not wrong..

 everybody success use this source.. but i can't

 please send to me .. why 401 error..

 if you want my consumerKey and Secret .. I can..

 mche...@me.com == please ..

-- 
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 and Multiple Accounts on Mobile applications

2010-12-20 Thread Bess
The method you are using is called Pin-based OAuth, designed for
Desktop.

It's not ideal for mobile integration b/c it is cumbersome to ask
mobile user to copy and paste a pin from safari browser, then open app
2nd time to paste the pin in the right place in the app. Who would
want to take extra steps to authenticate such app on the go?

Plus your app would request user to enter multiple twitter accts to
request matching pin for each account. Think of how many steps the
same user have to do?

References:
http://apiwiki.twitter.com/w/page/22554643/Authentication

On Dec 20, 12:48 pm, Omar Gonzalez omarg.develo...@gmail.com wrote:
 I found this thread about OAuth and multiple 
 devices:http://groups.google.com/group/twitter-development-talk/browse_thread...

 All of the information in that thread makes sense to me.  I currently
 have a mobile application where I have successfully implemented an
 OAuth flow, I'm not quite sure what the official name is, so I will
 describe it.

 If the application does not have an OAuthToken the mobile browser is
 opened and the user is asked to log in to give the mobile application
 permission to access their account.  If the user agrees, they get a
 PIN number to enter into my mobile application.  Once the user enters
 the PIN, I request a token from Twitter, my app verifies the token
 access and retrieves the user's screen name.

 What I am not sure of is what is the intended way to handle mobile
 applications that post to multiple Twitter accounts?  Do I need
 messaging in my application to instruct the user to make sure they're
 logged out of their application so they can log in with another
 account and my application can request access that way?  That seems
 kind of clunky.  Is there another alternative where I can have the
 user enter their screen name and I can start an OAuth flow with that?

 Any help/guidance is appreciated.

 -omar

-- 
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: Need help to develop twitter application, Plz reply me

2010-12-20 Thread Bess
I am surprised that no one here to response you. May be you are asking
very basic info. You should go buy a Twitter developer book online
ebook or from a book store.

We are releasing a Twitter API Developer book but it is not available
yet til next year.

You'll need to use OAuth, not basic auth.

Twitter OAuth Library
http://dev.twitter.com/pages/oauth_libraries

Use consumer key and consumer secret from your app settings in your
OAuth lib.

Your Twitter API is limited by hour and no. of tweets.

On Dec 19, 11:28 pm, Roopesh Rai roopesh.ra...@gmail.com wrote:
 If anybody know solution to above question, Please reply me. I am very
 new to twitter application development I am confusing. I am
 trying, Googling... But, Result is nill...

 Thank U

 On Dec 15, 2:33 pm, Roopesh Rai roopesh.ra...@gmail.com wrote:

  Hi all,

    I am developing twitter application. In this application without
  browser user can use Twitter, I am providing user a interface to use
  twitter.

    I registered my application with twitter . By Oauth I am accessing
  twiiter. My doubts starts here

  1) In my application I need to develop such that any user can enter
  his user name and password, and he can enter to  twitter home page(In
  my application), But now I am not using any username and password,
  Directly using consumer key, consumer secret key, token key, token
  secret key, PIN I am entering to twitter home. how i can allow other
  users to use my application just by there user name and password 

  2) By using statuses/home_timeline.json, I am getting only 14
  timelines, How I can get all the timeline.

  Thank you for Your valuable reply.

  Regards,
  S.R Rai



-- 
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: Need help to develop twitter application, Plz reply me

2010-12-22 Thread Bess
Are you coding the Twitter app in Lua?

Not sure there is Lua OAuth Library to support Twitter API?

You need to be more specific in your app in order to get some more
help.

On Dec 21, 9:22 pm, roopesh rai roopesh.ra...@gmail.com wrote:
 It is in Lua

 On Tue, Dec 21, 2010 at 4:13 PM, Amine amine.benha...@gmail.com wrote:
  Hello Rai,

  To get a idea about Twitter Development, start by this :
 http://www.slideshare.net/raffikrikorian/intro-to-developing-for-twit...

  It will give an deep overview. Later go to this page :
 http://dev.twitter.com/doc.

  Are coding in which language ?

  On 21 déc, 07:16, Roopesh Rai roopesh.ra...@gmail.com wrote:
   Thank u for reply
   I am very new to this application, So not understanding basic concepts
   itself,
   can you suggest me any document to read, and having following info
      * how any user can login just by his username and password,how he
   will get authentication ???
      * how I can use this in my application, I mean design for login

    If anybody know answer and ready to share valuable time for sharing
   knowledge, plz suggest me

   regards,
   Rai

   On Dec 21, 9:24 am, Bess bess...@gmail.com wrote:

I am surprised that no one here to response you. May be you are asking
very basic info. You should go buy a Twitter developer book online
ebook or from a book store.

We are releasing a Twitter API Developer book but it is not available
yet til next year.

You'll need to use OAuth, not basic auth.

Twitter OAuth Libraryhttp://dev.twitter.com/pages/oauth_libraries

Use consumer key and consumer secret from your app settings in your
OAuth lib.

Your Twitter API is limited by hour and no. of tweets.

On Dec 19, 11:28 pm, Roopesh Rai roopesh.ra...@gmail.com wrote:

 If anybody know solution to above question, Please reply me. I am
  very
 new to twitter application development I am confusing. I am
 trying, Googling... But, Result is nill...

 Thank U

 On Dec 15, 2:33 pm, Roopesh Rai roopesh.ra...@gmail.com wrote:

  Hi all,

    I am developing twitter application. In this application without
  browser user can use Twitter, I am providing user a interface to
  use
  twitter.

    I registered my application with twitter . By Oauth I am
  accessing
  twiiter. My doubts starts here

  1) In my application I need to develop such that any user can enter
  his user name and password, and he can enter to  twitter home
  page(In
  my application), But now I am not using any username and password,
  Directly using consumer key, consumer secret key, token key, token
  secret key, PIN I am entering to twitter home. how i can allow
  other
  users to use my application just by there user name and password
  

  2) By using statuses/home_timeline.json, I am getting only 14
  timelines, How I can get all the timeline.

  Thank you for Your valuable reply.

  Regards,
  S.R Rai

  --
  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: Twitter's mobile oauth page waits 10 seconds before redirecting

2011-01-03 Thread Bess
Rusell,

Can you share how you confirm the mobile version use meta tag instead
of standard 302?

Is this something you could test on web browser?

On Dec 30 2010, 10:25 pm, Russell Davis russell.da...@gmail.com
wrote:
 The regular oauth page does a standard 302 redirect which happens
 immediately. For some reason, the mobile version instead uses a meta
 tag to the redirect, and it specifies a delay of 10 seconds. I can't
 be the only one who thinks this is a horrible user experience. Why the
 delay? Is there any way to change it?

 Thanks,
 Russell

-- 
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: Twitter's mobile oauth page waits 10 seconds before redirecting

2011-01-04 Thread Bess
Rusell,

Can you use tricks to alter Android browser meta tag on Android
Emulator? such as reducing the redirect time to see performance
differences?

What is the main reason why Twitter can't use the same standard 302
redirect on the mobile browser?

On Jan 3, 11:18 pm, Bess bess...@gmail.com wrote:
 Rusell,

 Can you share how you confirm the mobile version use meta tag instead
 of standard 302?

 Is this something you could test on web browser?

 On Dec 30 2010, 10:25 pm, Russell Davis russell.da...@gmail.com
 wrote:

  The regular oauth page does a standard 302 redirect which happens
  immediately. For some reason, the mobile version instead uses a meta
  tag to the redirect, and it specifies a delay of 10 seconds. I can't
  be the only one who thinks this is a horrible user experience. Why the
  delay? Is there any way to change it?

  Thanks,
  Russell

-- 
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: Twitter's mobile oauth page waits 10 seconds before redirecting

2011-01-04 Thread Bess
Hi Matt,

Could you also check why the standard 302 redirect not being used on
mobile browser?

I am guessing the 10 sec is just a rough guideline most web browser
vendors use to redirect if there is an error in displaying content.
Usu the workaround hack mobile developers use is to continue to check
status using a timer until Oauth is completed. This hack is on device
app, not server-side.

On Jan 4, 2:25 pm, Matt Harris thematthar...@twitter.com wrote:
 10 seconds does seem like a long time for this to be paused. I'm checking
 with the team why this value was chosen.

 Best
 @themattharris
 Developer Advocate, Twitterhttp://twitter.com/themattharris

 On Tue, Jan 4, 2011 at 11:59 AM, Bess bess...@gmail.com wrote:
  Rusell,

  Can you use tricks to alter Android browser meta tag on Android
  Emulator? such as reducing the redirect time to see performance
  differences?

  What is the main reason why Twitter can't use the same standard 302
  redirect on the mobile browser?

  On Jan 3, 11:18 pm, Bess bess...@gmail.com wrote:
   Rusell,

   Can you share how you confirm the mobile version use meta tag instead
   of standard 302?

   Is this something you could test on web browser?

   On Dec 30 2010, 10:25 pm, Russell Davis russell.da...@gmail.com
   wrote:

The regular oauth page does a standard 302 redirect which happens
immediately. For some reason, the mobile version instead uses a meta
tag to the redirect, and it specifies a delay of 10 seconds. I can't
be the only one who thinks this is a horrible user experience. Why the
delay? Is there any way to change it?

Thanks,
Russell

  --
  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: ~25% loss rate Streaming API vs. Search API

2011-01-07 Thread Bess
This is hard to believe. Streaming API is an approved API that should
not have any limit. It should give you everything without any limit.
On the other hand Search API has rate-limitation.

Did you use any filter?

On Jan 6, 9:42 pm, Brian Maso br...@blumenfeld-maso.com wrote:
 Hi All,

 Using the Streaming API, I'm noticing about a 25% loss rate when
 tracking multiple hashtags vs. using the good old Search API. I'm
 fouind it hard to believe this is true, so I tested over and over, but
 I keep getting the same results. The Streaming API just seems to not
 provide a fair number of tweets.

 Note that I have the lowest rate limit with the Streaming API --
 perhaps highest rate limits have lower loss rates.

 Has anyone else noticed the rate loss Streaming vs. Search API? Or am
 I on crack?

 Does the loss rate get lower with the higher Streaming API account
 limits?

 Brian Maso

-- 
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: ~25% loss rate Streaming API vs. Search API

2011-01-09 Thread Bess
Streaming API is build by Twitter while Search API is build by Startup
Summize acquired by Twitter. Search API is rate-limited.

If you just use Twitter search feature, you may see everything. Using
Search API to display API returned results is limited by your
developer API.

Streaming API may not show everything b/c it is optimized on the
content based on its logarithm.

On Jan 9, 2:29 pm, Brian Maso br...@blumenfeld-maso.com wrote:
 What I did is opened up three separate normal browser tabs in Firefox,
 each using the Twitter search web interface to search for three
 different hashtags (#ces, ces11, and nfl -- examples of three
 tags that should have decent ongoing traffic).

 At the same time I have an application capturing tweets from the same
 three hashtags using the streaming API (filter.json?
 q=#ces,#ces11,#nfl, with appropriate URL encoding).

 Irregardless of the amount of time, the streaming application captured
 about 25% fewer tweets. Detailed analysis of the tweet IDs captured by
 the browsers vs. those captured by the standalone application
 retrieving tweets via the streaming API verified that there were
 tweets delivered through the browsers that did not appear through the
 streaming API. There were no tweets delivered through the streaming
 API that did not also appear in the set of tweets delivewred through
 the browsers.

 I would love it if anyone else would try a similar experiment and
 report back results. Maybe I'm doing something wrong, or maybe this is
 an anomaly, or maybe the streaming API just doesn't capture as much --
 impossible for me to say.

 I note that the streaming API documentation doesn't claim an intent to
 match accuracy with the search API (nor vice versa). At this point I'm
 thinking to get the greatest accuracy I should be collecting tweets
 from *both* APIs.

 Brian Maso

 On Jan 7, 5:08 pm, Bess bess...@gmail.com wrote:

  This is hard to believe. Streaming API is an approved API that should
  not have any limit. It should give you everything without any limit.
  On the other hand Search API has rate-limitation.

  Did you use any filter?

  On Jan 6, 9:42 pm, Brian Maso br...@blumenfeld-maso.com wrote:

   Hi All,

   Using the Streaming API, I'm noticing about a 25% loss rate when
   tracking multiple hashtags vs. using the good old Search API. I'm
   fouind it hard to believe this is true, so I tested over and over, but
   I keep getting the same results. The Streaming API just seems to not
   provide a fair number of tweets.

   Note that I have the lowest rate limit with the Streaming API --
   perhaps highest rate limits have lower loss rates.

   Has anyone else noticed the rate loss Streaming vs. Search API? Or am
   I on crack?

   Does the loss rate get lower with the higher Streaming API account
   limits?

   Brian Maso



-- 
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: iPhone twitter client

2011-01-17 Thread Bess
Welcome to Twitter OAuth Camp for mobile.

I have written 4 chapters to explain how to integrate Twitter on iOS 
Android using OAuth library. I can't release the chapters now as our
publisher is reviewing the content and getting it ready to publish the
book in a short few months. The book will be released in early summer.
It contains very details step-to-step explanation, screen captures,
line by line coaching, code examples.

I think this is the greatest thing b/c these chapters will help me to
remember how to fight thru each step to get this to work.

I am teaching iOS class. I am planning to teach Twitter iOS class and
going to offer a class in a few weeks. The problem I have is I
couldn't find a venue. I couldn't find any ideal dates at Hackerdojo.
Plug N Play doesn't offer WiFi and/or available dates. Access Growth
doesn't offer the venue as I haven't shown enough muscle.

Any suggestions?

On Jan 16, 2:01 pm, Rob Wilson - SpikyOrange netp...@gmail.com
wrote:
 Hi,

 I'm planning on integrating with Twitter on the iPhone, I'm surprised
 that unlike Facebook, Twitter does not provide a standard Objective-C
 library, but I have found MGTwitterEngine.

 The problem is, the setup instructions are not that clear, then I
 found 'by accident' the Twitter-OAuth-iPhone project on GitHub, which
 seemed to at least bring up the Twitter authorisation page, but now
 fails with 401 errors and doesn't give me the opportunity to remove
 the token (hey, it's just a demo project, so I guess they don't handle
 it).

 The concern I have, is that when I registered my application, it
 wanted a callback URL, from what I understand I want the value OOB
 to be used, for our-of-band / Pin-code authorisation.  I tried
 entering OOB and then it complained that I must enter a valid URL.

 I then deleted the URL completely and then the application was
 accepted, but I don't know whether a blank / missing URL == OOB?

 When I try to edit the application, it doesn't give me the option to
 add a URL.

 So, when programming for an iPhone, do you enter 'Application', or
 'Web'.  If the latter, what URL should be entered and can you edit it
 afterwards?

 Does anyone have advice on setting up MGTwitterEngine, or Twitter-
 OAuth-iPhone?

 For something that 'sounds' simple, it has taken me over a day of
 playing to get nowhere productive.  However, I am new to iPhone
 develop, oAuth and the libraries mentioned above.

 I am planning on documenting what I learn on my blog afterwards, to
 help other iPhone developers.  Feel free to follow me on Twitter, as I
 disucss the progress on my podcast BitBanterPC.

 Many thanks to anyone who can answer those questions.

 Regards,
 Rob.

-- 
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: Use of OAuth in Xcode to use twitter API

2011-01-17 Thread Bess
You need to use OAuth library to store and pass OAuth Consumer Key 
Consumer Secret. Our book Twitter API on iOS SDK will be coming out in
a few months in summer. I am planning to teach Twitter iOS class soon
until I find a venue to support it.

On Jan 16, 10:06 pm, sangeeta katvate katsange...@gmail.com wrote:
 Hello,

 For using OAuth consumer key, consumer secret etc. do we have to use OAuth
 Library.
 If so, then from where can i get this library.

 From
 Sangeeta

-- 
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: iPhone twitter client

2011-01-19 Thread Bess
It's hard to trouble shoot with a single file. There are many pieces
and steps involved to get the entire work flow to work. I write close
to 30 pages not including screens to explain it in details.

On Jan 18, 9:03 pm, ronnocv ronnocv11223...@gmail.com wrote:
 I tried to make a twitter client i have an api with 2 files
 TwitterRequest.h and TwitterRequest.m
 here is the code for the .m file
 //
 //  TwitterRequest.m
 //  Chirpie
 //
 //  Created by Brandon Trebitowski on 6/15/09.
 //  Copyright 2009 __MyCompanyName__. All rights reserved.
 //

 #import TwitterRequest.h

 @implementation TwitterRequest

 @synthesize username;
 @synthesize password;
 @synthesize receivedData;
 @synthesize delegate;
 @synthesize callback;
 @synthesize errorCallback;

 -(void)friends_timeline:(id)requestDelegate requestSelector:
 (SEL)requestSelector{
         isPost = NO;
         // Set the delegate and selector
         self.delegate = requestDelegate;
         self.callback = requestSelector;
         // The URL of the Twitter Request we intend to send
         NSURL *url = [NSURL URLWithString:@http://api.twitter.com/1/statuses/
 update.xml];
         [self request:url];

 }

 -(void)statuses_update:(NSString *)status delegate:(id)requestDelegate
 requestSelector:(SEL)requestSelector; {
         isPost = YES;
         // Set the delegate and selector
         self.delegate = requestDelegate;
         self.callback = requestSelector;
         // The URL of the Twitter Request we intend to send
         NSURL *url = [NSURL URLWithString:@http://api.twitter.com/1/statuses/
 update.xml];
         requestBody = [NSString stringWithFormat:@status=%@,status];
         [self request:url];

 }

 -(void)request:(NSURL *) url {
         theRequest   = [[NSMutableURLRequest alloc] initWithURL:url];

         if(isPost) {
                 NSLog(@ispost);
                 [theRequest setHTTPMethod:@POST];
                 [theRequest setValue:@application/x-www-form-urlencoded
 forHTTPHeaderField:@Content-Type];
                 [theRequest setHTTPBody:[requestBody
 dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES]];
                 [theRequest setValue:[NSString 
 stringWithFormat:@%d,[requestBody
 length] ] forHTTPHeaderField:@Content-Length];
         }

         theConnection = [[NSURLConnection alloc] initWithRequest:theRequest
 delegate:self];

         if (theConnection) {
                 // Create the NSMutableData that will hold
                 // the received data
                 // receivedData is declared as a method instance elsewhere
                 receivedData=[[NSMutableData data] retain];
         } else {
                 // inform the user that the download could not be made
         }

 }

 - (void)connection:(NSURLConnection *)connection
 didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge
 *)challenge {
         //NSLog(@challenged %@,[challenge proposedCredential] );

         if ([challenge previousFailureCount] == 0) {
         NSURLCredential *newCredential;
         newCredential=[NSURLCredential credentialWithUser:[self
 username]
                                                  password:[self
 password]

 persistence:NSURLCredentialPersistenceNone];
         [[challenge sender] useCredential:newCredential
                forAuthenticationChallenge:challenge];

     } else {
         [[challenge sender] cancelAuthenticationChallenge:challenge];
         // inform the user that the user name and password
         // in the preferences are incorrect
                 NSLog(@Invalid Username or Password);
     }

 }

 - (void)connection:(NSURLConnection *)connection didReceiveResponse:
 (NSURLResponse *)response
 {
     // this method is called when the server has determined that it
     // has enough information to create the NSURLResponse

     // it can be called multiple times, for example in the case of a
     // redirect, so each time we reset the data.
     // receivedData is declared as a method instance elsewhere
     //[receivedData setLength:0];

 }

 - (void)connection:(NSURLConnection *)connection didReceiveData:
 (NSData *)data {
         //NSLog([[NSString alloc] initWithData:data
 encoding:NSUTF8StringEncoding]);
         // append the new data to the receivedData
     // receivedData is declared as a method instance elsewhere
     [receivedData appendData:data];

 }

 - (void)connection:(NSURLConnection *)connection
   didFailWithError:(NSError *)error
 {
     // release the connection, and the data object
     [connection release];
     // receivedData is declared as a method instance elsewhere
     [receivedData release];

         [theRequest release];

     // inform the user
     NSLog(@Connection failed! Error - %@ %@,
           [error localizedDescription],
           [[error userInfo] objectForKey:NSErrorFailingURLStringKey]);

         if(errorCallback) {
                 [delegate performSelector:errorCallback withObject:error];
         }

 }

 - 

[twitter-dev] Re: iPhone twitter client

2011-01-19 Thread Bess
I'd like to get feedback on possible webinar on iOS Twitter API.

Such as
- What are your pain points of integrating Twitter on iOS app?
- What are your main problems?
- What would you like to achieve using Twitter API on iOS app?

Can anyone suggest any good online webinar? learning platform?

On Jan 18, 9:03 pm, ronnocv ronnocv11223...@gmail.com wrote:
 I tried to make a twitter client i have an api with 2 files
 TwitterRequest.h and TwitterRequest.m
 here is the code for the .m file
 //
 //  TwitterRequest.m
 //  Chirpie
 //
 //  Created by Brandon Trebitowski on 6/15/09.
 //  Copyright 2009 __MyCompanyName__. All rights reserved.
 //

 #import TwitterRequest.h

 @implementation TwitterRequest

 @synthesize username;
 @synthesize password;
 @synthesize receivedData;
 @synthesize delegate;
 @synthesize callback;
 @synthesize errorCallback;

 -(void)friends_timeline:(id)requestDelegate requestSelector:
 (SEL)requestSelector{
         isPost = NO;
         // Set the delegate and selector
         self.delegate = requestDelegate;
         self.callback = requestSelector;
         // The URL of the Twitter Request we intend to send
         NSURL *url = [NSURL URLWithString:@http://api.twitter.com/1/statuses/
 update.xml];
         [self request:url];

 }

 -(void)statuses_update:(NSString *)status delegate:(id)requestDelegate
 requestSelector:(SEL)requestSelector; {
         isPost = YES;
         // Set the delegate and selector
         self.delegate = requestDelegate;
         self.callback = requestSelector;
         // The URL of the Twitter Request we intend to send
         NSURL *url = [NSURL URLWithString:@http://api.twitter.com/1/statuses/
 update.xml];
         requestBody = [NSString stringWithFormat:@status=%@,status];
         [self request:url];

 }

 -(void)request:(NSURL *) url {
         theRequest   = [[NSMutableURLRequest alloc] initWithURL:url];

         if(isPost) {
                 NSLog(@ispost);
                 [theRequest setHTTPMethod:@POST];
                 [theRequest setValue:@application/x-www-form-urlencoded
 forHTTPHeaderField:@Content-Type];
                 [theRequest setHTTPBody:[requestBody
 dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES]];
                 [theRequest setValue:[NSString 
 stringWithFormat:@%d,[requestBody
 length] ] forHTTPHeaderField:@Content-Length];
         }

         theConnection = [[NSURLConnection alloc] initWithRequest:theRequest
 delegate:self];

         if (theConnection) {
                 // Create the NSMutableData that will hold
                 // the received data
                 // receivedData is declared as a method instance elsewhere
                 receivedData=[[NSMutableData data] retain];
         } else {
                 // inform the user that the download could not be made
         }

 }

 - (void)connection:(NSURLConnection *)connection
 didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge
 *)challenge {
         //NSLog(@challenged %@,[challenge proposedCredential] );

         if ([challenge previousFailureCount] == 0) {
         NSURLCredential *newCredential;
         newCredential=[NSURLCredential credentialWithUser:[self
 username]
                                                  password:[self
 password]

 persistence:NSURLCredentialPersistenceNone];
         [[challenge sender] useCredential:newCredential
                forAuthenticationChallenge:challenge];

     } else {
         [[challenge sender] cancelAuthenticationChallenge:challenge];
         // inform the user that the user name and password
         // in the preferences are incorrect
                 NSLog(@Invalid Username or Password);
     }

 }

 - (void)connection:(NSURLConnection *)connection didReceiveResponse:
 (NSURLResponse *)response
 {
     // this method is called when the server has determined that it
     // has enough information to create the NSURLResponse

     // it can be called multiple times, for example in the case of a
     // redirect, so each time we reset the data.
     // receivedData is declared as a method instance elsewhere
     //[receivedData setLength:0];

 }

 - (void)connection:(NSURLConnection *)connection didReceiveData:
 (NSData *)data {
         //NSLog([[NSString alloc] initWithData:data
 encoding:NSUTF8StringEncoding]);
         // append the new data to the receivedData
     // receivedData is declared as a method instance elsewhere
     [receivedData appendData:data];

 }

 - (void)connection:(NSURLConnection *)connection
   didFailWithError:(NSError *)error
 {
     // release the connection, and the data object
     [connection release];
     // receivedData is declared as a method instance elsewhere
     [receivedData release];

         [theRequest release];

     // inform the user
     NSLog(@Connection failed! Error - %@ %@,
           [error localizedDescription],
           [[error userInfo] objectForKey:NSErrorFailingURLStringKey]);

         if(errorCallback) {

[twitter-dev] Re: Use of OAuth in Xcode to use twitter API

2011-01-19 Thread Bess
Our publisher is Pearson under Sams Teach Yourself Twitter API in 24
Hours. I'll look into how to create webcast. Do you suggest any tool?

On Jan 19, 1:32 pm, Rob Wilson netp...@gmail.com wrote:
 Hi Sangeeta,

 I'm really needing this information now - I don't suppose there's an early
 release scheme with your publisher (like Manning MEAP?).

 If not, do you have any blogs to assist?

 Good luck on the book.

 Rob.

 On 18 January 2011 02:12, Bess bess...@gmail.com wrote:



  You need to use OAuth library to store and pass OAuth Consumer Key 
  Consumer Secret. Our book Twitter API on iOS SDK will be coming out in
  a few months in summer. I am planning to teach Twitter iOS class soon
  until I find a venue to support it.

  On Jan 16, 10:06 pm, sangeeta katvate katsange...@gmail.com wrote:
   Hello,

   For using OAuth consumer key, consumer secret etc. do we have to use
  OAuth
   Library.
   If so, then from where can i get this library.

   From
   Sangeeta

  --
  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

 --

 Please visit...

 SpikyOrange.co.uk http://spikyorange.co.uk/ A portal for anything I
 create, including...

 BitBanter.com http://bitbanter.com/ A technical podcast 50% Tech + 50%
 software development = 100% Entertaining!

 http://spikyorange.co.uk/

-- 
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: Twitter in Android Scribe

2011-01-19 Thread Bess
Why don't you use a Twitter OAuth Java library who has been proven to
work on Android?

On Jan 19, 8:55 am, Sergey Okhotny okho...@gmail.com wrote:
 Update:
 Why if I callhttps://api.twitter.com/oauth/request_tokentwice on second
 time i get empty response?

-- 
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: Blackberry Twitter Client

2011-01-19 Thread Bess
There is ONLY ONE Twitter OAuth J2ME lib that work on BlackBerry SDK
5. I was about to cover the Blackberry Twitter integration for the
developer book but I am restricted to limit the chapters and page
sizes to only iOS and Android.

On Jan 19, 3:06 pm, Himanshu himso...@gmail.com wrote:
 Please suggest me tutorials, reading material or forums to getting
 started with developing a Blackberry Twitter Client.

 Thnx in advance.

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


[twitter-dev] Re: Blackberry Twitter Client

2011-01-21 Thread Bess
You need a Twitter OAuth J2ME Java library to make Twitter API call.

On Jan 20, 4:05 pm, Himanshu himso...@gmail.com wrote:
 Bess, How about Blackberry Webworks? Cant it be used to make call to
 twitter API.?

 On Jan 19, 8:41 pm, Bess bess...@gmail.com wrote:

  There is ONLY ONE Twitter OAuth J2ME lib that work on BlackBerry SDK
  5. I was about to cover the Blackberry Twitter integration for the
  developer book but I am restricted to limit the chapters and page
  sizes to only iOS and Android.

  On Jan 19, 3:06 pm, Himanshu himso...@gmail.com wrote: Please suggest me 
  tutorials, reading material or forums to getting
   started with developing a Blackberry Twitter Client.

   Thnx in advance.



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


[twitter-dev] Re: Twitter integration for IPhone App

2011-03-03 Thread Bess
No Official Twitter iOS SDK.

You want better user experience on iOS app use xAuth. I will be
releasing book chapter on iOS app soon with code example.

On Mar 1, 4:56 am, Battan Amit batta...@gmail.com wrote:
 Hi

 I am working on a iphone application in which I will integrate the twitter
 I have questions

    - What is different between oAuth and xAuth? Which one should I use?
    - I want when I login into my application then user's twitter account
    automatically logged in if he/she provide the authentic detail already. Is
    it possible, if then using oAuth or xAuth?
    - Is any twitter official iOS sdk for twitter, like MGTwitterEngine, if
    it then please provide the source if it is free?

 Thanks
 Amit

-- 
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: Twitter Error While Authenticating ..IPhone Application

2011-03-04 Thread Bess
Huh...

Why it is such a mystery on xAuth. It should be very clear how oAuth 
xAuth work. You need to explain well about your app before you can
apply and get your xAuth approve.

On Mar 2, 8:44 pm, Battan Amit batta...@gmail.com wrote:
 for xAuth I think we have to give the itune URL and other detail of
 application
 As my application is in developing stage ... So How I will get it.

 OR

 And for now how I am using oAuth in MGTwitterEngine

 
 AB

 On 2 March 2011 17:19, Rich rhyl...@gmail.com wrote:

  Have you applied for xAuth access, oAuth is enabled for clients by
  default but xAuth you have to apply for.

  On Mar 1, 12:53 pm, Battan Ror batta...@gmail.com wrote:
   Hi

   I am using MGTwitterEngine in Iphone application

   But I am getting error in log of function
   - (void)requestFailed:(NSString *)connectionIdentifier withError:
   (NSError *)error
   {
       NSLog(@Twitter Request failed for connectionIdentifier = %@,
   error = %@ (%@),
             connectionIdentifier,
             [error localizedDescription],
             [error userInfo]);

   }

   Error Log

   Twitter Request failed for connectionIdentifier =
   8E192CD3-35E5-46C8-86E9-1EADEE38B6E8, error = The operation couldn’t
   be completed. (HTTP error 401.) ({
       body = ?xml version=\1.0\ encoding=\UTF-8\?\nhash\n
   request/oauth/access_token/request\n  errorClient application is
   not permitted to use xAuth./error\n/hash\n;
       response = NSHTTPURLResponse: 0x603b6a0;

   })

   following code in controller class
   -(IBAction)twitterBtnAct:(id)sender{
       // Put your Twitter username and password here:
       NSString *username = @myusername;
       NSString *password = @mypassword;

       NSString *consumerKey = @b2jD5AXJewSNfmCBfzvlw;
       NSString *consumerSecret =
   @ceqEECJalqtVUnxl8sNQxrh5dXGUvo9cg4HxKNn6g;

       // Most API calls require a name and password to be set...
       if (! username || ! password || !consumerKey || !consumerSecret) {
           NSLog(@You forgot to specify your username/password/key/
   secret in AppController.m, things might not work!);
                   NSLog(@And if things are mysteriously working without
  the username/
   password, it's because NSURLConnection is using a session cookie from
   another connection.);
       }

       // Create a TwitterEngine and set our login details.
       twitterEngine = [[MGTwitterEngine alloc] initWithDelegate:self];
       [twitterEngine setUsesSecureConnection:NO];
       [twitterEngine setConsumerKey:consumerKey secret:consumerSecret];
       // This has been undepreciated for the purposes of dealing with
   Lists.
       // At present the list API calls require you to specify a user
   that owns the list.
       [twitterEngine setUsername:username];

       [twitterEngine getXAuthAccessTokenForUsername:username
   password:password];

   }

   #pragma mark Twitter methods
   #pragma mark MGTwitterEngineDelegate methods
   - (void)accessTokenReceived:(OAToken *)aToken forRequest:(NSString
   *)connectionIdentifier
   {
       NSLog(@Twitter Access token received! %@,aToken);
       token = [aToken retain];
       [self runTests];

   }

   - (void)requestSucceeded:(NSString *)connectionIdentifier
   {
       NSLog(@Twitter Request succeeded for connectionIdentifier = %@,
   connectionIdentifier);

   }

   - (void)statusesReceived:(NSArray *)statuses forRequest:(NSString
   *)connectionIdentifier
   {
       NSLog(@Twitter Got statuses for %@:\r%@, connectionIdentifier,
   statuses);

   }

   - (void)directMessagesReceived:(NSArray *)messages forRequest:
   (NSString *)connectionIdentifier
   {
       NSLog(@Twitter Got direct messages for %@:\r%@,
   connectionIdentifier, messages);

   }

   - (void)userInfoReceived:(NSArray *)userInfo forRequest:(NSString
   *)connectionIdentifier
   {
       NSLog(@Twitter Got user info for %@:\r%@, connectionIdentifier,
   userInfo);

   }

  --
  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: beginner help needed with oAuth and xAuth

2011-03-05 Thread Bess
I search the blog post. Find no results on xAuth keyword.

Our developer book on Twitter API is coming out soon. It should help
out a great deal for beginners. At least on the mobile section I'll
cover the xAuth.

On Mar 5, 10:00 am, brian br...@corahost.info wrote:
 http://jaanus.com/post/1451098316/understanding-the-guts-of-twit

 On Sat, Mar 5, 2011 at 2:33 AM, Amrit bunkde...@gmail.com wrote:
  Hello everyone here in talks. I want to create signing url without
  using any library or api. I tried a lot according to
 http://dev.twitter.com/pages/auth
  website but I couldnot success. Can I get any nice tutorial regarding
  signing url for twitter?

  Thanks

  --
  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: IPhone + Twitter + LinkedIn Error : Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

2011-03-11 Thread Bess
First of all it is difficult to identify errors esp you don't have the
source code. However the stockoverflow discussion was good enough to
point out the general problems.

ld: duplicate symbol _EstimateBas64EncodedDataSize in /Users/pratgupta/
Desktop/Settinglinkedin/10_mar_butterfli/LinkedInClientLibrary/build/
Debug-iphonesimulator/libLinkedInClientLibrary.a(Base64Transcoder.o)
and /Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/Twitter
+OAuth/Libraries  Headers/libOAuth.a(Base64Transcoder.o)

Problem is: duplicate symbol

It occurs on _EstimateBas64EncodedDataSize from LinkedinClientLibrary
in libLinkedInClientLibrary.a(Base64Transcoder.o) and Twitter+OAuth in
libOAuth.a(Base64Transcoder.o).

Note: LinkedIn library and Ben Gottlieb's Twitter client include the
same OAuthConsumer code. It is duplicated. libLinkedInClientLibrary
and libOAuth both symbolicate the same method
'_EstimateBas64EncodedDataSize'. Check your #imports.

Just do a search within your Xcode project on
_EstimateBas64EncodedDataSize. Find out where the duplicated methods.
Determine which one you should remove.

On Mar 11, 4:56 am, Battan Ror batta...@gmail.com wrote:
 HI All

 I am using MGTwitterEngine oAuth and LinkedIn iOS sdk in my Iphone
 application with facebook-ios-sdk

 TwitterEngine :https://github.com/bengottlieb/Twitter-OAuth-iPhone

 LinkedInIphone :https://github.com/ResultsDirect/LinkedIn-iPhone

 Both integrated well separately, But when I have used both in
 application then error coming

 FB + Twitter = working well
 FB + LinkedIn = Working Well
 FB + Twitter + LinkedIn = Not Working

 and giving error

 Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/
 bin/gcc-4.2 failed with exit code 1

 Please help me where I am wrong.

 Error Transcript Text File

 Build butterfli of project butterfli with configuration Debug

 Ld build/Debug-iphonesimulator/butterfli.app/butterfli normal i386
 cd /Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli
 setenv MACOSX_DEPLOYMENT_TARGET 10.6
 setenv PATH /Developer/Platforms/iPhoneSimulator.platform/Developer/
 usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin
 /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/
 gcc-4.2 -arch i386 -isysroot /Developer/Platforms/
 iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk -L/
 Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/build/Debug-
 iphonesimulator -L/Users/pratgupta/Desktop/Settinglinkedin/
 10_mar_butterfli/Twitter+OAuth/Libraries  Headers -F/Users/pratgupta/
 Desktop/Settinglinkedin/10_mar_butterfli/build/Debug-iphonesimulator -
 filelist /Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/
 build/butterfli.build/Debug-iphonesimulator/butterfli.build/Objects-
 normal/i386/butterfli.LinkFileList -mmacosx-version-min=10.6 -all_load
 -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework
 UIKit -framework CoreGraphics -lOAuth -lxml2 /Users/pratgupta/Desktop/
 Settinglinkedin/10_mar_butterfli/LinkedInClientLibrary/build/Debug-
 iphonesimulator/libLinkedInClientLibrary.a -o /Users/pratgupta/Desktop/
 Settinglinkedin/10_mar_butterfli/build/Debug-iphonesimulator/
 butterfli.app/butterfli

 ld: duplicate symbol _EstimateBas64EncodedDataSize in /Users/pratgupta/
 Desktop/Settinglinkedin/10_mar_butterfli/LinkedInClientLibrary/build/
 Debug-iphonesimulator/libLinkedInClientLibrary.a(Base64Transcoder.o)
 and /Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/Twitter
 +OAuth/Libraries  Headers/libOAuth.a(Base64Transcoder.o)
 collect2: ld returned 1 exit status
 Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/
 bin/gcc-4.2 failed with exit code 1

 Some discussion on the Issue herehttp://stackoverflow.com/questions/5259747

 Amit Battan

-- 
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: web app with mobile clients

2011-03-11 Thread Bess
Can't help much b/c I don't understand what you are trying to do.

On Mar 11, 4:57 am, Eric Ertl e...@beapp.net wrote:
 Hi. I'm creating mobile clients (Android - iPhone) for a website which
 uses a twitter application configured as Web.
 Mobile applications require twitter applications configured as client,
 disconnecting the mobile apps users with the website. Is there a
 workaround?
 Does anyone dealt with this before? Is there a way to use the twitter
 application configured as Web from the mobile clients?

 Thanks in advance

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


[twitter-dev] Re: Please hire a developer relations manager

2011-03-14 Thread Bess
This is interesting. I don't see this is a threat suggestion for any
replacement @Twitter. In fact Twitter is growing to the size where
Twitter should consider having an official Developer Relations
Manager. Facebook lost one and found a new hire. Google lost one and
is hiring a new one. I have served at least 2 different official
advisory boards of developers for the biggest companies. I have
informally given advisory input for other big companies. Facebook does
this privately by inviting selective groups of developers from time to
time to evaluate their API before public release. Microsoft also does
this kind of things with their MSFT Certified Golden partners. The
companies I served directly will call advisory board on quarterly
basis to present us with rough drafts and product road map to ask for
candid input. It turns out to be very helpful to get insights from
active developers. It was amazing that the company executives would
listen in to these communications to understand the community.

Google is hiring crazy to expand Developer Relation team size to
support global reach. ROI must be very good before Google could
justify the head counts and investment. You can see how quickly Google
sold out their Google I/O conference in less than an hour. Given 75%
Twitter traffic are coming from API, it makes sense on the business
side that Twitter continues to support traffic growth without adding
business costs or increase burn rate.

Most likely Twitter stock would trade lower in secondary market or
investors would lower the company evaluation if Twitter couldn't
maintain the growth rate at par with Facebook. These days developer
community is a true commodities for currencies. The mobile app store
war battles for developers' love is a good example.

4/15/2010
Twitter Reveals: 75% of all their traffic comes from their API
http://blog.programmableweb.com/2010/04/15/twitter-reveals-75-of-our-traffic-is-via-api-3-billion-calls-per-day/

9/10/2007
API has 10x the traffic of the website and that of all that’s happened
with Twitter in the past year that “the amount of activity around the
API has been the most surprising experience”
http://blog.programmableweb.com/2007/09/10/twitter-api-traffic-is-10x-twitters-site/

On Mar 14, 8:48 am, Adam Green 140...@gmail.com wrote:
 I've been getting emails saying that this message was a request to replace
 Ryan. That was not my intent. I am suggesting that he be given someone to
 help with developer communications. His job title implies that he does much
 beside sending out these cheery notes to developers. He should have a
 full-time person to do this and much else to improve developer relations
 instead.

 If this was seen as an attack on Ryan, I apologize. I recognize the irony of
 my critique of his message as an attack on us being seen as an attack on
 him. It was meant to be a suggestion for a better way to work together.



 On Mon, Mar 14, 2011 at 9:44 AM, Adam Green 140...@gmail.com wrote:
  First of all, I honestly believe that Twitter HQ values developers and
  appreciates their contribution. That is why I decided to devote myself
  to this area a couple of years ago. I was amazed that when a dev
  reported a problem the engineer responsible replied here and tried to
  solve it. That is better than any big product I know of today. That is
  why you have so many developers putting in all this work.

  I also believe that the last few announcements from Ryan and others
  have been the worst examples of third party developer management I
  have seen in 30 years in this business. I can see what Ryan wanted to
  accomplish in his latest message. He wanted to provide guidance. He
  ended up telling us that Twitter no longer wanted anyone to build
  clients, didn't explain clearly what a client meant to him, and
  pointed out that hundreds of apps that fail to meet his undefined
  high bar were cut off every week. Not good. Sorry, Ryan. You are
  right. You are not good at communicating with third party developers.
  At least not in written form. You look like a very cool guy with a lot
  of personal charm. Maybe it works better in person. You should spend
  some time talking directly to developers in small groups. It might
  help you develop some canned responses that work.

  Here is a simple way this could have been prevented. If you had a
  developer relations person with experience and skills in dealing with
  third party developers, who have completely different motivations from
  in-house coders, he or she could have quietly passed around a draft of
  what you wanted to say. This would have gotten very strong negative
  reactions. You would have been able to reformulate it to strip out the
  implied threats and turn it into a positive roadmap. It could have
  been framed as Here are some areas we promise to leave open for
  developers. If you work here, we will give you all kinds of extra
  support and promotion.

  Here is another simple way this could have been 

[twitter-dev] Re: User Mentions in Twitter iPhone client

2011-03-20 Thread Bess
Mention is under REST API Timeline API
http://dev.twitter.com/doc/get/statuses/mentions

You can implement Mention as long as you have the Objective-C Twitter
Library that support Mention. If not you would have to write your own
Objective-C implementation.

###
Returns the 20 most recent mentions (status containing @username) for
the authenticating user.The timeline returned is the equivalent of the
one seen when you view your mentions on twitter.com.This method is can
only return up to 800 statuses. If include_rts is set only 800
statuses, including retweets if they exist, can be returned.This
method will not include retweets in the XML and JSON responses unless
the include_rts parameter is set.The RSS and Atom responses will
always include retweets as statuses prefixed with RT.

URL
http://api.twitter.com/version/statuses/mentions.format
Supported formats
json, xml, rss, atom
Supported request methods
GET
Requires Authentication

On Mar 20, 4:56 am, Jimbo jimbomorri...@gmail.com wrote:
 Hi,

 How are 'mentions' of a user you're following implemented in the
 twitter iPhone app?

 Is this done with the Search API or is there an endpoint missing from
 the docs?

 Thanks,

 J.

-- 
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: In search of an honest developer who might be able to help me manifest my ideas

2011-03-21 Thread Bess
I think it is a great idea. It's just another data visualization on
Twitter using 2D animation. I like Justin Bieber as an artist. He has
8M twitter followers.

On Mar 21, 6:37 am, Chase Armbrust chase.armbr...@gmail.com wrote:
 But would prefer to speak via direct email rather than in a forum.

 Basically, I would like to create an application that adds RPG
 elements (leveling up, accomplishments, avatar-personalization) to the
 twitter experience.

 An example, hopefully enough to form the idea in the readers head.

 User opens the app, fills out twitter info, and then sees an egg. With
 his/her first tweet a baby bird (sticking with twitter's theme) breaks
 free of the egg. After acquiring your first follower you are allowed
 to leave the nest. Later in game, if user is retweeted by justin
 bieber at some point while he/she is playing the game, his/her bird
 avatar can now be customized with justin bieber hair. If he/she gets x
 number of followers, her baby bird evolves into a more mature and
 cooler looking (customizable?) bird. Lots of possibilities.

 Hate justin bieber? I am not a fan either, but this app would target
 the largest audience possible.

 Please email at cwil...@umich.edu if you think you can help. Or if you
 can point me to someone who might be able to help i would also greatly
 appreciate it.

 Best
 - Chase

-- 
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: Quick question on iPhone tweets

2011-04-07 Thread Bess
Are you serious? Mobile OAuth is broken for 3 wk long?

Is this relating to Twitter Data Center move?

On Apr 6, 10:42 pm, @IDisposable idisposa...@gmail.com wrote:
  There's actually a much easier way for you to implement the simple ability
  to Tweet from your application without having to code up the OAuth song 
  dance or xAuth, but the frictionless approach comes with the downside of
  less control, attribution, and feedback.

 I second this recommendation, especially as twitter has left us
 stranded for going on three weeks now with the OAuth dance being
 broken.

-- 
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: Quick question on iPhone tweets

2011-04-07 Thread Bess
Taylor,

Do you have screens showing the work flow how this Web Intents work on
UIWebView?

Or any working iOS  Android codes we can use as references?

On Apr 5, 10:25 am, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 Hi Vince,

 There's actually a much easier way for you to implement the simple ability
 to Tweet from your application without having to code up the OAuth song 
 dance or xAuth, but the frictionless approach comes with the downside of
 less control, attribution, and feedback.

 Web Intents (http://dev.twitter.com/pages/intents) has a Tweet Intent
 where you would just direct the user tohttp://twitter.com/intent/tweet--
  if your webview was aware of the current user's twitter.com session,
 authentication would already be handled -- otherwise the user would quickly
 log in and have the ability to Tweet. You can prepare a message, make the
 tweet a reply, use a retweet instead, and a few other options.

 @episod http://twitter.com/episod - Taylor Singletary

 On Tue, Apr 5, 2011 at 10:05 AM, Vince svguer...@gmail.com wrote:
  I've been doing some research on this, and just wanted to confirm that
  this is what needs to happen in order to develop an iPhone app that
  has a page which allows a user to simply login to Twitter, then tweet
  a quick message to their wall (no other Twitter functionality is
  needed, this is a very small feature of a large application).  This
  may be as simple as a yes or no question, but I just wanted to
  confirm before I say this needs to happen, to this client:

  1) Client must create Twitter account and then create/register an app
  2) Client must send me, the developer, the Consumer Key/Secret
  3) Client must send an email to a...@twitter.com to get approval for
  the app to use XAuth
  4) Once approved, then I can develop against that app to authorize
  and allow users to share to their wall

  Is there an easier way to go about this functionality, or is this the
  path that must be taken?  Either way is fine, just wanted to make
  sure.  Thanks for any help with this, as I am very new to using the
  Twitter API.

  -Vince

  --
  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: Mobile Development

2011-04-07 Thread Bess
You can't use Basic Auth to store username  pwd on device for Twitter
auth. This is banned by Twitter.

Use OAuth or xAuth. You set the callback URL on your twitter app.

On Apr 7, 9:39 am, abhishek nalwaya nalwayaabhis...@gmail.com wrote:
 Hi

 I want to create a mobile native application. I can't redirect to twitter
 site for authentication.
 How can i do authentication without redirect? I can pass username and
 password from my application

 Thanks in advance.

 Cheers
 Abhishek Nalwayahttp://itsallaboutruby.blogspot.com/

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


[twitter-dev] xAuth

2011-04-23 Thread Bess
Hi Twitter API

How can I request to extend my xAuth?

I believe my xAuth has been expired for the app. I applied xAuth for
preparing the Twitter developer book last year. It was approved for a
few months. Now my xAuth app doesn't work any more. xAuth may be
expired and shut down.

Now the publisher has delayed the editing process. I need to gain
xAuth access in order to update and demo the app.

What could I do now?

Thanks

-- 
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: Follow action doesn't work

2011-05-02 Thread Bess
http://apiwiki.twitter.com/w/page/22554652/HTTP-Response-Codes-and-Errors
401 Unauthorized: Authentication credentials were missing or
incorrect.

Possible that your xAuth has been rejected?

On Apr 28, 1:36 am, Matt Wang ma...@theappbusiness.com wrote:
 Dear Sir or Madam,

 I am programming for Number 10 iphone application.Currently,this
 application has xAuth access and can post information via twitter.

 However, when I try to call [twitterEngine
 enableUpdatesFor:@follower] for adding a follower. it will return a
 401 error.

 here is my code:

 - (void)accessTokenReceived:(OAToken *)token forRequest:(NSString
 *)connectionIdentifier {

         [self.twitterEngine setAccessToken:token];

 }

 - (void)requestSucceeded:(NSString *)requestIdentifier{

         switch (stage) {
                 case postLogin:

                         stage = loginCorrect;
                         break;
                 case loginCorrect:

                         if (twitterAction == follow) {
                                 NSString *follower = [NSString 
 stringWithFormat:@Number10gov];
                                 NSLog(@Try to Follow %@,follower);
                                 NSLog(@enableUpdatesFor: 
 connectionIdentifier = %@,
 [twitterEngine enableUpdatesFor:follower]);

                         } else if (twitterAction == retweet || twitterAction 
 == tweet) {
 ...
 //

 post and retweet work well. but follow action didn't work. could you
 help me to point out what is the problem?

 if you can give me a example code to show how to do follow action in
 xAuth, that would be great.

 Many Thanks for your help.

 I am looking forward to your reply.

 Many thanks.

-- 
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: New oAuth Authenticate Page

2011-05-02 Thread Bess
I'd like to confirm the all the developers here on this mailing list.
Does the new OAuth redesign page prevent you from using OAuth in a new
popup window?

This OAuth hack is officially not going to work going forward?

Hi Tom van der Woerdt,

Your recommend using the workaround launching OAuth in a safari
browser outside the app? Your suggested approach will require user to
quit and exit app and authenticate with OAuth using device mobile
browser. Then ask user to go back to the app again. Is this the only
working solution?

On Apr 30, 9:09 am, Tom van der Woerdt i...@tvdw.eu wrote:
 I've heard this before.

 It sounds like all UIWebView, WebBrowser and probably Android's WebView
 are blocked. This is definitely a *good* thing for security reasons.

 The workaround I recommend: launch the actual browser, using a
 yourapp:// link (something like myapplication://tokenDone) as the
 return URL. This is a LOT safer for the users.

 Tom

 On 4/30/11 8:55 AM, Bob12345 wrote:

  I'm having this problem too. My login browser inside the phone app is
  now rendered useless, it doesn't even scroll.

  On Apr 28, 1:41 pm, Shannon Whitleyshannon.whit...@gmail.com  wrote:
  I was surprised to see a newly formatted oAuth Authenticate Page.  The
  new page doesn't account for the scores of oAuth implementations that
  popup a new window.

  There is an ad-hoc standard for the window height and width that makes
  for a decent user experience.  The new format will cause issues for
  the user since it results in page scrolling.

  Can we discuss this new page format and determine if it can be changed
  or if we can have alternate formats?

-- 
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: New oAuth Authenticate Page

2011-05-04 Thread Bess
You have to implement your own Twitter logout feature within the app.
I don't think Twitter API will help you. You can consider removing the
OAuth token so it won't be valid any more.

On May 3, 2:00 am, Varun Airon airon.m...@gmail.com wrote:
 Hi Guys,

 I am using Twitter OAuth authentication on Android and it shows a new popup
 window.

 Guys I am facing one Issue using Twitter OAuth authentication. Once logged
 in, I am not able to log out from my twitter account. I am using Signpost
 api. I am using oauth/authorize still not able to enter my another
 credentials.

 Is there any way to get logout from Twitter ??

 Any Help would be appreciated.

 Thanks,

 On Tue, May 3, 2011 at 2:22 PM, Tom van der Woerdt i...@tvdw.eu wrote:

  I don't know whether it's the only working solution, but it is the only
  proper OAuth procedure and as far as I'm aware, also the recommended one.

  Tom

  On 5/3/11 4:50 AM, Bess wrote:

  I'd like to confirm the all the developers here on this mailing list.
  Does the new OAuth redesign page prevent you from using OAuth in a new
  popup window?

  This OAuth hack is officially not going to work going forward?

  Hi Tom van der Woerdt,

  Your recommend using the workaround launching OAuth in a safari
  browser outside the app? Your suggested approach will require user to
  quit and exit app and authenticate with OAuth using device mobile
  browser. Then ask user to go back to the app again. Is this the only
  working solution?

  On Apr 30, 9:09 am, Tom van der Woerdti...@tvdw.eu  wrote:

  I've heard this before.

  It sounds like all UIWebView, WebBrowser and probably Android's WebView
  are blocked. This is definitely a *good* thing for security reasons.

  The workaround I recommend: launch the actual browser, using a
  yourapp:// link (something like myapplication://tokenDone) as the
  return URL. This is a LOT safer for the users.

  Tom

  On 4/30/11 8:55 AM, Bob12345 wrote:

   I'm having this problem too. My login browser inside the phone app is
  now rendered useless, it doesn't even scroll.
  On Apr 28, 1:41 pm, Shannon Whitleyshannon.whit...@gmail.com
   wrote:

  I was surprised to see a newly formatted oAuth Authenticate Page.  The
  new page doesn't account for the scores of oAuth implementations that
  popup a new window.
  There is an ad-hoc standard for the window height and width that makes
  for a decent user experience.  The new format will cause issues for
  the user since it results in page scrolling.
  Can we discuss this new page format and determine if it can be changed
  or if we can have alternate formats?

  --
  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: What's the best practices when creating a mobile app as an extension to a web app in regards to oauth?

2011-05-05 Thread Bess
Hi Brian,

Could you explain and clarify the policy on web/mobile?

Use case:
Build iOS app first. Depot to Android. Add web app after both iOS and
Android app are released

How many Twitter apps do I have to create? Can I keep them the same
name for the same startup?

On May 5, 11:45 am, Brian Sutorius bsutor...@twitter.com wrote:
 We recommend separate application registrations for each platform
 (http://support.twitter.com/articles/79901) and this is the approach
 we take (web, Twitter for iPhone, Twitter for Android, and so on). You
 may not use the exact same name across multiple applications, however.

 Brian Sutorius
 Twitter API Policy

 On May 5, 9:01 am, YCBM youcannotb...@gmail.com wrote:

  Hi All,

  When an existing web app that is setup and registered on Twitter
  decides to launch a mobile extension, what are the best practices
  involved here with oauth?

  Are there may be benefits of registering a new app on Twitter with all
  new API key  Consumer Secret/Key than what you are using for the web
  app?  Does it provide any more security in any way to have both the
  web app and mobile app using separate keys?

  If so, can you register a mobile app with the same name as one that
  exists (assuming you own both)?  We'd like the source name of status
  updates to come from the same name as our web app/brand if possible.
  That may not be possible, not sure.

  Any guidance is greatly appreciated.

  Best,
  YCB

-- 
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: window.open() and OAuth

2011-05-06 Thread Bess
Hi Ben,

Could you confirm this popup window resizing issue is only relating to
Win7 only?

On May 6, 2:01 pm, Ben Ward benw...@twitter.com wrote:
 Hi Corey,

 Thanks for your feedback.

 On May 5, 2011, at 8:15 AM, Corey Ballou wrote:

  Your new OAuth authentication handler does a check to determine if the
  window has been opened in a new window and triggers a resize.

  I'll preface this message by saying that I have a high res monitor at
  1920x1600. I currently have handling to center the window. Your new
  JavaScript is essentially resizing the window outside of the viewport,
  giving no consideration to the end user's window height or current
  window position.

  Is this something that can be resolved? It's kind of a nuisance. I'll
  repost in the tracker.

 The auto-resize is not something I'm a massive fan of either, but we 
 implemented it after the redesign because we found that whilst a lot of OAuth 
 implementations are using pop-ups of a fixed sized, a great number of them 
 are also invoking those pop-ups with scrollbars disabled at the window level, 
 which makes important parts of the interface impossible for users to access.

 Alas, though I appreciate that centering the window is aesthetically 
 desirable, content hidden through disabled scrollbars was a bigger problem, 
 so it's been patched for now.

 I emphasise ‘for now’ because I know and agree that this isn't an ideal 
 solution. Web content is by its nature of variable length. In this case:

   • Additional status messages can be displayed in the content. The 
 authenticate flow has an extra header message, and users adding their first 
 app are also given a special greeting message, and offered a link to the help 
 section to explain what apps are.

   • Items on the page, and in the permission list may be changed, shortened, 
 lengthened or removed outright based on feedback and experience. And, of 
 course, Twitter will add new features over time, or might redesign the site 
 again some day.

 These are all changes that developers should expect to happen to every web 
 service, not just Twitter, and should code for defensively. What's more, 
 users can, will, and do use browser features such as resizing page text based 
 on their needs, which throws all page size expectations out of the window. 
 Given all of this, it mystifies me slightly that browsers allow scrollbars to 
 be disabled at all, but here we are.

 I'm keen that we assemble issues like this into a best practices guide. Not 
 disabling scrollbars, and keeping the address bar (and SSL verification 
 stamps) visible are important. There's more too, and I'd like to collect the 
 feedback and experience of developers to help assemble thorough and relevant 
 advice. (Please write in to the usual address.) (This one.)

 My hope and preference is that after documenting these issues and encouraging 
 their adoption, we can remove the janky resize code and return all pop-up 
 size and shape related issues entirely to the domain of the app developer.

 Thanks,

 Ben
 --
 @benward

-- 
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] How to submit a new ticket?

2010-10-08 Thread Bess Ho
How to submit a new ticket? to extend xAuth permission on an existing app
id?

I tried to reach someone in Twitter for 2 weeks but no luck. It's for the
book.

-- 
Bess Ho
UI Architect / Developer / Designer
iPhone Developer
Silicon Valley Web Builder (SVWB) Founder

The information transmitted is intended only for the person or entity to
which it is addressed and may contain CONFIDENTIAL material. If you receive
this material/information in error, please contact the sender and delete or
destroy the material/information.

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


Re: [twitter-dev] Re: IPhone + Twitter + LinkedIn Error : Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

2011-03-14 Thread Bess Ho
Congratulation. Are you planning to post photos than updating status on
Twitter, FB,  Linkedin at the same time?

On Mon, Mar 14, 2011 at 2:01 AM, Battan Amit batta...@gmail.com wrote:

 *Solved *

 solved now...I have given the same key and secret to both linkedin and
 twitter ..after changing them it works
 
 AB

 On 14 March 2011 11:55, Battan Amit batta...@gmail.com wrote:

 I done one thing that is ... I remove the library files of linkedin sdk..
 and add the source files of it with oAuth files from twiiter sdk... then it
 works ok for linkedin http://i.imgur.com/cXLXU.png
 http://i.imgur.com/ntV9G.png then I integrate all twitter code then
 project run ok without error but for twitter login interface it shows PAGE
 NOT FOUND ..http://i.imgur.com/8a1ua.png


 
 AB




 On 12 March 2011 11:44, Bess bess...@gmail.com wrote:

 First of all it is difficult to identify errors esp you don't have the
 source code. However the stockoverflow discussion was good enough to
 point out the general problems.

 ld: duplicate symbol _EstimateBas64EncodedDataSize in /Users/pratgupta/
 Desktop/Settinglinkedin/10_mar_butterfli/LinkedInClientLibrary/build/
 Debug-iphonesimulator/libLinkedInClientLibrary.a(Base64Transcoder.o)
 and /Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/Twitter
 +OAuth/Libraries  Headers/libOAuth.a(Base64Transcoder.o)

 Problem is: duplicate symbol

 It occurs on _EstimateBas64EncodedDataSize from LinkedinClientLibrary
 in libLinkedInClientLibrary.a(Base64Transcoder.o) and Twitter+OAuth in
 libOAuth.a(Base64Transcoder.o).

 Note: LinkedIn library and Ben Gottlieb's Twitter client include the
 same OAuthConsumer code. It is duplicated. libLinkedInClientLibrary
 and libOAuth both symbolicate the same method
 '_EstimateBas64EncodedDataSize'. Check your #imports.

 Just do a search within your Xcode project on
 _EstimateBas64EncodedDataSize. Find out where the duplicated methods.
 Determine which one you should remove.

 On Mar 11, 4:56 am, Battan Ror batta...@gmail.com wrote:
  HI All
 
  I am using MGTwitterEngine oAuth and LinkedIn iOS sdk in my Iphone
  application with facebook-ios-sdk
 
  TwitterEngine :https://github.com/bengottlieb/Twitter-OAuth-iPhone
 
  LinkedInIphone :https://github.com/ResultsDirect/LinkedIn-iPhone
 
  Both integrated well separately, But when I have used both in
  application then error coming
 
  FB + Twitter = working well
  FB + LinkedIn = Working Well
  FB + Twitter + LinkedIn = Not Working
 
  and giving error
 
  Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/
  bin/gcc-4.2 failed with exit code 1
 
  Please help me where I am wrong.
 
  Error Transcript Text File
 
  Build butterfli of project butterfli with configuration Debug
 
  Ld build/Debug-iphonesimulator/butterfli.app/butterfli normal i386
  cd /Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli
  setenv MACOSX_DEPLOYMENT_TARGET 10.6
  setenv PATH /Developer/Platforms/iPhoneSimulator.platform/Developer/
  usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin
  /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/
  gcc-4.2 -arch i386 -isysroot /Developer/Platforms/
  iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk -L/
  Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/build/Debug-
  iphonesimulator -L/Users/pratgupta/Desktop/Settinglinkedin/
  10_mar_butterfli/Twitter+OAuth/Libraries  Headers -F/Users/pratgupta/
  Desktop/Settinglinkedin/10_mar_butterfli/build/Debug-iphonesimulator -
  filelist /Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/
  build/butterfli.build/Debug-iphonesimulator/butterfli.build/Objects-
  normal/i386/butterfli.LinkFileList -mmacosx-version-min=10.6 -all_load
  -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework
  UIKit -framework CoreGraphics -lOAuth -lxml2 /Users/pratgupta/Desktop/
  Settinglinkedin/10_mar_butterfli/LinkedInClientLibrary/build/Debug-
  iphonesimulator/libLinkedInClientLibrary.a -o /Users/pratgupta/Desktop/
  Settinglinkedin/10_mar_butterfli/build/Debug-iphonesimulator/
  butterfli.app/butterfli
 
  ld: duplicate symbol _EstimateBas64EncodedDataSize in /Users/pratgupta/
  Desktop/Settinglinkedin/10_mar_butterfli/LinkedInClientLibrary/build/
  Debug-iphonesimulator/libLinkedInClientLibrary.a(Base64Transcoder.o)
  and /Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/Twitter
  +OAuth/Libraries  Headers/libOAuth.a(Base64Transcoder.o)
  collect2: ld returned 1 exit status
  Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/
  bin/gcc-4.2 failed with exit code 1
 
  Some discussion on the Issue herehttp://
 stackoverflow.com/questions/5259747
 
  Amit Battan

 --
 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

Re: [twitter-dev] Re: IPhone + Twitter + LinkedIn Error : Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

2011-03-14 Thread Bess Ho
http://stackoverflow.com/questions/5297783/linkedin-successfull-authrized-interface-on-iphone

The problems you are facing on Linkedin authorized page are similar to
Twitter. Initially Twitter authorized page is not optimized to mobile
browser screen size. This is not related to your code at all.

Since I am not sure where Linkedin developer group is and I didn't sign up
for the developer group mailing list, I'll see if I could contact Linkedin
directly about this issue.

On Mon, Mar 14, 2011 at 2:08 AM, Bess Ho bess...@gmail.com wrote:

 Congratulation. Are you planning to post photos than updating status on
 Twitter, FB,  Linkedin at the same time?


 On Mon, Mar 14, 2011 at 2:01 AM, Battan Amit batta...@gmail.com wrote:

 *Solved *

 solved now...I have given the same key and secret to both linkedin and
 twitter ..after changing them it works
 
 AB

 On 14 March 2011 11:55, Battan Amit batta...@gmail.com wrote:

 I done one thing that is ... I remove the library files of linkedin sdk..
 and add the source files of it with oAuth files from twiiter sdk... then it
 works ok for linkedin http://i.imgur.com/cXLXU.png
 http://i.imgur.com/ntV9G.png then I integrate all twitter code then
 project run ok without error but for twitter login interface it shows PAGE
 NOT FOUND ..http://i.imgur.com/8a1ua.png


 
 AB




 On 12 March 2011 11:44, Bess bess...@gmail.com wrote:

 First of all it is difficult to identify errors esp you don't have the
 source code. However the stockoverflow discussion was good enough to
 point out the general problems.

 ld: duplicate symbol _EstimateBas64EncodedDataSize in /Users/pratgupta/
 Desktop/Settinglinkedin/10_mar_butterfli/LinkedInClientLibrary/build/
 Debug-iphonesimulator/libLinkedInClientLibrary.a(Base64Transcoder.o)
 and /Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/Twitter
 +OAuth/Libraries  Headers/libOAuth.a(Base64Transcoder.o)

 Problem is: duplicate symbol

 It occurs on _EstimateBas64EncodedDataSize from LinkedinClientLibrary
 in libLinkedInClientLibrary.a(Base64Transcoder.o) and Twitter+OAuth in
 libOAuth.a(Base64Transcoder.o).

 Note: LinkedIn library and Ben Gottlieb's Twitter client include the
 same OAuthConsumer code. It is duplicated. libLinkedInClientLibrary
 and libOAuth both symbolicate the same method
 '_EstimateBas64EncodedDataSize'. Check your #imports.

 Just do a search within your Xcode project on
 _EstimateBas64EncodedDataSize. Find out where the duplicated methods.
 Determine which one you should remove.

 On Mar 11, 4:56 am, Battan Ror batta...@gmail.com wrote:
  HI All
 
  I am using MGTwitterEngine oAuth and LinkedIn iOS sdk in my Iphone
  application with facebook-ios-sdk
 
  TwitterEngine :https://github.com/bengottlieb/Twitter-OAuth-iPhone
 
  LinkedInIphone :https://github.com/ResultsDirect/LinkedIn-iPhone
 
  Both integrated well separately, But when I have used both in
  application then error coming
 
  FB + Twitter = working well
  FB + LinkedIn = Working Well
  FB + Twitter + LinkedIn = Not Working
 
  and giving error
 
  Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/
  bin/gcc-4.2 failed with exit code 1
 
  Please help me where I am wrong.
 
  Error Transcript Text File
 
  Build butterfli of project butterfli with configuration Debug
 
  Ld build/Debug-iphonesimulator/butterfli.app/butterfli normal i386
  cd /Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli
  setenv MACOSX_DEPLOYMENT_TARGET 10.6
  setenv PATH /Developer/Platforms/iPhoneSimulator.platform/Developer/
  usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin
  /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/
  gcc-4.2 -arch i386 -isysroot /Developer/Platforms/
  iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk -L/
  Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/build/Debug-
  iphonesimulator -L/Users/pratgupta/Desktop/Settinglinkedin/
  10_mar_butterfli/Twitter+OAuth/Libraries  Headers
 -F/Users/pratgupta/
  Desktop/Settinglinkedin/10_mar_butterfli/build/Debug-iphonesimulator -
  filelist /Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/
  build/butterfli.build/Debug-iphonesimulator/butterfli.build/Objects-
  normal/i386/butterfli.LinkFileList -mmacosx-version-min=10.6 -all_load
  -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework
  UIKit -framework CoreGraphics -lOAuth -lxml2 /Users/pratgupta/Desktop/
  Settinglinkedin/10_mar_butterfli/LinkedInClientLibrary/build/Debug-
  iphonesimulator/libLinkedInClientLibrary.a -o
 /Users/pratgupta/Desktop/
  Settinglinkedin/10_mar_butterfli/build/Debug-iphonesimulator/
  butterfli.app/butterfli
 
  ld: duplicate symbol _EstimateBas64EncodedDataSize in
 /Users/pratgupta/
  Desktop/Settinglinkedin/10_mar_butterfli/LinkedInClientLibrary/build/
  Debug-iphonesimulator/libLinkedInClientLibrary.a(Base64Transcoder.o)
  and /Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/Twitter
  +OAuth/Libraries  Headers

Re: [twitter-dev] Re: IPhone + Twitter + LinkedIn Error : Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

2011-03-14 Thread Bess Ho
*From Linkedin response:*
http://developer.linkedin.com/message/8675#8675

If you are not using an oauth callback, the user will need to return to your
application themselves and input the token for you to use for verification.
If you are using a callback, the user will never see the PIN screen.  See
the documentation on Using OAuth with the LinkedIn
APIshttp://developer.linkedin.com/docs/DOC-1243for more information.

*See more explanation here*
http://developer.linkedin.com/docs/DOC-1008#comment-1337

If the member chooses to authorize your application, you'll get two fields
back: oauth_token and an oauth_verifier. The oauth_token will be the same
requestToken you received in the first step. You'll want to temporarily
store the oauth_verifier so that you can use it as part of your accessToken
request in the next step.

In the examples used so far, the callback specified in the requestToken step
would receive a request like this:

http://localhost/oauth_callback?oauth_token=94ab03c4-ae2c-45e4-8732-0e6c4899db63oauth_verifier=98295

If the member chooses to deny your application a token (by pressing the
Cancel button in the authorization flow), we redirect them back to your
server. We send them to either the Integration URL you defined for your
application, or, if that value is blank, the OAuth callback URL you passed
in your request.  However we do not send a token or secret. Instead your
callback will include the url parameter oauth_problem with the value
user_refused.

Note: If you're performing an out-of-band style request (indicated by
setting the oauth_callback to oob, the user is be directed to a page
containing the OAuth Verifier step. They can then return to your application
and hand-enter the OAuth verifier code, which you pass back to us in the
next step. Otherwise, all of these steps remain the same. Out of band
requests are done where there is no natural web flow available as part of
your application.
On Mon, Mar 14, 2011 at 4:35 PM, Bess Ho bess...@gmail.com wrote:


 http://stackoverflow.com/questions/5297783/linkedin-successfull-authrized-interface-on-iphone

 The problems you are facing on Linkedin authorized page are similar to
 Twitter. Initially Twitter authorized page is not optimized to mobile
 browser screen size. This is not related to your code at all.

 Since I am not sure where Linkedin developer group is and I didn't sign up
 for the developer group mailing list, I'll see if I could contact Linkedin
 directly about this issue.


 On Mon, Mar 14, 2011 at 2:08 AM, Bess Ho bess...@gmail.com wrote:

 Congratulation. Are you planning to post photos than updating status on
 Twitter, FB,  Linkedin at the same time?


 On Mon, Mar 14, 2011 at 2:01 AM, Battan Amit batta...@gmail.com wrote:

 *Solved *

 solved now...I have given the same key and secret to both linkedin and
 twitter ..after changing them it works
 
 AB

 On 14 March 2011 11:55, Battan Amit batta...@gmail.com wrote:

 I done one thing that is ... I remove the library files of linkedin
 sdk.. and add the source files of it with oAuth files from twiiter sdk...
 then it works ok for linkedin http://i.imgur.com/cXLXU.png
 http://i.imgur.com/ntV9G.png then I integrate all twitter code then
 project run ok without error but for twitter login interface it shows PAGE
 NOT FOUND ..http://i.imgur.com/8a1ua.png


 
 AB




 On 12 March 2011 11:44, Bess bess...@gmail.com wrote:

 First of all it is difficult to identify errors esp you don't have the
 source code. However the stockoverflow discussion was good enough to
 point out the general problems.

 ld: duplicate symbol _EstimateBas64EncodedDataSize in /Users/pratgupta/
 Desktop/Settinglinkedin/10_mar_butterfli/LinkedInClientLibrary/build/
 Debug-iphonesimulator/libLinkedInClientLibrary.a(Base64Transcoder.o)
 and /Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/Twitter
 +OAuth/Libraries  Headers/libOAuth.a(Base64Transcoder.o)

 Problem is: duplicate symbol

 It occurs on _EstimateBas64EncodedDataSize from LinkedinClientLibrary
 in libLinkedInClientLibrary.a(Base64Transcoder.o) and Twitter+OAuth in
 libOAuth.a(Base64Transcoder.o).

 Note: LinkedIn library and Ben Gottlieb's Twitter client include the
 same OAuthConsumer code. It is duplicated. libLinkedInClientLibrary
 and libOAuth both symbolicate the same method
 '_EstimateBas64EncodedDataSize'. Check your #imports.

 Just do a search within your Xcode project on
 _EstimateBas64EncodedDataSize. Find out where the duplicated methods.
 Determine which one you should remove.

 On Mar 11, 4:56 am, Battan Ror batta...@gmail.com wrote:
  HI All
 
  I am using MGTwitterEngine oAuth and LinkedIn iOS sdk in my Iphone
  application with facebook-ios-sdk
 
  TwitterEngine :https://github.com/bengottlieb/Twitter-OAuth-iPhone
 
  LinkedInIphone :https://github.com/ResultsDirect/LinkedIn-iPhone
 
  Both integrated well separately, But when I have used both in
  application then error coming
 
  FB + Twitter = working well