[twitter-dev] Re: oauth_callback help

2009-11-25 Thread jmathai
Without having tested it, I wouldn't be surprised if the callback url
needs to be on the same domain as the url specified in application
settings.

Have you tried using a callback url to a random page on the domain of
the application setting url?

On Nov 24, 5:38 pm, Duane Roelands duane.roela...@gmail.com wrote:
 Trying to work through web authentication and running into a problem
 that I am sure someone else has solved.

 http://twitter.com/oauth/authorize?oauth_token=lM4ZRypYyYkA255S2dHVk6...

 I authorize the app, but I am not redirected to my localhost page - I
 am redirected to the URL in the application settings.  Is my URL not
 properly formed?


[twitter-dev] Re: Get Twitter User Details on url click

2009-11-25 Thread jmathai
Assuming you're talking about the url from your profile on
twitter.com

Don't know of a way to do this.  You don't have access to twitter.com
cookies and the referer is not really valuable here.

On Nov 24, 3:09 am, Varun_EnableM avarunkumarsi...@gmail.com wrote:
 I want to track twitter name or Userid when he click on my publish URL
 on Twitter.


[twitter-dev] Re: oauth_callback help

2009-11-25 Thread Duane Roelands
If that's true, then that would make testing/development very
difficult, if not impossible.



On Nov 25, 4:04 am, jmathai jmat...@gmail.com wrote:
 Without having tested it, I wouldn't be surprised if the callback url
 needs to be on the same domain as the url specified in application
 settings.

 Have you tried using a callback url to a random page on the domain of
 the application setting url?

 On Nov 24, 5:38 pm, Duane Roelands duane.roela...@gmail.com wrote:



  Trying to work through web authentication and running into a problem
  that I am sure someone else has solved.

 http://twitter.com/oauth/authorize?oauth_token=lM4ZRypYyYkA255S2dHVk6...

  I authorize the app, but I am not redirected to my localhost page - I
  am redirected to the URL in the application settings.  Is my URL not
  properly formed?


[twitter-dev] Adding more languages to lang parameter in Search API

2009-11-25 Thread Toma Tasovac
Hi there.

I am working on a WordNet-based Serbian-English dictionary (part of
Transpoetika Project at the Belgrade Center for Digital Humanities,
http://humanistika.org)

I've implemented a LiveQuote system with Twitter, where we get most
recent tweets exemplifying the use of a given dictionary entry. We
also have several other ideas on how to integrate Twitter in our
dictionary application, both on the production and reception ends.

But we're facing a serious performance issue: Twitter's language
parameter (lang) does not recognize Serbian (sr). My workaround has
been to use Google Translate's API to check tweets to make sure they
are really Serbian. It works, Google is pretty good about this (not
101%, but close enough), but this has considerably slowed down the
process -- every tweet we get for a certain word has to be checked
with Google before being displayed.

Without a language check, however, we run into cases where certain
Russian, Bulgarian, Macedonian etc. tweets will sometimes sneak into
our results thanks to interlingual homographs. For eg. живот in
Serbian means life, while in Russian it means stomach.

I am curious how you guys check for language identity on your backend,
and whether there was any chance you could include Serbian in the
list?

All best,
Toma


[twitter-dev] Re: crossdomain

2009-11-25 Thread bytespider
Is it possible to use pre-flighting?
Sending the OPTIONS method first with the request we intend on
performing, and api.twitter.com responding with the appropriate
response code if they deem our transaction safe?

http://www.w3.org/TR/access-control/

On Nov 7, 4:38 pm, Raffi Krikorian ra...@twitter.com wrote:
 hi tim.

 thecrossdomain.xml file is now open an unrestricted to search.  in  
 the future, as part of the migration to api.twitter.com for API  
 endpoints, we may consider relaxing acrossdomain.xml policy on that.





  John I'm with others here that this represents a significant change to
  the operation of the API and has affected numerous applications and
  samples, etc.

  Frankly I wish Twitter would really understand x-domain policy files
  better.  If there is a concern around security, then address it and
  don't allow *user* changes on the API domain root.  I fully understand
  the reason for x-domain policies as we need them for Silverlight as
  well -- and appreciate how they help mitigate the attack surface.

  But especially for Search, which is an unauthenticated API it doesn't
  make sense.  Having twitter segment their API (or provide a different
  endpoint for RIA clients that has the security risk mitigation in
  place) seems to make sence.  That's exactly what others (Yahoo,
  Microsoft, etc.) do -- instead of hanging their API off of the end-
  user application it is segmented (i.e., yahooapis.com or
  api.twitter.com) so as to help the security threat surface.

  Twitter doesn't block domains from using the services otherwise and
  having a x-domain policy in place that is DIFFERENT than what is
  allowed in the API in general is very confusing to the developer
  audience.

  Please change the Search API back ASAP as that in the short-term has
  the greatest negative effect on a lot of applications that relied on
  it and are now affected TWICE in one week without notification.  Users
  of the transactional API always knew from the very beginning about the
  x-domain policy file (even though it, too, went through a change early
  on), but the Search API hasn't been like this for a long time.

  Consider your developer audience in the short-term while you consider
  a longer-term solution.  And until then, provide us with a phase-out
  plan instead of a complete shut-off which negatively affects us and
  our customers.  I understand Twitter is a free service and such has
  the typical SLA that comes along with free.  But it has been an
  invaluable service to your customers and ours --

  I also agree with others that making these announcements BEFORE the
  changes on status.twitter.com and these lists as well as the official
  API announce is essential.  There has only been answers on these
  issues based on questions -- nothing pro-active from your team about
  the changes or what is going on.

  -th

  On Nov 6, 7:35 am, Marauderz maraud...@gmail.com wrote:
  John,

  Even before last week, our Flash apps could always access
  search.twitter.com. means that thecrossdomain.xml had always allowed
  universal access before. So it is NOT the same state that it was last
  week.

  The change in thecrossdomain.xml will mean that all the Flash,
  Silverlight and any other platform that respects acrossdomain.xml
  file are now essentially broken by this change.

  I understand the concerns for security, but maybe you could then  
  think
  of setting up another domain for RIA app search use instead then? In
  any case, a lot of twitter apps have just been silenced because of
  thiscrossdomain.xml change.

  On Nov 6, 8:08 am, John Adams j...@twitter.com wrote:

  On Nov 5, 2009, at 3:32 PM, codewarrior415 wrote:

  OK, thecrossdomainpolicy now only allows your flex application to
  access the API. You are not allowing flex appication access your  
  API?
  How come the change again today. This morning it was working fine.

  twitter.com'scrossdomain.xml is exactly the same as it was last  
  week,
  it was restored from the original configuration.

  The search.twitter.comcrossdomain.xml policy was incorrectly set to
  permit from all sites for all actions.

  We've configured that to be identical to the twitter.com
 crossdomain.xml to prevent CSRF, session fixation,  and attacks on
  user accounts, which is a major security issue which Facebook and
  Myspace fell to earlier this week.

  Could you describe what you are trying to do and we'll research?

  -john

 --
 Raffi Krikorian
 Twitter Platform Team
 ra...@twitter.com | @raffi


