Re: [twitter-dev] help me plz quiry speed and geocode

2010-11-28 Thread Pascal Jürgens
Hello noname,

the search api is rate limited and only allows a non-disclosed amount of 
queries per hour. You will need to look into the streaming api: consume the 
sample stream and extract geodata. This also gives you tweets from all over the 
world.

Have a look at

http://dev.twitter.com/pages/streaming_api

Cheers,
Pascal

On Nov 28, 2010, at 12:34 AM, disc31 wrote:

 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.

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


Re: [twitter-dev] Twitter API

2010-11-28 Thread Adriaan Pelzer
Yes, this will work.

Twitter's implementation of OAuth is not up to spec, so they issue
long-lived tokens (that never expire). These can be stored in a database and
reused forever (or until Twitter updates their implementation of OAuth).
Although this has serious security risks, it makes the implementation of a
multi-account solution very easy.

If I were you though, I would query the access token at the beginning of
each session (as per oauth spec) instead of storing them. At some point,
Twitter is bound to get a lot of bad press for their poor implementation of
OAuth, and I bet the first thing they'll do is switch to short-lived tokens.
It's only a little more effort, and it makes your app future proof.

Adriaan Pelzer
RAAK
putting you in touch with your crowds
http://www.wewillraakyou.com
http://www.wewillraakyou.comtwitter: http://www.twitter.com/adriaan_pelzer
linkedIn: http://uk.linkedin.com/pub/adriaan-pelzer/4/874/860/
skype: adriaan_pelzer
http://uk.linkedin.com/pub/adriaan-pelzer/4/874/860/
+4478 7978 1743



On Fri, Nov 26, 2010 at 9:08 PM, Edward Hotchkiss 
edw...@edwardhotchkiss.com wrote:

 save the token in a db.

 On Nov 26, 2010, at 7:20 AM, Tom Callahan wrote:

  Hi All,
 
  I am trying to develop a platform where I can allow people to login 
  add multiple twitter accounts. They will be able to post tweets, view
  posted tweets, view tweet replies etc.
 
  I came to know that Basic Authentication has been stopped for Twitter
  API  so I am using oAuth to connect to Twitter.
 
  I have registered my application in http://dev.twitter.com/apps  have
  got the access token and access token secret. However, the way I see
  it now, for every Twitter account that gets added to my application,
  the user will have to generate the access token. This process is very
  complicated  is not user-friendly.
 
  I am requesting you to please let me know how can I find a solution
  for the same where I can automatically get the access token for all
  the twitter accounts that gets added to my application. I have seen a
  similar process in use here - http://mediafunnel.com/
 
  Please help me with this. Your support  cooperation will be highly
  appreciated.
 
  Thanks in advance!!
 
  Regards,
  Tom
 
  --
  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


 Regards,

 
 Edward Hotchkiss
 edw...@edwardhotchkiss.com
 http://www.edwardhotchkiss.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 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: difference between geo and coordinates in status

2010-11-28 Thread David W
So to answer my own question here a bit, I think that geo has been
replaced by coordinates (at the status level) - but that place does
not replace coordinates, but is rather used alongside it in some
cases.

It appears that they are used together on quite a number of
occasions.  A lot of foursquare statuses appear to provide an exact
location in the coordinates (status) property *and* provide place info
that frames the exact location in a bounding box of the surrounding
city (for example).

It looks like twitter.com's implementation uses both coordinates and
place to display their embedded maps, which is cool.  So I'm moving
forward on the basis that I should be paying attention to both status
level coordinates and place data.

Would be great if someone could confirm my presumptions are correct
here.

Cheers,
dw.

