[twitter-dev] OAuth example in Java language

2009-05-05 Thread Yusuke

Hi,

I wrote an OAuth example code for Java language.
http://yusuke.homeip.net/twitter4j/en/code-examples.html#oauth

I hope you can add the link to the following page.
http://apiwiki.twitter.com/OAuth-Examples

Cheers,
Yusuke


[twitter-dev] Re: Direct Message Emails Vulnerable?

2009-05-05 Thread Arik Fraimovich

 I do have to question having your client verify DKIM again, though.  
 These activities should be dealt with inside of your MTA and not a  
 mail destination script hanging off of the MTA. What exactly are you  
 trying to protect against? A user forging an email to your MTA as  
 twitter?
Yes - that's exactly what I'm afraid of.

 That's defensible by fixing your MTA's configuration (to validate DKIM  
 and SPF coming from twitter.com hosts) and not doing it in your script.

You're right. After doing a quick reading yesterday, I realized that I
can configure Postfix to do this validations for me.
The only reason I'm still considering doing the DomainKeys validation
in my code is because I heard more than once that DomainKeys is still
not stable enough and can cause problems. Having it in my code instead
of Postfix configuration makes it more maintainable, isn't it?

Arik


[twitter-dev] Re: List of API methods

2009-05-05 Thread Mike Lewis

Sorry, don't know if the message I just sent got sent or discarded.

In short:

http://github.com/mikelikespie/TwitterLibGen/

data.py
What I'd like the data to be something like. (first 3 at least)
(the rest were scraped and probably are incorrect)

tweetgen.py
Self generating library that uses the data.py info when you import
it
(play around with it in interactive shell)

test.py
example that uses tweetgen. comment back in the one to see
the auth working (there should be exceptions, it's part of the
demo)

the rest is just the scaper my colleague wrote

On May 4, 1:21 pm, Doug Williams d...@twitter.com wrote:
 Mike,
 That would be great. A good demo can go a long way.

 Thanks,
 Doug

 
 Doug Williams | Platform Support | Twitter, Inc.

 539 Bryant St. Suite 402, San Francisco, CA 94107http://twitter.com/dougw

 On Mon, May 4, 2009 at 11:28 AM, Mike Lewis mikelikes...@gmail.com wrote:

  Hi Doug,

  An example of what I'd be interested in is

 http://www.flickr.com/services/api/flickr.reflection.getMethods.html

  and

 http://www.flickr.com/services/api/flickr.reflection.getMethodInfo.html

  With something like that for the twitter API which shows the
  parameters, the request type, if authentication is required, etc. it
  would be very easy to write something that generates a library for the
  API.

  It would be able to be very robust because most of the parameter
  checking could be done client-side, which means less guessing and
  invalid requests to twitter. Also, when there's API changes, the
  library could be updated automatically.

  Maybe tonight or something, I'll take a couple twitter methods and put
  them in a format similar to what I'd expect, and make a little demo on
  how one could generate a library.

  Cheers,
  Mike

  On May 4, 10:56 am, Doug Williams d...@twitter.com wrote:
   What we have to offer is available at the wiki. If you have a great idea
  for
   something we should add, a working demonstration goes a long way to
  helping
   us prioritize.

   Thanks,
   Doug

   
   Doug Williams | Platform Support | Twitter, Inc.

   539 Bryant St. Suite 402, San Francisco, CA 94107
 http://twitter.com/dougw

   On Mon, May 4, 2009 at 12:16 AM, Mike Lewis mikelikes...@gmail.com
  wrote:

I'm asking for the latter. I'm quite familiar with the apiwiki.

On May 3, 11:19 pm, Paul Kinlan paul.kin...@gmail.com wrote:
 If I am not mistaken, you can look here:
   http://apiwiki.twitter.com/Twitter-API-Documentation. That is unless
  you
 are asking for programmatic access to an api list via an api?

 2009/5/4 Mike Lewis mikelikes...@gmail.com

  Is there a way to generate a list of API methods in JSON, or CSV
  with
  the parameters, or a place where one could download one.

  I'm interested in this for generating a library.

  Thanks,
  Mike


[twitter-dev] Handling the OAuth flow when the user clicks Deny / Decline

2009-05-05 Thread jmathai

When the user clicks decline the flow is abruptly disrupted.  I didn't
see anything in the OAuth spec that specifies how a decline is
handled.

It would be nice if there was a decline url that the application
could specify which the user is redirected to.


[twitter-dev] Re: Seeing truncated XML responses again

2009-05-05 Thread atifzshaikh

Any updates on this issue?  Received a few more cases today.  Seems to
be caused by a timeout issue on twitter's end.

Thanks,

Atif