[twitter-dev] Re: getting Twitter client type

2009-11-25 Thread Ken
Perhaps he meant, can we search for tweets by the status.source
attribute? For example, to display tweets posted through our own
app...

On Nov 24, 7:39 pm, Raffi Krikorian ra...@twitter.com wrote:
 you need to use OAuth to get client attribution.

  Hello, I am new to Twitter development. Is there any way to get client
  type (name of the client software that tweet posted) for posted tweet
  such as gravity, Tweetie, TweetDeck, Twittelator, Uber Twitter etc...
  My second question is it possible to understand that tweet send from
  PC or mobile phone?

  Thank you.

 --
 Raffi Krikorian
 Twitter Platform Team
 ra...@twitter.com | @raffi


[twitter-dev] Migrating followers

2009-11-25 Thread Iain
Hi

Is it possible to migrate followers from one commercial brand page to
another commercial brand page? Both pages are owned and maintained by
the same commercial brand?

thanks Iain


Re: [twitter-dev] Migrating followers

2009-11-25 Thread TJ Luoma
On Wed, Nov 25, 2009 at 7:37 AM, Iain scotland.digi...@mediacom.com wrote:
 Hi

 Is it possible to migrate followers from one commercial brand page to
 another commercial brand page? Both pages are owned and maintained by
 the same commercial brand?

Do you mean They were following Twitter user X but now I want them to
be following Twitter user Y?

No, there's no way to do that.

You can rename your Twitter account and retain followers, but you
can't merge them.

TjL


[twitter-dev] Twitter4J 2.1.0-SNAPSHOT now supports official RetweetMethods, performs better, works better on Android

2009-11-25 Thread Yusuke Yamamoto
Hi all,

I finally managed to get Twitter4J using JSON APIs.
There have been performance and character omission problems on Android platform.
Now they're gone.
Please give it a try and let me know if you found anything wrong.

- JavaDoc
http://yusuke.homeip.net/twitter4j/en/oldjavadocs/2.1.0-SNAPSHOT/index.html
- JavaDoc diff from version 2.0.10
http://yusuke.homeip.net/twitter4j/en/oldjavadocs/2.0.10-2.1.0-SNAPSHOT/changes.html
- in-house maven repository
http://yusuke.homeip.net/maven2/net/homeip/yusuke/twitter4j/2.1.0-SNAPSHOT/
- Direction how to use the snapshot build with your project.
http://yusuke.homeip.net/twitter4j/en/index.html#maven

Follow t4j_news for the latest updates!
http://twitter.com/t4j_news

What's next? See the priority list.
http://yusuke.homeip.net/jira/secure/IssueNavigator.jspa?mode=hiderequestId=10010

Thanks,
-- 
Yusuke Yamamoto
yus...@mac.com

this email is: [x] bloggable/tweetable [ ] ask first [ ] private
follow me on : http://twitter.com/yusukeyamamoto
subscribe me at : http://yusuke.homeip.net/blog/



[twitter-dev] Tweets not found on search

2009-11-25 Thread bepeppered
Hi,

why i can't find my postet tweets on twitter search... The profile:
ilmenaubrennt. I can't find this tweet, if i search #ilmenau  But
the last tweet has the word #ilmenau 

Tweets from posterous worked Protect my search is not chosen...

greetz david


Re: [twitter-dev] Tweets not found on search

2009-11-25 Thread Raffi Krikorian
not all tweets appear in twitter search -- twitter search filters  
tweets for quality, relevance, etc.



Hi,

why i can't find my postet tweets on twitter search... The profile:
ilmenaubrennt. I can't find this tweet, if i search #ilmenau  But
the last tweet has the word #ilmenau 

Tweets from posterous worked Protect my search is not chosen...

greetz david


--
Raffi Krikorian
Twitter Platform Team
ra...@twitter.com | @raffi






[twitter-dev] Re: oauth_callback help

2009-11-25 Thread timwhitlock
I was under the impression that although oauth_callback is in the
OAuth standard, this parameter is not implement by Twitter.

I create multiple apps for development, staging, and live - and
maintain seprate deployment configs with the respective keys.


Re: [twitter-dev] Re: getting Twitter client type

2009-11-25 Thread Abraham Williams
You can search by sources using the source search operator. Example:
http://search.twitter.com/search?q=news+source:twitterfeed

As for getting a source. If you mean getting a new source that you can use
while creating tweets. As Raffi said you must use OAuth. If you mean getting
the source that created existing tweets every status object has a source
field.

Abraham

On Wed, Nov 25, 2009 at 06:29, Ken k...@cimas.ch wrote:

 Perhaps he meant, can we search for tweets by the status.source
 attribute? For example, to display tweets posted through our own
 app...

 On Nov 24, 7:39 pm, Raffi Krikorian ra...@twitter.com wrote:
  you need to use OAuth to get client attribution.
 
   Hello, I am new to Twitter development. Is there any way to get client
   type (name of the client software that tweet posted) for posted tweet
   such as gravity, Tweetie, TweetDeck, Twittelator, Uber Twitter etc...
   My second question is it possible to understand that tweet send from
   PC or mobile phone?
 
   Thank you.
 
  --
  Raffi Krikorian
  Twitter Platform Team
  ra...@twitter.com | @raffi




-- 
Abraham Williams | Community Evangelist | http://web608.org
Hacker | http://abrah.am | http://twitter.com/abraham
Project | Awesome Lists | http://twitterli.st
This email is: [ ] blogable [x] ask first [ ] private.


[twitter-dev] Sudden OAuth failures from a specific IP address

2009-11-25 Thread timwhitlock
Has anyone found their existing code suddenly getting OAuth failures?
I'm getting a 401 (Failed to validate oauth signature and token)

Normally I'd assume that I've been an idiot and screwed up my code -
Except that the code is unchanged from yesterday when it was working
perfectly. I've also had the same code in production for months with
no such errors, and those sites are still operating fine.

This points to a problem with my IP.

Can anyone at Twitter help? Have I been blocked?
It's only the OAuth call that is failing. Other non-authed requests
are working ok.


[twitter-dev] Twitter PHP + CentOS

2009-11-25 Thread aztroboy
Hello there! I'm using a PHP Twitter OAuth library (twitter.abrah.am),
and it works perfect on Windows: the php script looks asks twitter for
an auth token. However, as soon as I put the same script on CentOS
(with its default httpd service), it won't give any auth tokens at
all.

The script uses cURL to get the token from twitter. I've used cURL
(curl www.google.com) and it works fine in console.

What could be going wrong here? Is there something I should add of
change first in order to receive the tokens? By the way, I got the
CentOS default FW set allowing traffic on port 80 and SSH only.