On Nov 17, 1:22 pm, David W d_wy...@yahoo.com wrote:
 Is it fair to say that both geo and coordinates have effectively been
 replaced by place?  Or is there circumstances when you would still use
 coordinates over place?

 In other words - if I were building a brand new client from scratch
 would I pay any attention to geo or coordinates, or only concern
 myself with place?

 Cheers,
 dw.

 On Oct 26, 9:07 pm, Matt Harris thematthar...@twitter.com wrote:

  Hi Kim,

  Thanks for following up - I did think you were referring to the place
  coordinates not the status coordinates.

  In the status object there is a geo block and a coordinates block. Both
  contain the same information but one is in human readable form (the geo
  block -- lat,lon) whilst the other is in geojson form (the coordinates block
  -- lon, lat).

  The reason for both fields is historical and due to us wanting to keep
  backwards compatibility. When developing you should use the coordinates
  block as this is the geojson friendly format.

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

  On Tue, Oct 26, 2010 at 12:36 PM, Kim kimdhamil...@gmail.com wrote:
   Hi Matt,
   I'm probably missing something, but that thread seems to be describing
   the difference between place coordinates, as opposed to the
   coordinates field that's at the status level (same level as geo, as
   shown in my example above). Those coordinates appear to be redundant
   with geo.

   Thanks,
   Kim

   On Oct 26, 12:07 pm, Matt Harris thematthar...@twitter.com wrote:
Hi Kim,

This was discussed in another thread in the group:

   http://groups.google.com/group/twitter-development-talk/browse_thread...

You should find the answer your question there.

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

On Tue, Oct 26, 2010 at 10:34 AM, Kim kimdhamil...@gmail.com wrote:
 Hi,
 Apologies if this has been answered before, but I couldn't find the
 answer anywhere.

 I'm using the Streaming API and, based on the data I've seen so far,
 the coordinates and geo fields appear to contain duplicate info. If a
 status contains 1 of these fields, then it contains both, and the only
 difference is the order of lat and lon. I've included an example
 below.

 Is this correct? Is one of these fields legacy, and if so, which one?

 {
    ...
    coordinates: {
        type: Point,
        coordinates: [
            -74.147244,
            40.638104
        ]
    },
    ...
    geo: {
        type: Point,
        coordinates: [
            40.638104,
            -74.147244
        ]
    },
 }

 Thanks!
 Kim

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


Re: [twitter-dev] Twitter API

2010-11-28 Thread Igor Kharin
Here's how Sign in with Twitter button works:
http://dev.twitter.com/pages/sign_in_with_twitter

For end-user is just like one-click operation, he doesn't need to
generate the access token. All the magic comes from server-side. You
will need an access token for every account you working with. This is
just how OAuth works.

On Fri, Nov 26, 2010 at 6:20 PM, Tom Callahan skmajumder...@gmail.com wrote:
 Hi All,

 I am trying to develop a platform where I can allow people to login 
 add multiple twitter accounts. They will be able to post tweets, view
 posted tweets, view tweet replies etc.

 I came to know that Basic Authentication has been stopped for Twitter
 API  so I am using oAuth to connect to Twitter.

 I have registered my application in http://dev.twitter.com/apps  have
 got the access token and access token secret. However, the way I see
 it now, for every Twitter account that gets added to my application,
 the user will have to generate the access token. This process is very
 complicated  is not user-friendly.

 I am requesting you to please let me know how can I find a solution
 for the same where I can automatically get the access token for all
 the twitter accounts that gets added to my application. I have seen a
 similar process in use here - http://mediafunnel.com/

 Please help me with this. Your support  cooperation will be highly
 appreciated.

 Thanks in advance!!

 Regards,
 Tom

 --
 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] trying to get friends suggestions

2010-11-28 Thread SeanthePaddy
hi,

in my php app i want to get friends suggestions but i can't

this is what im doing :

$suggestions=$connection-get('users/suggestions/category','sports');

but i get :

[error] = Can't find that category

can someone please tell me whats wrong ?

tnx

-- 
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] trying to get friends suggestions

2010-11-28 Thread Abraham Williams
This call is trying to get the suggested users in the category of
category. Try something like this:

$suggestions=$connection-get('users/suggestions/sports');

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 Sun, Nov 28, 2010 at 10:12, SeanthePaddy cliffords...@gmail.com wrote:

 hi,

 in my php app i want to get friends suggestions but i can't

 this is what im doing :

 $suggestions=$connection-get('users/suggestions/category','sports');

 but i get :

 [error] = Can't find that category

 can someone please tell me whats wrong ?

 tnx

 --
 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] Finding People With E-Mail Address!

2010-11-28 Thread Burak Özkan
Hi everybody,

I want find people by e-mail address. How can I find people with their
e-mail address? Can I search to people account via e-mail?

-- 
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] Convert RSS entries to tweets

2010-11-28 Thread Chief
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: Spam Tweets

2010-11-28 Thread TweetzMatter

Anyones valid answer is appreciated:

How is it that moments after opening a twitter account, 2 or 3 'spam'  
followers have already found it?

Drives me crazy. 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] Twitter talking with max/MSP

2010-11-28 Thread Brian Putz
Hey Everyone,

Right now I am trying to get twitter to talk with max/MSP and I am
having trouble getting the API's for the specific keyword I plan on
needing for the patch.

Do I need to have a specific web app before I can get access to
retrieve specific key word tweets. All it would do is just increment a
number and not even copy or retweet anything.

It is meant to just adjust a numeric value that in turn will adjust an
arduino serial value

I hope this makes sense. If not I would be will to try to explain it
further. Please feel free to contact via email or on here.

Cheers

Brian Putz

-- 
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: Tweet Button Not Valid XHTML

2010-11-28 Thread Rbeuque74
It could be great to have a 100% valid XHTML1.0Strict tweet button,
because I want all my website pass w3c check, and now it's broken ...

On 19 nov, 15:59, Tom van der Woerdt i...@tvdw.eu wrote:
 These attributes are HTML5 attributes, not XHTML attributes.

 Tom

 On 11/19/10 7:17 AM, BG wrote:

  Hello,

  I hope this is the right place to post this but I have found an issue
  when using the Tweet button on my website. I use the custom version.

  When I run it through the W3C Validator I get these errors and I have
  tried Doctype variations but they all don't validate.

  there is no attribute data-url

  there is no attribute data-count

  there is no attribute data-text

  there is no attribute data-via

  I make my websites to validate for a number of reasons and they are
  usually 100% valid but with the tweet button they won't validate
  anymore. I'm surprised at this as I thought the developers would have
  made sure the button validates before anything!

-- 
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: Geocoded searches broken

2010-11-28 Thread MikeUCUD
I'm having the same issue.  It worked again for a little while, but
hasn't worked in a day or 2.

-- 
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: lang=en queries to search API not working

2010-11-28 Thread MartinW
Hi Steve,

I've found the same problem over the past couple of days too. I had
also narrowed it down to the lang parameter but selecting all does
still not guarantee results.

This is now impacting my live site as no results are being returned.
I'm also going to investigate whether rate limiting could be the
issue.

Please let me know if you get any further with your investigations.

Cheers
Martin Wright

http://www.twitseek.com

On Nov 27, 3:42 am, steve ick...@gmail.com wrote:
 This reproduces even onhttp://search.twitter.com.  If you try to
 filter to en only results you get back 0 items for most queries.
 Select try all languages from the search portal or remove lang=en
 from your API query and you get results for your queries (most of
 which are in english.)

 What's weird is this seemed to be working fine until about 2 days
 ago.  And its been very intermittent since.  Yesterday queries would
 work for a while then they would stop working (same query to the
 API.)  But today they seem to be broken for me all day.  Other members
 of my team reported the same issue yesterday so it defenitly seems to
 be something on your end.

 BTW... When calling the API and this happens we're getting back an
 error similar to this:

 jsonp1290717568994({results:[],max_id:7896158276488192,since_id:
 7896158276488192,refresh_url:?
 since_id=7896158276488192q=Thanksgiving,results_per_page:50,page:
 1,completed_in:0.019352,warning:adjusted since_id to
 7896158276488192 due to temporary
 error,since_id_str:7896158276488192,max_id_str:7896158276488192,query:Thanksgiving});

 I did a search and this error was reported back in June but nobody
 ever responded... Crossing my fingers that this message doesn't go
 into the void as well...