On May 4, 10:35 am, atifzshaikh atif.zsha...@gmail.com wrote:
 Received 8 more cases over the weekend. Please let me know if you need
 more details.

 - Atif

 On Apr 30, 3:25 pm, atifzshaikh atif.zsha...@gmail.com wrote:

  Just got 3 truncated XML requests from the users below, all of whom
  have friend/follower sets  1000.  One thing to note about how my
  application works.  If the application is getting a user's friend/
  follower set and if the first GET request fails for whatever reason,
  the application retries 2 more times.  If after the 3 tries it still
  fails to get a successful response from twitter it quits and assumes
  twitter is over capacity or something else is wrong.  I have detailed
  these re-tries below for the 3 truncated XML requests I just
  received.

  ===
  First Failed Request
  -
  User: thevikings
  Request: GET /statuses/friends.xml?page=14
  First Try:
      - Response: Exception thrown! Message : The operation has timed
  out. (I believe this is what caused the XML request to be truncated.)
          - Exception Details:
              - TargetSite: Int32 Read(Byte[], Int32, Int32)
              - Stack Trace :   at System.Net.ConnectStream.Read(Byte[]
  buffer, Int32 offset, Int32 size)
                                       at
  System.IO.StreamReader.ReadBuffer()
                                       at
  System.IO.StreamReader.ReadToEnd()
  Second Try:
      - Response: Successful XML request received

  ===
  Second Failed Request
  --
  User: thevikings
  Request: GET /statuses/friends.xml?page=18
  First Try:
      - Response: Exception thrown! Message : The operation has timed
  out.
          - Exception Details:
              - TargetSite: Int32 Read(Byte[], Int32, Int32)
              - Stack Trace :   at System.Net.ConnectStream.Read(Byte[]
  buffer, Int32 offset, Int32 size)
                                       at
  System.IO.StreamReader.ReadBuffer()
                                       at
  System.IO.StreamReader.ReadToEnd()
  Second Try:
      - Response: The remote server returned an error: (502) Bad
  Gateway. (don't know what caused this??)
          - Exception Details:
              - TargetSite: System.IO.Stream OpenRead(System.Uri)
              - Stack Trace :   at System.Net.WebClient.OpenRead(Uri
  address)
                                       at System.Net.WebClient.OpenRead
  (String address)
  Third Try:
      - Response: Successful XML request received

  ===
  Third Failed Request
  -
  User: ExciteCigi
  Request: GET /statuses/friends.xml?page=9
  First Try:
      - Response: Exception thrown! Message : The operation has timed
  out.
          - Exception Details:
              - TargetSite: Int32 Read(Byte[], Int32, Int32)
              - Stack Trace :   at System.Net.ConnectStream.Read(Byte[]
  buffer, Int32 offset, Int32 size)
                                       at
  System.IO.StreamReader.ReadBuffer()
                                       at
  System.IO.StreamReader.ReadToEnd()
  Second Try:
      - Response: Successful XML request received
  ===

  As you can see the XML request gets truncated when the ReadToEnd()
  operation times out.  Hope this helps.

  - Atif

  On Apr 30, 2:16 pm, atifzshaikh atif.zsha...@gmail.com wrote:

   I have noticed that this issue occurs for users that have friend/
   follower sets greater than 1000.  For instance the three cases I
   mentioned in my previous post all had friend/follower sets in the
   thousands. There could be exceptions and maybe Dossy Shiobara has come
   across cases where the sets were below a 1000, but for my application
   the sets were = 1000.  The users this happens to are pretty random
   and there is no one specific user that consistantly has their XML
   request truncated but I will let you know if I find any.

   Hope this helps.

   - Atif

   On Apr 30, 12:54 pm, Doug Williams d...@twitter.com wrote:

How big are the friend/follower sets? Are they large? Is there a user 
you
can consistently use to invoke this error?

Like I said, this is a difficult one to track do. Details and
reproducibility are helpful.

Thanks,
Doug
--

Doug Williams
Twitter Platform Supporthttp://twitter.com/dougw

On Thu, Apr 30, 2009 at 8:05 AM, atifzshaikh atif.zsha...@gmail.com 
wrote:

 Received two more similar issues yesterday and one this morning at
 10am.  In all instances it was a GET request for either statuses/
 friends or statuses/followers and the page parameter was always  1.
 If you need any more info please let me know.

 On Apr 

[twitter-dev] Re: Adding @username replies to twitter feed?

2009-05-05 Thread Mark Mzyk
J,

We currently do this for the getecouraged feed (
http://twitter.com/getencouraged).  I wrote a custom script that runs on a
cron job that retweets replies to the getnecouraged feed every five minutes
using the twitter api (or more specifically, the twitter gem - the script is
written in ruby).

I don't know if that type of solution works for you or not.  I actually plan
on open sourcing the script (hopefully within the next couple days).  If
you're interested, I can let you know when it's available.


- Mark Mzyk


On Tue, May 5, 2009 at 11:04 AM, J jpic...@gmail.com wrote:


 Hi,

 I've been searching all over, but can't seem to figure out how to add
 @USERNAME replies to my twitter feed. I want ANYONE who has something
 to add to a discussion to be able to add to the feed.

 Thoughts?

 Thanks so much,
 J



[twitter-dev] Re: OAuth example in Java language

2009-05-05 Thread Doug Williams
Added! First Java example, too. Thanks for contributing.

Thanks,
Doug
--

Doug Williams
Twitter Platform Support
http://twitter.com/dougw





On Mon, May 4, 2009 at 11:21 PM, Yusuke yus...@mac.com wrote:


 Hi,

 I wrote an OAuth example code for Java language.
 http://yusuke.homeip.net/twitter4j/en/code-examples.html#oauth

 I hope you can add the link to the following page.
 http://apiwiki.twitter.com/OAuth-Examples

 Cheers,
 Yusuke



[twitter-dev] Re: Direct Message Emails Vulnerable?

2009-05-05 Thread John Adams



On May 4, 2009, at 10:14 PM, Arik Fraimovich wrote:


You're right. After doing a quick reading yesterday, I realized that I
can configure Postfix to do this validations for me.
The only reason I'm still considering doing the DomainKeys validation
in my code is because I heard more than once that DomainKeys is still
not stable enough and can cause problems. Having it in my code instead
of Postfix configuration makes it more maintainable, isn't it?




DK was abandonded by Yahoo awhile ago, but DKIM is very stable.  
Twitter runs DKIM signing and verification code on all of our mail  
servers, as does Google, Facebook, Yahoo, and many other major sites.


With regards to maintainability, it depends if you're the admin, or  
the developer, I suppose. Both come with their own levels of  
associated work.


-j

---
John Adams
Twitter Operations
j...@twitter.com
http://twitter.com/netik






[twitter-dev] Re: Handling the OAuth flow when the user clicks Deny / Decline

2009-05-05 Thread Doug Williams
I'm trying to decide if this could easily be part of [1]? Any objections for
these to be one in the same?

1. http://code.google.com/p/twitter-api/issues/detail?id=545

Thanks,
Doug
--

Doug Williams
Twitter Platform Support
http://twitter.com/dougw

On Tue, May 5, 2009 at 8:27 AM, jmathai jmat...@gmail.com wrote:


 When the user clicks decline the flow is abruptly disrupted.  I didn't
 see anything in the OAuth spec that specifies how a decline is
 handled.

 It would be nice if there was a decline url that the application
 could specify which the user is redirected to.



[twitter-dev] Re: Adding @username replies to twitter feed?

2009-05-05 Thread J

Please. As it stands right now I'm using the RSS search function for
@celebfood and then bringing that into Yahoo Pipes to create a new
RSS, then importin that RSS through twitterfeed, which really isn't
working. The sooner I can get this functionality in, the better.

On May 5, 11:25 am, Mark Mzyk msm...@gmail.com wrote:
 J,

 We currently do this for the getecouraged feed 
 (http://twitter.com/getencouraged).  I wrote a custom script that runs on a
 cron job that retweets replies to the getnecouraged feed every five minutes
 using the twitter api (or more specifically, the twitter gem - the script is
 written in ruby).

 I don't know if that type of solution works for you or not.  I actually plan
 on open sourcing the script (hopefully within the next couple days).  If
 you're interested, I can let you know when it's available.

 - Mark Mzyk

 On Tue, May 5, 2009 at 11:04 AM, J jpic...@gmail.com wrote:

  Hi,

  I've been searching all over, but can't seem to figure out how to add
  @USERNAME replies to my twitter feed. I want ANYONE who has something
  to add to a discussion to be able to add to the feed.

  Thoughts?

  Thanks so much,
  J


[twitter-dev] HTML Encoded Return Values

2009-05-05 Thread mattarnold1977

I was wondering if Twitter was going to encode all status text return
elements as HTML?  Right now, if you use the Search API, the text of a
status comes back HTML encoded.  However, if you perform an update
status call, the returned status text is not HTML encoded.

-Matt


[twitter-dev] Re: Handling the OAuth flow when the user clicks Deny / Decline

2009-05-05 Thread Eric Martin

Doug,

I think using the same URL would work, but it might be nice to have
an extra (or different) param added in order to determine the reason.

For example, if a user revokes access from the web and Twitter
notifies the URL, the app may just be updating values in a DB, not
displaying anything. Whereas if the user clicks Deny and is sent to
the URL, not only will DB updates be made, but a message provided to
the user.

Just a thought ;)

On May 5, 10:36 am, Doug Williams d...@twitter.com wrote:
 I'm trying to decide if this could easily be part of [1]? Any objections for
 these to be one in the same?

 1.http://code.google.com/p/twitter-api/issues/detail?id=545

 Thanks,
 Doug
 --

 Doug Williams
 Twitter Platform Supporthttp://twitter.com/dougw

 On Tue, May 5, 2009 at 8:27 AM, jmathai jmat...@gmail.com wrote:

  When the user clicks decline the flow is abruptly disrupted.  I didn't
  see anything in the OAuth spec that specifies how a decline is
  handled.

  It would be nice if there was a decline url that the application
  could specify which the user is redirected to.




[twitter-dev] Re: Adding @username replies to twitter feed?

2009-05-05 Thread Chad Etzel


Please. Your description of the problem is quite lacking. As it  
stands I have no idea what you're talking about. Please give an  
example of what you're trying to do?

Chad


On May 5, 2009, at 10:15 AM, J jpic...@gmail.com wrote:



Please. As it stands right now I'm using the RSS search function for
@celebfood and then bringing that into Yahoo Pipes to create a new
RSS, then importin that RSS through twitterfeed, which really isn't
working. The sooner I can get this functionality in, the better.

On May 5, 11:25 am, Mark Mzyk msm...@gmail.com wrote:

J,

We currently do this for the getecouraged feed (http://twitter.com/getencouraged 
).  I wrote a custom script that runs on a
cron job that retweets replies to the getnecouraged feed every five  
minutes
using the twitter api (or more specifically, the twitter gem - the  
script is

written in ruby).

I don't know if that type of solution works for you or not.  I  
actually plan
on open sourcing the script (hopefully within the next couple  
days).  If

you're interested, I can let you know when it's available.

- Mark Mzyk

On Tue, May 5, 2009 at 11:04 AM, J jpic...@gmail.com wrote:


Hi,


I've been searching all over, but can't seem to figure out how to  
add
@USERNAME replies to my twitter feed. I want ANYONE who has  
something

to add to a discussion to be able to add to the feed.



Thoughts?



Thanks so much,
J


[twitter-dev] Authenticate, OAuth and Force_login

2009-05-05 Thread Paul Kinlan
Hi Guys,

I am having a couple of issues with using Authenticate using OAuth and
force_login = true parameter.

Can someone confirm that I am being an idiot? :)

If I am currently logged in to twitter all my requests are authenticated
against that user regardless of the username password combination that I
present to the twitter authentication page.

For example, I am logged into twitter as my PaulKinlan user.  I need to log
in to my application as Twollo, so I go through the normal oauth process,
enter Twollo as the username and the correct password and click Sign in.  My
service recieves the callback and then calls verify_credentials.json,
however even though I know the process I use is correct, the verify
credentials returns the details for PaulKinlan and not Twollo as expected.
It appears to me that the request tokens, access tokens and token secrets
are being created against the logged in user and not the authenticating
user.

If I completly log out of Twitter I can access all the accounts as I would
expect.

Is anyone else seeing this, or is it me?  I could have sworn it was working
ok the other day? Is the expected behaviour.

Paul


[twitter-dev] Re: List of API methods

2009-05-05 Thread Mike Lewis

Here's a few other examples to show that this isn't the first time
somebody thought this might be a nice method

http://www.rememberthemilk.com/services/api/methods/rtm.reflection.getMethodInfo.rtm

http://84.234.17.86:84/Tools/API/Method/?name=metaweather.reflection.getMethodInfo

http://developer.etsy.com/docs#getmethodtable

On May 5, 1:46 am, Mike Lewis mikelikes...@gmail.com wrote:
 Sorry, don't know if the message I just sent got sent or discarded.

 In short:

 http://github.com/mikelikespie/TwitterLibGen/

 data.py
     What I'd like the data to be something like. (first 3 at least)
     (the rest were scraped and probably are incorrect)

 tweetgen.py
     Self generating library that uses the data.py info when you import
 it
     (play around with it in interactive shell)

 test.py
     example that uses tweetgen. comment back in the one to see
     the auth working (there should be exceptions, it's part of the
 demo)

 the rest is just the scaper my colleague wrote

 On May 4, 1:21 pm, Doug Williams d...@twitter.com wrote:

  Mike,
  That would be great. A good demo can go a long way.

  Thanks,
  Doug

  
  Doug Williams | Platform Support | Twitter, Inc.

  539 Bryant St. Suite 402, San Francisco, CA 94107http://twitter.com/dougw

  On Mon, May 4, 2009 at 11:28 AM, Mike Lewis mikelikes...@gmail.com wrote:

   Hi Doug,

   An example of what I'd be interested in is

  http://www.flickr.com/services/api/flickr.reflection.getMethods.html

   and

  http://www.flickr.com/services/api/flickr.reflection.getMethodInfo.html

   With something like that for the twitter API which shows the
   parameters, the request type, if authentication is required, etc. it
   would be very easy to write something that generates a library for the
   API.

   It would be able to be very robust because most of the parameter
   checking could be done client-side, which means less guessing and
   invalid requests to twitter. Also, when there's API changes, the
   library could be updated automatically.

   Maybe tonight or something, I'll take a couple twitter methods and put
   them in a format similar to what I'd expect, and make a little demo on
   how one could generate a library.

   Cheers,
   Mike

   On May 4, 10:56 am, Doug Williams d...@twitter.com wrote:
What we have to offer is available at the wiki. If you have a great idea
   for
something we should add, a working demonstration goes a long way to
   helping
us prioritize.

Thanks,
Doug


Doug Williams | Platform Support | Twitter, Inc.

539 Bryant St. Suite 402, San Francisco, CA 94107
  http://twitter.com/dougw

On Mon, May 4, 2009 at 12:16 AM, Mike Lewis mikelikes...@gmail.com
   wrote:

 I'm asking for the latter. I'm quite familiar with the apiwiki.

 On May 3, 11:19 pm, Paul Kinlan paul.kin...@gmail.com wrote:
  If I am not mistaken, you can look here:
http://apiwiki.twitter.com/Twitter-API-Documentation. That is unless
   you
  are asking for programmatic access to an api list via an api?

  2009/5/4 Mike Lewis mikelikes...@gmail.com

   Is there a way to generate a list of API methods in JSON, or CSV
   with
   the parameters, or a place where one could download one.

   I'm interested in this for generating a library.

   Thanks,
   Mike


[twitter-dev] Re: List of API methods

2009-05-05 Thread Chad Etzel


I fully support this idea since, by definition, an API is a list or  
document of function prototypes (or signatures of what have you).

Chad

Sent from an airplane. Shh don't tell anyone.

On May 5, 2009, at 1:17 PM, Mike Lewis mikelikes...@gmail.com wrote:



Here's a few other examples to show that this isn't the first time
somebody thought this might be a nice method

http://www.rememberthemilk.com/services/api/methods/rtm.reflection.getMethodInfo.rtm

http://84.234.17.86:84/Tools/API/Method/?name=metaweather.reflection.getMethodInfo

http://developer.etsy.com/docs#getmethodtable

On May 5, 1:46 am, Mike Lewis mikelikes...@gmail.com wrote:

Sorry, don't know if the message I just sent got sent or discarded.

In short:

http://github.com/mikelikespie/TwitterLibGen/

data.py
What I'd like the data to be something like. (first 3 at least)
(the rest were scraped and probably are incorrect)

tweetgen.py
Self generating library that uses the data.py info when you  
import

it
(play around with it in interactive shell)

test.py
example that uses tweetgen. comment back in the one to see
the auth working (there should be exceptions, it's part of the
demo)

the rest is just the scaper my colleague wrote

On May 4, 1:21 pm, Doug Williams d...@twitter.com wrote:


Mike,
That would be great. A good demo can go a long way.



Thanks,
Doug




Doug Williams | Platform Support | Twitter, Inc.



539 Bryant St. Suite 402, San Francisco, CA 94107http://twitter.com/dougw


On Mon, May 4, 2009 at 11:28 AM, Mike Lewis  
mikelikes...@gmail.com wrote:



Hi Doug,



An example of what I'd be interested in is


http://www.flickr.com/services/api/ 
flickr.reflection.getMethods.html



and



http://www.flickr.com/services/api/flickr.reflection.getMethodInfo.html



With something like that for the twitter API which shows the
parameters, the request type, if authentication is required, etc.  
it
would be very easy to write something that generates a library  
for the

API.



It would be able to be very robust because most of the parameter
checking could be done client-side, which means less guessing and
invalid requests to twitter. Also, when there's API changes, the
library could be updated automatically.


Maybe tonight or something, I'll take a couple twitter methods  
and put
them in a format similar to what I'd expect, and make a little  
demo on

how one could generate a library.



Cheers,
Mike



On May 4, 10:56 am, Doug Williams d...@twitter.com wrote:
What we have to offer is available at the wiki. If you have a  
great idea

for
something we should add, a working demonstration goes a long way  
to

helping

us prioritize.



Thanks,
Doug




Doug Williams | Platform Support | Twitter, Inc.



539 Bryant St. Suite 402, San Francisco, CA 94107

http://twitter.com/dougw


On Mon, May 4, 2009 at 12:16 AM, Mike Lewis  
mikelikes...@gmail.com

wrote:



I'm asking for the latter. I'm quite familiar with the apiwiki.



On May 3, 11:19 pm, Paul Kinlan paul.kin...@gmail.com wrote:

If I am not mistaken, you can look here:
http://apiwiki.twitter.com/Twitter-API-Documentation. That is  
unless

you

are asking for programmatic access to an api list via an api?



2009/5/4 Mike Lewis mikelikes...@gmail.com


Is there a way to generate a list of API methods in JSON, or  
CSV

with

the parameters, or a place where one could download one.



I'm interested in this for generating a library.



Thanks,
Mike


[twitter-dev] Re: Adding @username replies to twitter feed?

2009-05-05 Thread J

Username celebfood. I'm looking to add a functionality where ANY reply
@celebfood from a twitter user can be added to the feed. Not just the
reply feed, the public feed.

On May 5, 3:27 pm, Chad Etzel jazzyc...@gmail.com wrote:
 Please. Your description of the problem is quite lacking. As it  
 stands I have no idea what you're talking about. Please give an  
 example of what you're trying to do?
 Chad

 On May 5, 2009, at 10:15 AM, J jpic...@gmail.com wrote:



  Please. As it stands right now I'm using the RSS search function for
  @celebfood and then bringing that into Yahoo Pipes to create a new
  RSS, then importin that RSS through twitterfeed, which really isn't
  working. The sooner I can get this functionality in, the better.

  On May 5, 11:25 am, Mark Mzyk msm...@gmail.com wrote:
  J,

  We currently do this for the getecouraged feed 
  (http://twitter.com/getencouraged
  ).  I wrote a custom script that runs on a
  cron job that retweets replies to the getnecouraged feed every five  
  minutes
  using the twitter api (or more specifically, the twitter gem - the  
  script is
  written in ruby).

  I don't know if that type of solution works for you or not.  I  
  actually plan
  on open sourcing the script (hopefully within the next couple  
  days).  If
  you're interested, I can let you know when it's available.

  - Mark Mzyk

  On Tue, May 5, 2009 at 11:04 AM, J jpic...@gmail.com wrote:

  Hi,

  I've been searching all over, but can't seem to figure out how to  
  add
  @USERNAME replies to my twitter feed. I want ANYONE who has  
  something
  to add to a discussion to be able to add to the feed.

  Thoughts?

  Thanks so much,
  J


[twitter-dev] Re: Adding @username replies to twitter feed?

2009-05-05 Thread Peter Denton
A quick and dirty was to do this would be to pull your replies stream and RT
them. You could even then throw on some hash tags to reach diff users.

On Tue, May 5, 2009 at 1:29 PM, J jpic...@gmail.com wrote:


 Username celebfood. I'm looking to add a functionality where ANY reply
 @celebfood from a twitter user can be added to the feed. Not just the
 reply feed, the public feed.

 On May 5, 3:27 pm, Chad Etzel jazzyc...@gmail.com wrote:
  Please. Your description of the problem is quite lacking. As it
  stands I have no idea what you're talking about. Please give an
  example of what you're trying to do?
  Chad
 
  On May 5, 2009, at 10:15 AM, J jpic...@gmail.com wrote:
 
 
 
   Please. As it stands right now I'm using the RSS search function for
   @celebfood and then bringing that into Yahoo Pipes to create a new
   RSS, then importin that RSS through twitterfeed, which really isn't
   working. The sooner I can get this functionality in, the better.
 
   On May 5, 11:25 am, Mark Mzyk msm...@gmail.com wrote:
   J,
 
   We currently do this for the getecouraged feed (
 http://twitter.com/getencouraged
   ).  I wrote a custom script that runs on a
   cron job that retweets replies to the getnecouraged feed every five
   minutes
   using the twitter api (or more specifically, the twitter gem - the
   script is
   written in ruby).
 
   I don't know if that type of solution works for you or not.  I
   actually plan
   on open sourcing the script (hopefully within the next couple
   days).  If
   you're interested, I can let you know when it's available.
 
   - Mark Mzyk
 
   On Tue, May 5, 2009 at 11:04 AM, J jpic...@gmail.com wrote:
 
   Hi,
 
   I've been searching all over, but can't seem to figure out how to
   add
   @USERNAME replies to my twitter feed. I want ANYONE who has
   something
   to add to a discussion to be able to add to the feed.
 
   Thoughts?
 
   Thanks so much,
   J




-- 
Peter M. Denton
www.twibs.com
i...@twibs.com

Twibs makes Top 20 apps on Twitter - http://tinyurl.com/bopu6c


[twitter-dev] Re: List of API methods

2009-05-05 Thread Mike Lewis

Just a side note, after thoroughly inspecting the API wiki, the docs
are very inconsistent from method to method.


On May 5, 1:41 pm, Chad Etzel jazzyc...@gmail.com wrote:
 I fully support this idea since, by definition, an API is a list or  
 document of function prototypes (or signatures of what have you).
 Chad

 Sent from an airplane. Shh don't tell anyone.

 On May 5, 2009, at 1:17 PM, Mike Lewis mikelikes...@gmail.com wrote:



  Here's a few other examples to show that this isn't the first time
  somebody thought this might be a nice method

 http://www.rememberthemilk.com/services/api/methods/rtm.reflection.ge...

 http://84.234.17.86:84/Tools/API/Method/?name=metaweather.reflection

 http://developer.etsy.com/docs#getmethodtable

  On May 5, 1:46 am, Mike Lewis mikelikes...@gmail.com wrote:
  Sorry, don't know if the message I just sent got sent or discarded.

  In short:

 http://github.com/mikelikespie/TwitterLibGen/

  data.py
      What I'd like the data to be something like. (first 3 at least)
      (the rest were scraped and probably are incorrect)

  tweetgen.py
      Self generating library that uses the data.py info when you  
  import
  it
      (play around with it in interactive shell)

  test.py
      example that uses tweetgen. comment back in the one to see
      the auth working (there should be exceptions, it's part of the
  demo)

  the rest is just the scaper my colleague wrote

  On May 4, 1:21 pm, Doug Williams d...@twitter.com wrote:

  Mike,
  That would be great. A good demo can go a long way.

  Thanks,
  Doug

  
  Doug Williams | Platform Support | Twitter, Inc.

  539 Bryant St. Suite 402, San Francisco, CA 94107http://twitter.com/dougw

  On Mon, May 4, 2009 at 11:28 AM, Mike Lewis  
  mikelikes...@gmail.com wrote:

  Hi Doug,

  An example of what I'd be interested in is

 http://www.flickr.com/services/api/
  flickr.reflection.getMethods.html

  and

 http://www.flickr.com/services/api/flickr.reflection.getMethodInfo.html

  With something like that for the twitter API which shows the
  parameters, the request type, if authentication is required, etc.  
  it
  would be very easy to write something that generates a library  
  for the
  API.

  It would be able to be very robust because most of the parameter
  checking could be done client-side, which means less guessing and
  invalid requests to twitter. Also, when there's API changes, the
  library could be updated automatically.

  Maybe tonight or something, I'll take a couple twitter methods  
  and put
  them in a format similar to what I'd expect, and make a little  
  demo on
  how one could generate a library.

  Cheers,
  Mike

  On May 4, 10:56 am, Doug Williams d...@twitter.com wrote:
  What we have to offer is available at the wiki. If you have a  
  great idea
  for
  something we should add, a working demonstration goes a long way  
  to
  helping
  us prioritize.

  Thanks,
  Doug

  
  Doug Williams | Platform Support | Twitter, Inc.

  539 Bryant St. Suite 402, San Francisco, CA 94107
 http://twitter.com/dougw

  On Mon, May 4, 2009 at 12:16 AM, Mike Lewis  
  mikelikes...@gmail.com
  wrote:

  I'm asking for the latter. I'm quite familiar with the apiwiki.

  On May 3, 11:19 pm, Paul Kinlan paul.kin...@gmail.com wrote:
  If I am not mistaken, you can look here:
 http://apiwiki.twitter.com/Twitter-API-Documentation. That is  
  unless
  you
  are asking for programmatic access to an api list via an api?

  2009/5/4 Mike Lewis mikelikes...@gmail.com

  Is there a way to generate a list of API methods in JSON, or  
  CSV
  with
  the parameters, or a place where one could download one.

  I'm interested in this for generating a library.

  Thanks,
  Mike


[twitter-dev] Creating A Live Twitter Feed For My Website

2009-05-05 Thread Smstromb

I'm looking to create a live twitter feed for my website. I have a
great deal of twitter api experience but I'm not exactly sure how to
go about doing it. I need to display the last 5 posts on my website
and then append a new posts as they come in to the top of the list and
delete the bottom post to keep it at a total of 5 posts. I want it to
be animated so I'm thinking of using jquery to do this. How would I go
about doing this or does anyone know a good place to start?


[twitter-dev] Re: Creating A Live Twitter Feed For My Website

2009-05-05 Thread Peter Denton
www.treetgrid.com. You can customize to your hearts desire.

On Tue, May 5, 2009 at 2:32 PM, Smstromb spence...@gmail.com wrote:


 I'm looking to create a live twitter feed for my website. I have a
 great deal of twitter api experience but I'm not exactly sure how to
 go about doing it. I need to display the last 5 posts on my website
 and then append a new posts as they come in to the top of the list and
 delete the bottom post to keep it at a total of 5 posts. I want it to
 be animated so I'm thinking of using jquery to do this. How would I go
 about doing this or does anyone know a good place to start?




-- 
Peter M. Denton
www.twibs.com
i...@twibs.com

Twibs makes Top 20 apps on Twitter - http://tinyurl.com/bopu6c


[twitter-dev] Re: Creating A Live Twitter Feed For My Website

2009-05-05 Thread Peter Denton
sorry, http://tweetgrid.com/widget/

On Tue, May 5, 2009 at 2:32 PM, Smstromb spence...@gmail.com wrote:


 I'm looking to create a live twitter feed for my website. I have a
 great deal of twitter api experience but I'm not exactly sure how to
 go about doing it. I need to display the last 5 posts on my website
 and then append a new posts as they come in to the top of the list and
 delete the bottom post to keep it at a total of 5 posts. I want it to
 be animated so I'm thinking of using jquery to do this. How would I go
 about doing this or does anyone know a good place to start?




-- 
Peter M. Denton
www.twibs.com
i...@twibs.com

Twibs makes Top 20 apps on Twitter - http://tinyurl.com/bopu6c


[twitter-dev] Re: List of API methods

2009-05-05 Thread Doug Williams
MIke,
File bugs against the docs and I will fix them, where appropriate.

Thanks,
Doug
--

Doug Williams
Twitter Platform Support
http://twitter.com/dougw




On Tue, May 5, 2009 at 1:57 PM, Mike Lewis mikelikes...@gmail.com wrote:


 Just a side note, after thoroughly inspecting the API wiki, the docs
 are very inconsistent from method to method.


 On May 5, 1:41 pm, Chad Etzel jazzyc...@gmail.com wrote:
  I fully support this idea since, by definition, an API is a list or
  document of function prototypes (or signatures of what have you).
  Chad
 
  Sent from an airplane. Shh don't tell anyone.
 
  On May 5, 2009, at 1:17 PM, Mike Lewis mikelikes...@gmail.com wrote:
 
 
 
   Here's a few other examples to show that this isn't the first time
   somebody thought this might be a nice method
 
  http://www.rememberthemilk.com/services/api/methods/rtm.reflection.ge.
 ..
 
  http://84.234.17.86:84/Tools/API/Method/?name=metaweather.reflection..
 ..
 
  http://developer.etsy.com/docs#getmethodtable
 
   On May 5, 1:46 am, Mike Lewis mikelikes...@gmail.com wrote:
   Sorry, don't know if the message I just sent got sent or discarded.
 
   In short:
 
  http://github.com/mikelikespie/TwitterLibGen/
 
   data.py
   What I'd like the data to be something like. (first 3 at least)
   (the rest were scraped and probably are incorrect)
 
   tweetgen.py
   Self generating library that uses the data.py info when you
   import
   it
   (play around with it in interactive shell)
 
   test.py
   example that uses tweetgen. comment back in the one to see
   the auth working (there should be exceptions, it's part of the
   demo)
 
   the rest is just the scaper my colleague wrote
 
   On May 4, 1:21 pm, Doug Williams d...@twitter.com wrote:
 
   Mike,
   That would be great. A good demo can go a long way.
 
   Thanks,
   Doug
 
   
   Doug Williams | Platform Support | Twitter, Inc.
 
   539 Bryant St. Suite 402, San Francisco, CA 94107
 http://twitter.com/dougw
 
   On Mon, May 4, 2009 at 11:28 AM, Mike Lewis
   mikelikes...@gmail.com wrote:
 
   Hi Doug,
 
   An example of what I'd be interested in is
 
  http://www.flickr.com/services/api/
   flickr.reflection.getMethods.html
 
   and
 
  
 http://www.flickr.com/services/api/flickr.reflection.getMethodInfo.html
 
   With something like that for the twitter API which shows the
   parameters, the request type, if authentication is required, etc.
   it
   would be very easy to write something that generates a library
   for the
   API.
 
   It would be able to be very robust because most of the parameter
   checking could be done client-side, which means less guessing and
   invalid requests to twitter. Also, when there's API changes, the
   library could be updated automatically.
 
   Maybe tonight or something, I'll take a couple twitter methods
   and put
   them in a format similar to what I'd expect, and make a little
   demo on
   how one could generate a library.
 
   Cheers,
   Mike
 
   On May 4, 10:56 am, Doug Williams d...@twitter.com wrote:
   What we have to offer is available at the wiki. If you have a
   great idea
   for
   something we should add, a working demonstration goes a long way
   to
   helping
   us prioritize.
 
   Thanks,
   Doug
 
   
   Doug Williams | Platform Support | Twitter, Inc.
 
   539 Bryant St. Suite 402, San Francisco, CA 94107
  http://twitter.com/dougw
 
   On Mon, May 4, 2009 at 12:16 AM, Mike Lewis
   mikelikes...@gmail.com
   wrote:
 
   I'm asking for the latter. I'm quite familiar with the apiwiki.
 
   On May 3, 11:19 pm, Paul Kinlan paul.kin...@gmail.com wrote:
   If I am not mistaken, you can look here:
  http://apiwiki.twitter.com/Twitter-API-Documentation. That is
   unless
   you
   are asking for programmatic access to an api list via an api?
 
   2009/5/4 Mike Lewis mikelikes...@gmail.com
 
   Is there a way to generate a list of API methods in JSON, or
   CSV
   with
   the parameters, or a place where one could download one.
 
   I'm interested in this for generating a library.
 
   Thanks,
   Mike



[twitter-dev] Re: Adding @username replies to twitter feed?

2009-05-05 Thread Michael Ekstrand

J jpic...@gmail.com writes:
 Username celebfood. I'm looking to add a functionality where ANY reply
 @celebfood from a twitter user can be added to the feed. Not just the
 reply feed, the public feed.

If you can run a service authenticated as celebfood, you can pull down
the public and replies/mentions timelines for celebfood and merge them
into one timeline.  As far as I know, that's about all you can do (and
will be similar to what you're already doing with the search and Pipes),
unless you want to retweet all replies.

- Michael

-- 
mouse, n: A device for pointing at the xterm in which you want to type.
Confused by the strange files?  I cryptographically sign my messages.
For more information see http://www.elehack.net/resources/gpg.