I would like to ask for a hint about what should I do, I'm kinda
newbie on CentOS.




thank you in advance


[twitter-dev] Getting Not Found when trying to Delete List subscription using list id and oauth

2009-11-25 Thread Mark Ellul
HI,

I have code working to remove subscriptions using list uris working,
but have a use case where I need to delete a subscription with the
list id.

/1/mark_ellul/561510/subscribers.json?.. where mark_ellul is my
name, and 561510 is the list I am trying to unsubscribe from (which is
owned by another user)... should it be the user who owns the list
name, and it will unsubcribe the authenticate user?

Can someone please update this page, its totally off, showing the
wrong url, and return values (DELETE) doesn't return anything normally
(I think).

http://apiwiki.twitter.com/Twitter-REST-API-Method:-DELETE-list-subscribers

Any clarification would be appreciated

Regards

Mark


Re: [twitter-dev] Tweets not found on search

2009-11-25 Thread TJ Luoma
On Wed, Nov 25, 2009 at 11:34 AM, Raffi Krikorian ra...@twitter.com wrote:
 not all tweets appear in twitter search -- twitter search filters tweets for
 quality, relevance, etc.

Not to mention that some people are simply excluded altogether for no
known reason.

http://getsatisfaction.com/twitter/topics/from_emzbulletproof_missing_from_search_twitter_com_results

(who doesn't meet any of the criteria here
http://twitter.zendesk.com/forums/10713/entries/42646)

Reported 5 months ago and still missing.

TjL


Re: [twitter-dev] oauth_callback help

2009-11-25 Thread Abraham Williams
Twitter supports OAuth 1.0a wich specifies that oauth_callback be included
in the signed request to https://twitter.com/oauth/request_token. The
response from twitter will include the request token as well as
oauth_callback_confirmed=true. Any domain should work as well as special
mobile URLs.

You can read the announcement here:
http://groups.google.com/group/twitter-api-announce/browse_frm/thread/472500cfe9e7cdb9?hl=en

Abraham

On Tue, Nov 24, 2009 at 19:38, Duane Roelands duane.roela...@gmail.comwrote:

 Trying to work through web authentication and running into a problem
 that I am sure someone else has solved.


 http://twitter.com/oauth/authorize?oauth_token=lM4ZRypYyYkA255S2dHVk6JmPuAnjK14DVFqreuNvxsoauth_callback=http://localhost:51157/Default.aspx

 I authorize the app, but I am not redirected to my localhost page - I
 am redirected to the URL in the application settings.  Is my URL not
 properly formed?




-- 
Abraham Williams | Community Evangelist | http://web608.org
Hacker | http://abrah.am | http://twitter.com/abraham
Project | Awesome Lists | http://twitterli.st
This email is: [ ] blogable [x] ask first [ ] private.
Sent from Madison, WI, United States


[twitter-dev] Regarding the search API based on Geo location

2009-11-25 Thread Steven Nieh
Hi everyone, I have a question regarding the search API.

Take a look at these two tweets return from the API.
 {

* location: Santa Clara, CA
* geo: null
}
{

* location: iPhone: 37.313690,-122.022911
* geo: null
}

{

* location: ÜT: 37.293106,-121.969004
* geo: null
}

1) im not sure why I haven't seen any tweet with geo filed included(I
go through more than 20 pages). Is this normal? Is that possible to
get only tweet with geo included?

2) if 1) won't work, I want to filter all the tweets with valid
location like the second one, therefore, I can push the tweet on map.
Is the keyword also apply for the location? It's hard for the first
one cuz it doesn't have the detail address.

Thanks!


[twitter-dev] Re: getting Twitter client type

2009-11-25 Thread Ken
Thanks for pointing that out - use of the source parameter is not
mentioned in the API docs. Still, I am unable to search _only_ by the
source parameter. Doing so results in the following error: [error]You
must enter a query.[/error]. Any way around this?

For certain apps we are working on, tweets sent through the app form a
set. It shouldn't be necessary to keep copies on our server, I would
like the ability to query for them. A compromise, and a strategy used
in some other APIs, is to return a set of IDs which can then be
handled and sent back for the full items.

Ken

On Nov 25, 6:09 pm, Abraham Williams 4bra...@gmail.com wrote:
 You can search by sources using the source search operator. 
 Example:http://search.twitter.com/search?q=news+source:twitterfeed

 As for getting a source. If you mean getting a new source that you can use
 while creating tweets. As Raffi said you must use OAuth. If you mean getting
 the source that created existing tweets every status object has a source
 field.

 Abraham



 On Wed, Nov 25, 2009 at 06:29, Ken k...@cimas.ch wrote:
  Perhaps he meant, can we search for tweets by the status.source
  attribute? For example, to display tweets posted through our own
  app...

  On Nov 24, 7:39 pm, Raffi Krikorian ra...@twitter.com wrote:
   you need to use OAuth to get client attribution.

Hello, I am new to Twitter development. Is there any way to get client
type (name of the client software that tweet posted) for posted tweet
such as gravity, Tweetie, TweetDeck, Twittelator, Uber Twitter etc...
My second question is it possible to understand that tweet send from
PC or mobile phone?

Thank you.

   --
   Raffi Krikorian
   Twitter Platform Team
   ra...@twitter.com | @raffi

 --
 Abraham Williams | Community Evangelist |http://web608.org
 Hacker |http://abrah.am|http://twitter.com/abraham
 Project | Awesome Lists |http://twitterli.st
 This email is: [ ] blogable [x] ask first [ ] private.


[twitter-dev] Incorrect Retweet Responses

2009-11-25 Thread Dan Deming-Henes
I'm working to integrate support for official retweets in my app, but
I'm running into issues. I believe I'm getting incorrect responses
from Twitter.

When successful I get the correct response (info about a new tweet
that is a retweet of the original tweet). However, when I ask to
retweet a tweet from a private account or some other illegal action,
rather than getting an error response, I get info about a retweet of
this tweet: http://twitter.com/brettschulte/status/5656834480.

I've tested this from two accounts (@TwittBeta, @AlternatePixel) and
have gotten the same results.

Also, not sure if it's any help, but looking at the incorrect response
(attached below), I noticed that there is no ID for the retweet.
Perhaps this has something to do with why it's getting returned?

Hope this can get fixed soon.

Dan

- The Incorrect Response

?xml version=\1.0\ encoding=\UTF-8\?
status
  created_at/created_at
  id/id
  textRT @brettschulte: Beer drinking this weekend.  Who's in?
http://bit.ly/9Kb3u/text
  sourcelt;a href=quot;http://apiwiki.twitter.com/quot;
rel=quot;nofollowquot;gt;APIlt;/agt;/source
  truncatedfalse/truncated
  in_reply_to_status_id/in_reply_to_status_id
  in_reply_to_user_id/in_reply_to_user_id
  favoritedfalse/favorited
  in_reply_to_screen_name/in_reply_to_screen_name
  retweeted_status