-- 
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: Geocoded searches broken

2010-11-28 Thread Randy Walker
I can confirm we are having the same issue still with our geo coded
searches.

FWIW, the error is very similar to the one we got with non-geo
searches when we specified language (lang=en).

Just like the language search bug, you can get around this by putting
'since' in the url (since=2010-11-24)

Not sure why but this appears to be related to the snowflake change on
Friday. At least that is when these seem to have broke.

On Nov 26, 10:53 am, Mack D. Male master...@gmail.com wrote:
 Since yesterday, geocoded searches have been broken intermittently.
 Sometimes results are returned normally, then for stretches of time
 (30 minutes or more) no results are returned. During that time,
 there's a warning like the following:

 adjusted since_id to 8230615843933184 due to temporary error

 Here's a query that at this very moment (~11:55 AM) returns zero
 results:http://search.twitter.com/search?q=near:%22Edmonton,Alberta%22

 It stopped working about an hour ago (~10:55 AM MST).

 Any information on this?

-- 
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 danetroup
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] Simple example of how to post a tweet from my website using PHP

2010-11-28 Thread Wargame Website
Hi

I'm new to web development and I'm having a hard time finding the
right example or tutorial for what I want to do.

At the moment all I'm looking to do is have my website post an
automated tweet to my own Twitter account using PHP. I've got my
Consumer_Key and Consumer_Secret keys sorted out.

I'm not interested in enabling users of my site to post tweets via my
site, yet all the examples I seem to find are on how to enable this.

I've been looking at Abraham Williams' OAuth library, since you
apparently need to use OAuth to connect now, but I'm still none the
wiser of how I just get my site to post a tweet.

Can anyone point me towards a simple tutorial for this?

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


Re: [twitter-dev] Simple example of how to post a tweet from my website using PHP

2010-11-28 Thread Adam Green
Here is a tutorial that takes you through the entire process of
tweeting to a single Twitter account using PHP and OAuth:
http://140dev.com/twitter-api-programming-tutorials/hello-twitter-oauth-php/

You can contact me directly if you have any questions.

On Sun, Nov 28, 2010 at 7:35 AM, Wargame Website warga...@cerebros.net wrote:
 Hi

 I'm new to web development and I'm having a hard time finding the
 right example or tutorial for what I want to do.

 At the moment all I'm looking to do is have my website post an
 automated tweet to my own Twitter account using PHP. I've got my
 Consumer_Key and Consumer_Secret keys sorted out.

 I'm not interested in enabling users of my site to post tweets via my
 site, yet all the examples I seem to find are on how to enable this.

 I've been looking at Abraham Williams' OAuth library, since you
 apparently need to use OAuth to connect now, but I'm still none the
 wiser of how I just get my site to post a tweet.

 Can anyone point me towards a simple tutorial for this?

 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




-- 
Adam Green
Twitter API Consultant and Trainer
http://140dev.com
@140dev

-- 
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] Simple example of how to post a tweet from my website using PHP

2010-11-28 Thread Abraham Williams
To tweet to your own Twitter account with TwitterOAuth is as simple as three
line of code:

https://gist.github.com/564882

The wiki also lists a number of excellent guides/howtos specific for
TwitterOAuth:

https://github.com/abraham/twitteroauth/wiki/links

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 Sun, Nov 28, 2010 at 04:35, Wargame Website warga...@cerebros.netwrote:

 Hi

 I'm new to web development and I'm having a hard time finding the
 right example or tutorial for what I want to do.

 At the moment all I'm looking to do is have my website post an
 automated tweet to my own Twitter account using PHP. I've got my
 Consumer_Key and Consumer_Secret keys sorted out.

 I'm not interested in enabling users of my site to post tweets via my
 site, yet all the examples I seem to find are on how to enable this.

 I've been looking at Abraham Williams' OAuth library, since you
 apparently need to use OAuth to connect now, but I'm still none the
 wiser of how I just get my site to post a tweet.

 Can anyone point me towards a simple tutorial for this?

 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: Geocoded searches broken