created_atThu Nov 12 19:09:52 + 2009/created_at
id5656834480/id
textBeer drinking this weekend.  Who's in?  http://bit.ly/9Kb3u/text
sourcelt;a href=quot;http://www.tweetdeck.com/quot;
rel=quot;nofollowquot;gt;TweetDecklt;/agt;/source
truncatedfalse/truncated
in_reply_to_status_id/in_reply_to_status_id
in_reply_to_user_id/in_reply_to_user_id
favoritedfalse/favorited
in_reply_to_screen_name/in_reply_to_screen_name
user
  id676203/id
  nameBrett Schulte/name
  screen_namebrettschulte/screen_name
  locationLos Angeles/location
  description#220;ber Geek/description
  profile_image_urlhttp://a1.twimg.com/profile_images/60304100/
JVI_0224_normal.jpg/profile_image_url
  urlhttp://www.brettschulte.com/url
  protectedfalse/protected
  followers_count1848/followers_count
  profile_background_color1A1B1F/profile_background_color
  profile_text_color66/profile_text_color
  profile_link_color2FC2EF/profile_link_color
  profile_sidebar_fill_color252429/profile_sidebar_fill_color
  profile_sidebar_border_color181A1E/
profile_sidebar_border_color
  friends_count417/friends_count
  created_atSun Jan 21 19:29:04 + 2007/created_at
  favourites_count4/favourites_count
  utc_offset-28800/utc_offset
  time_zonePacific Time (US amp; Canada)/time_zone
  profile_background_image_urlhttp://s.twimg.com/a/1257899144/
images/themes/theme9/bg.gif/profile_background_image_url
  profile_background_tilefalse/profile_background_tile
  statuses_count5964/statuses_count
  notificationsfalse/notifications
  geo_enabledfalse/geo_enabled
  verifiedtrue/verified
  followingtrue/following
/user
geo/
  /retweeted_status
  user
id15199539/id
nameMark Milian/name
screen_namemarkmilian/screen_name
locationLos Angeles/location
descriptionla times writer: tech + social media + politics +
indie rock music/description
profile_image_urlhttp://a3.twimg.com/profile_images/475986397/
DSC00397-post_normal.JPG/profile_image_url
urlhttp://markmilian.com/url
protectedfalse/protected
followers_count2228/followers_count
profile_background_color648ACE/profile_background_color
profile_text_color00/profile_text_color
profile_link_color346A8F/profile_link_color
profile_sidebar_fill_colorFFE3AF/profile_sidebar_fill_color
profile_sidebar_border_color485D6C/
profile_sidebar_border_color
friends_count222/friends_count
created_atSun Jun 22 18:32:07 + 2008/created_at
favourites_count60/favourites_count
utc_offset-28800/utc_offset
time_zonePacific Time (US amp; Canada)/time_zone
profile_background_image_urlhttp://a1.twimg.com/
profile_background_images/3682820/ew-t.png/
profile_background_image_url
profile_background_tilefalse/profile_background_tile
statuses_count1969/statuses_count
notificationsfalse/notifications
geo_enabledfalse/geo_enabled
verifiedfalse/verified
followingfalse/following
  /user
  geo/
/status


Re: [twitter-dev] Regarding the search API based on Geo location

2009-11-25 Thread Raffi Krikorian

hi!

i think you're confusing two different things here.  the location is  
what is set in the user's account settings (https://twitter.com/account/settings 
) if it is not a geotweet.  the geo tag is set if the tweet is sent  
using the geotagging API.


the number of geotweets (tweets sent using the geotagging API) is on  
the rise, but its definitely still small as there is a limited number  
of applications that currently support it (birdfeed, foursquare,  
gowalla, etc.).  but, for example, if somebody checks in using  
foursquare, and they have geotagging turned on, then you should see it.


try a search that looks like http://search.twitter.com/search.json?from=raffigeocode=37.77%2C-122.43%2C50mi 
.  that should search for my tweets that are within 50 miles of san  
francisco.  the results look like the following (abbreviated):


{
results:
[
{
location:San Francisco, California,
profile_image_url:http://a1.twimg.com/profile_images/364041028/raffi-headshot-casual_normal.png 
,

created_at:Tue, 24 Nov 2009 17:57:52 +,
from_user:raffi,
to_user_id:null,
text:Standards were invented for me to accidentally  
break.,

id:6014464536,
from_user_id:278432,
geo:null,
iso_language_code:en,
source:lt;a href=quot;http://www.atebits.com/quot;  
rel=quot;nofollowquot;gt;Tweetielt;/agt;

},
...
{
location:37.818300,-122.245000,
profile_image_url:http://a1.twimg.com/profile_images/364041028/raffi-headshot-casual_normal.png 
,

created_at:Sun, 22 Nov 2009 21:13:39 +,
from_user:raffi,
to_user_id:null,
text:Mmm. Brunch. Dr. Lady Friend. Good. (@ Camino in  
Oakland) http://bit.ly/2cJV9;,

id:5955787968,
from_user_id:278432,
geo:
{
type:Point,
coordinates:
[
37.8183,
-122.245
]
},
iso_language_code:en,
source:lt;a href=quot;http://foursquare.comquot;  
rel=quot;nofollowquot;gt;foursquarelt;/agt;

},
],
...
}

in both of these, the location attribute appears and is populated  
because i used the geocode operator on search.  in the first returned  
tweet, the location is set to San Francisco, California because that's  
what i have in my account settings and because that tweet was not sent  
using the geotagging API (its not a geotweet).  the second, however,  
has its location set to that latitude and longitude from the  
geotagging API, and the geo attribute is populated -- that one is a  
geotweet.


there is no current way to filter search results so that you only get  
geotweets.


does this help?


Hi everyone, I have a question regarding the search API.

Take a look at these two tweets return from the API.
{

   * location: Santa Clara, CA
   * geo: null
}
{

   * location: iPhone: 37.313690,-122.022911
   * geo: null
}

{

   * location: ÜT: 37.293106,-121.969004
   * geo: null
}

1) im not sure why I haven't seen any tweet with geo filed included(I
go through more than 20 pages). Is this normal? Is that possible to
get only tweet with geo included?

2) if 1) won't work, I want to filter all the tweets with valid
location like the second one, therefore, I can push the tweet on map.
Is the keyword also apply for the location? It's hard for the first
one cuz it doesn't have the detail address.

Thanks!


--
Raffi Krikorian
Twitter Platform Team
ra...@twitter.com | @raffi






Re: [twitter-dev] Re: Twitter app marked inactive?

2009-11-25 Thread Zac Bowling
I hope OAuth suspensions are rare in general. It could drive a few devs back
to Basic Auth if they fear disconnection. :-)
Zac Bowling


On Tue, Nov 24, 2009 at 6:46 PM, Andrew Badera and...@badera.us wrote:

 Gotcha, thanks for the info Brian.

 ∞ Andy Badera


 On Tue, Nov 24, 2009 at 7:48 PM, Brian Sutorius bsutor...@twitter.com
 wrote:
  Listerine was temporarily suspended pending a conversation between the
  developer and the owners of the registered mark Listerine. This was
  a rare case, so if you do have any specific questions about
  objectionable application behavior as outlined in our policies, don't
  hesitate to email us at a...@twitter.com :)
 
  Brian
 
  On Nov 24, 10:24 am, Michael Steuer mste...@gmail.com wrote:
  Thanks for providing all 4 links Brian...
 
  So why was Listerine blocked? I tried out the app once and didn't
  necessarily see any behavior that was objectionable based on the link
 you
  sent?
 
  On 11/24/09 10:11 AM, Brian Sutorius bsutor...@twitter.com wrote:
 
 
 
   OAuth tokens are suspended when the applications break our API Rules,
   API Terms of Service, Twitter Rules, or Twitter Terms of Service. I
   understand that four separate documents can be a lot to keep up with,
   but I've put them at the bottom of this post for your convenience. To
   ask any questions about these rules as they apply to application
   behavior, simply email a...@twitter.com .
 
   Thanks!
   Brian
 
  http://twitter.com/apirules
  http://apiwiki.twitter.com/Terms-of-Service
  http://help.twitter.com/forums/26257/entries/18311
  http://twitter.com/terms
 
   On Nov 23, 5:34 pm, Andrew Badera and...@badera.us wrote:
   Could you help educate the rest of the community as to what might
   cause that to happen, so we can avoid it?
 
   Thanks-
   ƒ Andy Badera
   ƒ +1 518-641-1280 Google Voice
   ƒ This email is: [ ] bloggable [x] ask first [ ] private
   ƒ Google me:http://www.google.com/search?q=andrew%20badera
 
   On Mon, Nov 23, 2009 at 12:46 PM, Brian Sutorius 
 bsutor...@twitter.com
   wrote:
   Hey Luis,
   Your OAuth token has been suspended. For more information about
 this,
   please write to a...@twitter.com and I'll be happy to talk with
 you.
 
   Brian
 
   On Nov 21, 6:28 pm, luis, syndeomedia l...@syndeomedia.com
 wrote:
   Hey all,
 
   My Twitter app Listerine has been marked inactive in my
   oauth_clients page and I don't know why. (http://twitter.com/
   oauth_clients/details/45072) Could someone shed some light on this
   please?
 
   :luis
 



Re: [twitter-dev] Re: Twitter app marked inactive?

2009-11-25 Thread Zac Bowling
I hope OAuth suspensions are rare in general. Wouldn't want to drive any
devs back to Basic Auth if they fear disconnection. :-)

Zac Bowling


On Tue, Nov 24, 2009 at 6:46 PM, Andrew Badera and...@badera.us wrote:

 Gotcha, thanks for the info Brian.

 ∞ Andy Badera


 On Tue, Nov 24, 2009 at 7:48 PM, Brian Sutorius bsutor...@twitter.com
 wrote:
  Listerine was temporarily suspended pending a conversation between the
  developer and the owners of the registered mark Listerine. This was
  a rare case, so if you do have any specific questions about
  objectionable application behavior as outlined in our policies, don't
  hesitate to email us at a...@twitter.com :)
 
  Brian
 
  On Nov 24, 10:24 am, Michael Steuer mste...@gmail.com wrote:
  Thanks for providing all 4 links Brian...
 
  So why was Listerine blocked? I tried out the app once and didn't
  necessarily see any behavior that was objectionable based on the link
 you
  sent?
 
  On 11/24/09 10:11 AM, Brian Sutorius bsutor...@twitter.com wrote:
 
 
 
   OAuth tokens are suspended when the applications break our API Rules,
   API Terms of Service, Twitter Rules, or Twitter Terms of Service. I
   understand that four separate documents can be a lot to keep up with,
   but I've put them at the bottom of this post for your convenience. To
   ask any questions about these rules as they apply to application
   behavior, simply email a...@twitter.com .
 
   Thanks!
   Brian
 
  http://twitter.com/apirules
  http://apiwiki.twitter.com/Terms-of-Service
  http://help.twitter.com/forums/26257/entries/18311
  http://twitter.com/terms
 
   On Nov 23, 5:34 pm, Andrew Badera and...@badera.us wrote:
   Could you help educate the rest of the community as to what might
   cause that to happen, so we can avoid it?
 
   Thanks-
   ƒ Andy Badera
   ƒ +1 518-641-1280 Google Voice
   ƒ This email is: [ ] bloggable [x] ask first [ ] private
   ƒ Google me:http://www.google.com/search?q=andrew%20badera
 
   On Mon, Nov 23, 2009 at 12:46 PM, Brian Sutorius 
 bsutor...@twitter.com
   wrote:
   Hey Luis,
   Your OAuth token has been suspended. For more information about
 this,
   please write to a...@twitter.com and I'll be happy to talk with
 you.
 
   Brian
 
   On Nov 21, 6:28 pm, luis, syndeomedia l...@syndeomedia.com
 wrote:
   Hey all,
 
   My Twitter app Listerine has been marked inactive in my
   oauth_clients page and I don't know why. (http://twitter.com/
   oauth_clients/details/45072) Could someone shed some light on this
   please?
 
   :luis
 



[twitter-dev] Re: Regarding the search API based on Geo location

2009-11-25 Thread Steven Nieh
I'm not sure if I successfully reply to this post. I'm sorry if I made
duplicate reply.

Yes, thanks for your help. I'm only interested in tweets have valid
geo location like:

location:37.818300,-122.245000

So I can push it on map.

I'm curious how does some twitter clients like TweetMap and tweetie
does. For example the nearby feature like tweetie, It will load more
than 20 tweets for each load. My app get 100 tweets on each page, and
the number of valid geo tweets is small. The only solution I can think
of is to keep loading the next page until I get enough good tweets.
If I do it in client side, the user might be blocked by twitter. Will
it help if I put my whitelist account in the search request? One thing
need to mention is my app will search more tweet when user move the
location. Thanks a lot!