2010-11-28 Thread bob.hitching
seeing the same problem on http://geome.me, for example -

http://search.twitter.com/search.json?geocode=37.44452,-122.161304,7kmq=love

Response includes:
... warning:adjusted since_id to 9031872674339840 due to temporary
error ...

thanks to Randy for the workaround.

help us Twitter!

On Nov 28, 10:41 am, MikeUCUD michaelmcca...@gmail.com wrote:
 I'm having the same issue.  It worked again for a little while, but
 hasn't worked in a day or 2.

-- 
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: Spam Tweets

2010-11-28 Thread Edward Hotchkiss
id_str iteration.

On Nov 27, 2010, at 9:43 AM, TweetzMatter wrote:

 Anyones valid answer is appreciated:
 
 How is it that moments after opening a twitter account, 2 or 3 'spam' 
 followers have already found it?
 Drives me crazy. 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


Regards,


Edward Hotchkiss
edw...@edwardhotchkiss.com
http://www.edwardhotchkiss.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


Re: [twitter-dev] Simple example of how to post a tweet from my website using PHP

2010-11-28 Thread Edward Hotchkiss
use his library, skip all the example shit, then fill in the 3,4 paramters 
where 1,2 are consumer keys with your access keys which will then post without 
oauthing to your account. use this tweet example and ur golden, ignore the 
clearsessios, callback etc.

On Nov 28, 2010, at 7:35 AM, Wargame Website wrote:

 Hi
 
 I'm new to web development and I'm having a hard time finding the
 right example or tutorial for what I want to do.
 
 At the moment all I'm looking to do is have my website post an
 automated tweet to my own Twitter account using PHP. I've got my
 Consumer_Key and Consumer_Secret keys sorted out.
 
 I'm not interested in enabling users of my site to post tweets via my
 site, yet all the examples I seem to find are on how to enable this.
 
 I've been looking at Abraham Williams' OAuth library, since you
 apparently need to use OAuth to connect now, but I'm still none the
 wiser of how I just get my site to post a tweet.
 
 Can anyone point me towards a simple tutorial for this?
 
 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


Regards,


Edward Hotchkiss
edw...@edwardhotchkiss.com
http://www.edwardhotchkiss.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


Re: [twitter-dev] Twitter API

2010-11-28 Thread Abraham Williams

 Twitter's implementation of OAuth is not up to spec, so they issue
 long-lived tokens (that never expire). These can be stored in a database and
 reused forever (or until Twitter updates their implementation of OAuth).
 Although this has serious security risks, it makes the implementation of a
 multi-account solution very easy.


Maybe you are getting OAuth 1 confused with OAuth 2 but the OAuth 1 spec
does not define or even recommend how a provider should handle token
duration.

If I were you though, I would query the access token at the beginning of
 each session (as per oauth spec) instead of storing them. At some point,
 Twitter is bound to get a lot of bad press for their poor implementation of
 OAuth, and I bet the first thing they'll do is switch to short-lived tokens.
 It's only a little more effort, and it makes your app future proof.


@anywhere uses short lived tokens similar to OAuth 2. You could use the
internal authentication mechonism it uses although it is unsupported and
could break at anytime:
http://blog.abrah.am/2010/09/hacking-twitter-anywheres.html

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.

-- 
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: 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] Different crossdomains for a0.twimg.com a2.twimg.com, a3 etc

2010-11-28 Thread stephen
Hey,

It appears the crossdomains for a2, a3, etc are different and are
preventing flash from accessing profile images on these domains.  a0
and a1 are fine, however the api returns profile image urls using all
of these domains (a0 - a?).