On Nov 25, 1:59 pm, Raffi Krikorian ra...@twitter.com wrote:
 hi!

 i think you're confusing two different things here.  the location is  
 what is set in the user's account settings 
 (https://twitter.com/account/settings
 ) if it is not a geotweet.  the geo tag is set if the tweet is sent  
 using the geotagging API.

 the number of geotweets (tweets sent using the geotagging API) is on  
 the rise, but its definitely still small as there is a limited number  
 of applications that currently support it (birdfeed, foursquare,  
 gowalla, etc.).  but, for example, if somebody checks in using  
 foursquare, and they have geotagging turned on, then you should see it.

 try a search that looks 
 likehttp://search.twitter.com/search.json?from=raffigeocode=37.77%2C-122...
 .  that should search for my tweets that are within 50 miles of san  
 francisco.  the results look like the following (abbreviated):

 {
      results:
      [
          {
              location:San Francisco, California,
              
 profile_image_url:http://a1.twimg.com/profile_images/364041028/raffi-headshot-casual_no...
 ,
              created_at:Tue, 24 Nov 2009 17:57:52 +,
              from_user:raffi,
              to_user_id:null,
              text:Standards were invented for me to accidentally  
 break.,
              id:6014464536,
              from_user_id:278432,
              geo:null,
              iso_language_code:en,
              source:lt;a href=quot;http://www.atebits.com/ 
 rel=quot;nofollowquot;gt;Tweetielt;/agt;
          },
         ...
          {
              location:37.818300,-122.245000,
              
 profile_image_url:http://a1.twimg.com/profile_images/364041028/raffi-headshot-casual_no...
 ,
              created_at:Sun, 22 Nov 2009 21:13:39 +,
              from_user:raffi,
              to_user_id:null,
              text:Mmm. Brunch. Dr. Lady Friend. Good. (@ Camino in  
 Oakland)http://bit.ly/2cJV9;,
              id:5955787968,
              from_user_id:278432,
              geo:
              {
                  type:Point,
                  coordinates:
                  [
                      37.8183,
                      -122.245
                  ]
              },
              iso_language_code:en,
              source:lt;a href=quot;http://foursquare.com 
 rel=quot;nofollowquot;gt;foursquarelt;/agt;
          },
      ],
      ...

 }

 in both of these, the location attribute appears and is populated  
 because i used the geocode operator on search.  in the first returned  
 tweet, the location is set to San Francisco, California because that's  
 what i have in my account settings and because that tweet was not sent  
 using the geotagging API (its not a geotweet).  the second, however,  
 has its location set to that latitude and longitude from the  
 geotagging API, and the geo attribute is populated -- that one is a  
 geotweet.

 there is no current way to filter search results so that you only get  
 geotweets.

 does this help?



  Hi everyone, I have a question regarding the search API.

  Take a look at these two tweets return from the API.
  {

     * location: Santa Clara, CA
     * geo: null
  }
  {

     * location: iPhone: 37.313690,-122.022911
     * geo: null
  }

  {

     * location: ÜT: 37.293106,-121.969004
     * geo: null
  }

  1) im not sure why I haven't seen any tweet with geo filed included(I
  go through more than 20 pages). Is this normal? Is that possible to
  get only tweet with geo included?

  2) if 1) won't work, I want to filter all the tweets with valid
  location like the second one, therefore, I can push the tweet on map.
  Is the keyword also apply for the location? It's hard for the first
  one cuz it doesn't have the detail address.

  Thanks!

 --
 Raffi Krikorian
 Twitter Platform Team
 ra...@twitter.com | @raffi


[twitter-dev] Re: Regarding the search API based on Geo location

2009-11-25 Thread Steven Nieh
Yes Thanks a lot for your reply. I'm curious how client like tweetie
and tweetmap does in their application.

For example, the nearby feature in tweetie looks pretty good.

It can drop more than 20 pins on each load; however, I can't get that
many results from the api search with valid location like

location:37.818300,-122.245000

I did load 100 results in each page.

The only way I'm thinking is just keep loading the pages(next page-
next page until num result20).

Is this easy to be blocked by twitter?
Because my app will try to load more results when user move the map.

Thanks!


On Nov 25, 1:59 pm, Raffi Krikorian ra...@twitter.com wrote:
 hi!

 i think you're confusing two different things here.  the location is  
 what is set in the user's account settings 
 (https://twitter.com/account/settings
 ) if it is not a geotweet.  the geo tag is set if the tweet is sent  
 using the geotagging API.

 the number of geotweets (tweets sent using the geotagging API) is on  
 the rise, but its definitely still small as there is a limited number  
 of applications that currently support it (birdfeed, foursquare,  
 gowalla, etc.).  but, for example, if somebody checks in using  
 foursquare, and they have geotagging turned on, then you should see it.

 try a search that looks 
 likehttp://search.twitter.com/search.json?from=raffigeocode=37.77%2C-122...
 .  that should search for my tweets that are within 50 miles of san  
 francisco.  the results look like the following (abbreviated):

 {
      results:
      [
          {
              location:San Francisco, California,
              
 profile_image_url:http://a1.twimg.com/profile_images/364041028/raffi-headshot-casual_no...
 ,
              created_at:Tue, 24 Nov 2009 17:57:52 +,
              from_user:raffi,
              to_user_id:null,
              text:Standards were invented for me to accidentally  
 break.,
              id:6014464536,
              from_user_id:278432,
              geo:null,
              iso_language_code:en,
              source:lt;a href=quot;http://www.atebits.com/ 
 rel=quot;nofollowquot;gt;Tweetielt;/agt;
          },
         ...
          {
              location:37.818300,-122.245000,
              
 profile_image_url:http://a1.twimg.com/profile_images/364041028/raffi-headshot-casual_no...
 ,
              created_at:Sun, 22 Nov 2009 21:13:39 +,
              from_user:raffi,
              to_user_id:null,
              text:Mmm. Brunch. Dr. Lady Friend. Good. (@ Camino in  
 Oakland)http://bit.ly/2cJV9;,
              id:5955787968,
              from_user_id:278432,
              geo:
              {
                  type:Point,
                  coordinates:
                  [
                      37.8183,
                      -122.245
                  ]
              },
              iso_language_code:en,
              source:lt;a href=quot;http://foursquare.com 
 rel=quot;nofollowquot;gt;foursquarelt;/agt;
          },
      ],
      ...

 }

 in both of these, the location attribute appears and is populated  
 because i used the geocode operator on search.  in the first returned  
 tweet, the location is set to San Francisco, California because that's  
 what i have in my account settings and because that tweet was not sent  
 using the geotagging API (its not a geotweet).  the second, however,  
 has its location set to that latitude and longitude from the  
 geotagging API, and the geo attribute is populated -- that one is a  
 geotweet.

 there is no current way to filter search results so that you only get  
 geotweets.

 does this help?



  Hi everyone, I have a question regarding the search API.

  Take a look at these two tweets return from the API.
  {

     * location: Santa Clara, CA
     * geo: null
  }
  {

     * location: iPhone: 37.313690,-122.022911
     * geo: null
  }

  {

     * location: ÜT: 37.293106,-121.969004
     * geo: null
  }

  1) im not sure why I haven't seen any tweet with geo filed included(I
  go through more than 20 pages). Is this normal? Is that possible to
  get only tweet with geo included?

  2) if 1) won't work, I want to filter all the tweets with valid
  location like the second one, therefore, I can push the tweet on map.
  Is the keyword also apply for the location? It's hard for the first
  one cuz it doesn't have the detail address.

  Thanks!

 --
 Raffi Krikorian
 Twitter Platform Team
 ra...@twitter.com | @raffi


[twitter-dev] Testing whitelisted IP

2009-11-25 Thread shiplu
If I send the following query to twitter from my whitelisted IP I get
X-RateLimit-Limi: 150. Shouldn't it be 20,000 ?

$ curl  -i 'http://twitter.com/search.json?q=Intel'
HTTP/1.1 200 OK
Date: Wed, 25 Nov 2009 20:57:24 GMT
Server: hi
X-RateLimit-Limit: 150
X-Transaction: 1259182644-48393-13844
Status: 200 OK
ETag: fcaf33d8c4c24d59d2f0fc1ec99e20f8
Last-Modified: Wed, 25 Nov 2009 20:57:24 GMT
X-RateLimit-Remaining: 147
X-Runtime: 0.05157
Content-Type: application/json; charset=utf-8
Pragma: no-cache
Content-Length: 7594
Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
Expires: Tue, 31 Mar 1981 05:00:00 GMT
X-Revision: DEV
X-RateLimit-Reset: 1259182760
Set-Cookie: 
_twitter_sess=BAh7CDoRdHJhbnNfcHJvbXB0MDoHaWQiJWVlY2M5MWU5MzE3YjhjMTQwMTNm%250AZWE1MmYxMmU0NDViIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFz%250AaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--6fa4c4ce1ea2802dfeccc88ea41b96d299d59707;
domain=.twitter.com; path=/
Vary: Accept-Encoding
Connection: close