Are the crossdomains suppose to be all the same or are we suppose to
target only the first two?  From the few that I've tested, it seems
all profile images are accessible through the a0 or a1 domains despite
what the api returns.

Crossdomains

http://a0.twimg.com/crossdomain.xml
http://a1.twimg.com/crossdomain.xml
http://a2.twimg.com/crossdomain.xml
http://a3.twimg.com/crossdomain.xml

Stephen

-- 
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] New Twitter changes affecting Juitter App?

2010-11-28 Thread codeless
Hoping someone can help out with this. I like using Juitter (http://
www.juitter.com/). But the new changes made to Twitter on Friday are
affecting it. The toUser and fromUser functions still work. But
searchWord no longer functions, just a blank screen. Anyone know what
I need to change to fix it? It's a very small script, probably very
simple fix. Thank you for you assistance!

-- 
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] Search API Optional lang Has Problem.

2010-11-28 Thread Jeong Hoon Kim
About 5 days ago, Suddenly Search API Optional lang had no results..My
optional lang is ko.
Did anybody apply Search API lang option? Did the results come out
correctly?

-- 
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] New Twitter changes affecting Juitter App?

2010-11-28 Thread Adam Green
It looks like Juitter search is based on the search API and uses
lang=en in the query. That parameter has been broken/flaky for a few
days. A lot of us have found this. Taking out lang=en for now worked
for my scripts.

On Sun, Nov 28, 2010 at 7:15 PM, codeless djmed...@gmail.com wrote:
 Hoping someone can help out with this. I like using Juitter (http://
 www.juitter.com/). But the new changes made to Twitter on Friday are
 affecting it. The toUser and fromUser functions still work. But
 searchWord no longer functions, just a blank screen. Anyone know what
 I need to change to fix it? It's a very small script, probably very
 simple fix. Thank you for you assistance!

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




-- 
Adam Green
Twitter API Consultant and Trainer
http://140dev.com
@140dev

-- 
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: Convert RSS entries to tweets

2010-11-28 Thread L. Mohan Arun
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?

Simply use twitterfeed.com.

If you really want to do it with your own twitter app, see
http://www.mabujo.com/blog/posting-from-an-rss-feed-to-twitter-using-oauth/

~~~ Mohan Arun ~~~

-- 
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: Finding People With E-Mail Address!

2010-11-28 Thread L. Mohan Arun
 I want find people by e-mail address. How can I find people with their
 e-mail address? Can I search to people account via e-mail?

This has been discussed before

http://groups.google.com/group/twitter-development-talk/browse_thread/thread/23eabbb53998b023?fwc=1

-- 
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 Twitter changes affecting Juitter App?

2010-11-28 Thread codeless
That fixed it!!! A million thank yous!

-- 
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] Problem - SSL CA cert

2010-11-28 Thread Georgooty varghese
Dear Twitter,

Thanks for reply. I do the the all things says in
http://curl.haxx.se/docs/sslcerts.html . So the issue solved in the PC using
libcurl. But the issue not solved in embedded environment board. I have
copied the same file in board, but the issue not solved.  If any other
certification need in board?.

How the issue is solved?

Anybody please help me.

Regards,
George

On Thu, Nov 25, 2010 at 6:13 PM, Cameron Kaiser spec...@floodgap.comwrote:

  I have developed a twitter application in C language using Libcurl. I
 have
  used xAuth authentication.The application was working in PC as fine. I am
  special thanks to twitter engineers for helping to me successfully
  completion of twitter application in PC. Now I am facing a critical
 issue.
  My C code is inegrating into embedded environment (board), I got SSL
  certification pblm when query accesstoken(HTTPS).  I can't get the
  accesstoken.
  What certificates do I need when I use SSL?.
  What certification need twitter for SSL(HTTPS).? How to get the secure
 SSL
  certificate?

 http://curl.haxx.se/docs/sslcerts.html

 --
  personal:
 http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com *
 ckai...@floodgap.com
 -- Bugs of a feather flock together. -- Russell Nelson
 

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