{results:[
__truncated___

Does that mean its not yet activated as I got the approval mail already.



-- 
A K M Mokaddim
My talks, http://talk.cmyweb.net
Follow me, http://twitter.com/shiplu
SUST Programmers, http://groups.google.com/group/p2psust
Innovation distinguishes bet ... ... (ask Steve Jobs the rest)


[twitter-dev] Does your app have an API, Accessible Data or Widgets?

2009-11-25 Thread Peter Denton
Hello Everyone,
After speaking with many developers, its apparent many people do not know
which apps/services in the twitter ecosystem offer API's, accessible data,
have widgets, etc for other developers to use in their projects.

Does your app have an API, Accessible Data or Widgets? If so, please submit
it so I can add it to the list.

I have created a form to collect this information -
http://twibs.com/mashups.php

Please add your app/service information and I will gather, sort, and publish
the information for the group to use. I think this will be very cool and
will help app/service developers to know what is available for use on your
own projects.

If you have any questions, please email me.

Regards
Peter


[twitter-dev] Re: Twitter PHP + CentOS

2009-11-25 Thread jmathai
Check the versions of software you're using. CentOS likes to make you
jump through hoops in order to get newer software.

Namely, check your PHP version.

On Nov 25, 9:08 am, aztroboy jbasur...@gmail.com wrote:
 Hello there! I'm using a PHP Twitter OAuth library (twitter.abrah.am),
 and it works perfect on Windows: the php script looks asks twitter for
 an auth token. However, as soon as I put the same script on CentOS
 (with its default httpd service), it won't give any auth tokens at
 all.

 The script uses cURL to get the token from twitter. I've used cURL
 (curlwww.google.com) and it works fine in console.

 What could be going wrong here? Is there something I should add of
 change first in order to receive the tokens? By the way, I got the
 CentOS default FW set allowing traffic on port 80 and SSH only.

 I would like to ask for a hint about what should I do, I'm kinda
 newbie on CentOS.

 thank you in advance


Re: [twitter-dev] Does your app have an API, Accessible Data or Widgets?

2009-11-25 Thread Abraham Williams
Awesome. Submitted Interset's [1] API. Can't wait to see the full list.

Abraham

[1] http://intersect.labs.poseurtech.com/

On Wed, Nov 25, 2009 at 17:17, Peter Denton petermden...@gmail.com wrote:

 Hello Everyone,
 After speaking with many developers, its apparent many people do not know
 which apps/services in the twitter ecosystem offer API's, accessible data,
 have widgets, etc for other developers to use in their projects.

 Does your app have an API, Accessible Data or Widgets? If so, please submit
 it so I can add it to the list.

 I have created a form to collect this information -
 http://twibs.com/mashups.php

 Please add your app/service information and I will gather, sort, and
 publish the information for the group to use. I think this will be very cool
 and will help app/service developers to know what is available for use on
 your own projects.

 If you have any questions, please email me.

 Regards
 Peter




-- 
Abraham Williams | Community Evangelist | http://web608.org
Hacker | http://abrah.am | http://twitter.com/abraham
Project | Awesome Lists | http://twitterli.st
This email is: [ ] blogable [x] ask first [ ] private.
Sent from Madison, WI, United States


Re: [twitter-dev] Does your app have an API, Accessible Data or Widgets?

2009-11-25 Thread Cameron Kaiser
 After speaking with many developers, its apparent many people do not know
 which apps/services in the twitter ecosystem offer API's, accessible data,
 have widgets, etc for other developers to use in their projects.

When you say apps, do you mean web apps, or client apps? TTYtter has its
own API for plugins. I suspect other clients do as well.

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- No Alchemy (unless it works) -- Girl Genius 2006-07-12 ---


[twitter-dev] Delphi

2009-11-25 Thread John Meyer
Is there anybody out there working on a Delphi/Pascal library to access 
Twitter?


Re: [twitter-dev] Does your app have an API, Accessible Data or Widgets?

2009-11-25 Thread Peter Denton

Hi Cameron
Both web and client. The end goal is to just have a resource devs can  
quickly check to see if there's an API or service available to use.


Also if you want me to add categories, I'd can add anything else  
people would want to know.


Thanks
Peter

On Nov 25, 2009, at 4:13 PM, Cameron Kaiser spec...@floodgap.com  
wrote:


After speaking with many developers, its apparent many people do  
not know
which apps/services in the twitter ecosystem offer API's,  
accessible data,

have widgets, etc for other developers to use in their projects.


When you say apps, do you mean web apps, or client apps? TTYtter has  
its

own API for plugins. I suspect other clients do as well.

--
 personal: http://www.cameronkaiser.com/ 
 --

 Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- No Alchemy (unless it works) -- Girl Genius 2006-07-12  
---


[twitter-dev] Re: Sudden OAuth failures from a specific IP address

2009-11-25 Thread timwhitlock
Since writing this I have tried the same code from my machine at home
and all works fine.


[twitter-dev] Re: Twitter PHP + CentOS

2009-11-25 Thread aztroboy
Thank you for your reply,

[r...@twirelezz ~]# php -version
PHP 5.1.6 (cli) (built: Apr  7 2009 08:00:04)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies


Not bad, now I updated PHP to its lastest version:

[r...@twirelezz ~]# php -v
PHP 5.3.1 (cli) (built: Nov 20 2009 17:51:14)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies


However, I'm getting the same response: twitter won't give me the
auth_token :( (or at least, it's giving me a null response)

On 25 nov, 18:36, jmathai jmat...@gmail.com wrote:
 Check the versions of software you're using. CentOS likes to make you
 jump through hoops in order to get newer software.

 Namely, check your PHP version.

 On Nov 25, 9:08 am, aztroboy jbasur...@gmail.com wrote:

  Hello there! I'm using a PHP Twitter OAuth library (twitter.abrah.am),
  and it works perfect on Windows: the php script looks asks twitter for
  an auth token. However, as soon as I put the same script on CentOS
  (with its default httpd service), it won't give any auth tokens at
  all.

  The script uses cURL to get the token from twitter. I've used cURL
  (curlwww.google.com) and it works fine in console.

  What could be going wrong here? Is there something I should add of
  change first in order to receive the tokens? By the way, I got the
  CentOS default FW set allowing traffic on port 80 and SSH only.

  I would like to ask for a hint about what should I do, I'm kinda
  newbie on CentOS.

  thank you in advance


Re: [twitter-dev] Does your app have an API, Accessible Data or Widgets?

2009-11-25 Thread Cameron Kaiser
 Both web and client. The end goal is to just have a resource devs can  
 quickly check to see if there's an API or service available to use.

Okay, done.

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- Anything that can be put into a nutshell belongs there. -- F. G. Brauer 


Re: [twitter-dev] Re: Twitter PHP + CentOS

2009-11-25 Thread Michael Steuer
Create a page that prints out phpinfo(). See if the curl module is  
active in your php




On Nov 25, 2009, at 5:19 PM, aztroboy jbasur...@gmail.com wrote:


Thank you for your reply,

[r...@twirelezz ~]# php -version
PHP 5.1.6 (cli) (built: Apr  7 2009 08:00:04)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies


Not bad, now I updated PHP to its lastest version:

[r...@twirelezz ~]# php -v
PHP 5.3.1 (cli) (built: Nov 20 2009 17:51:14)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies


However, I'm getting the same response: twitter won't give me the
auth_token :( (or at least, it's giving me a null response)

On 25 nov, 18:36, jmathai jmat...@gmail.com wrote:

Check the versions of software you're using. CentOS likes to make you
jump through hoops in order to get newer software.

Namely, check your PHP version.

On Nov 25, 9:08 am, aztroboy jbasur...@gmail.com wrote:

Hello there! I'm using a PHP Twitter OAuth library  
(twitter.abrah.am),
and it works perfect on Windows: the php script looks asks twitter  
for

an auth token. However, as soon as I put the same script on CentOS
(with its default httpd service), it won't give any auth tokens at
all.



The script uses cURL to get the token from twitter. I've used cURL
(curlwww.google.com) and it works fine in console.



What could be going wrong here? Is there something I should add of
change first in order to receive the tokens? By the way, I got the
CentOS default FW set allowing traffic on port 80 and SSH only.



I would like to ask for a hint about what should I do, I'm kinda
newbie on CentOS.



thank you in advance


[twitter-dev] I guess there is a bug in this API: POST /:user/:id/members

2009-11-25 Thread Klaus
I guess there is a bug in this API: POST /:user/:id/members

when on web, if I'm not following a guy who has protected his tweets,
I don't have a way to add this guy to any of my lists.
however, I can do this through API method. Even tho this guy protects
his tweets, he's been added to my lists. sure I can't see his tweets,
but he's in my list.

So, is this a bug?


Re: [twitter-dev] Sudden OAuth failures from a specific IP address

2009-11-25 Thread Ryan Sarver
Tim,

can you provide us with your IP so we can look into it?

Thanks, Ryan

On Wednesday, November 25, 2009, timwhitlock
tim.whitl...@publicreative.com wrote:
 Has anyone found their existing code suddenly getting OAuth failures?
 I'm getting a 401 (Failed to validate oauth signature and token)

 Normally I'd assume that I've been an idiot and screwed up my code -
 Except that the code is unchanged from yesterday when it was working
 perfectly. I've also had the same code in production for months with
 no such errors, and those sites are still operating fine.

 This points to a problem with my IP.

 Can anyone at Twitter help? Have I been blocked?
 It's only the OAuth call that is failing. Other non-authed requests
 are working ok.



[twitter-dev] Re: oauth Process flow and status Part 1

2009-11-25 Thread abruton
Thank you for the help. I'm still trying to get the first part to
work...

 1.  The first step in the process, you will make a GET request to
  http://twitter.com/oauth/request_token;.  In this request, you will need
 the following parameters in this specific order:
 oauth_consumer_key
 oauth_nonce
 oauth_signature_method
 oauth_timestamp
 oauth_version
 oauth_signature

What string do I sign?

The whole URL?
Eg:
oauth_consumer_key=2FuDFffo1MnWkw9g2JK7621HAoauth_nonce=1112009260947V57BUQK06I7H1BL88VBR65VT2oauth_signature_method=HMAC-
SHA1oauth_timestamp=1259226047oauth_version=1.0

or

http://twitter.com/oauth/request_token?oauth_consumer_key=2FuDFffo1MnWkw9g2JK7621HAoauth_nonce=1112009260947V57BUQK06I7H1BL88VBR65VT2oauth_signature_method=HMAC-SHA1oauth_timestamp=1259226047oauth_version=1.0

When do I UTF-8 encode? Before signing or after signing?

Same with the posting? What do i post and when do I UTF-8 encode?

Best regards

Andre



On Nov 24, 10:17 pm, ryan alford ryanalford...@gmail.com wrote:
 The signature has to go last.  That's one mistake that most people make.
  You are suppose to put the parameters in order EXCEPT the signature
 parameter.  The signature parameter is created by using the other
 parameters, then it's appended to the end of the query string.

 The OAuth signature is generated.

 I made a blog post where I tried to explain it a little better than the
 documentation does.  It's for .Net for the desktop, but the process is the
 same for any language, and only slightly different for web applications.

 http://eclipsed4utoo.com/blog/net-twitter-desktop-oauth-authentication/



 On Tue, Nov 24, 2009 at 3:12 PM, abruton andrebru...@gmail.com wrote:
  Hi All

  I am trying to get my head around the Twitter oauth flow.

  The twitter documentation links to oauth.net for parameters, but these
  are general and not well documented.

  Is the first step to usehttp://twitter.com/oauth/request_token?

  1. I created the following URL:

 http://twitter.com/oauth/request_token?oauth_consumer_key=3Uu...1HAo...

  When I put this in a browser to test it, I get the following error:

  Failed to validate oauth signature and token

  1. What is wrong with the string?
    - Is the oauth_signature just your Consumer secret string?
    - Do I have to use oauth_signature_method and what method do I use.
  If it is sha1, what string do I hash? The whole URL?

  Do I POST the data tohttp://twitter.com/oauth/request_tokenor GET or
  what?

  Best regards

  Andre F Bruton