[twitter-dev] Re: ReTweet URL for Blogger

2009-03-28 Thread Abraham Williams
a href=http://twitter.com/home/?status=RT+your+text+here;Retweet/a

On Fri, Mar 27, 2009 at 22:55, t0ny tony_p...@yahoo.com wrote:


 Hey guys !

 I looking for a way to create a RETweet link that captures the url and
 the title. I need to display RT + @MUTWITTERURL + $BloggerPostTitle +
 $BloggerURL.

 The idea is pretty similar with what tweetmeme.com does but I want to
 be able to customize the @MUTWITTERURL. I guess that the length of the
 post title should be had in mid for creating such link.

 I found an interesting posting about creating such links using java
 script here. http://karlo.org/2009/01/add-retweet-links-to-your-blog.html

 I'm a beginner in twitter app development so I apologize in advance if
 my posting here sounds a bit silly. I just thought that this was the
 right place to ask.

 Thanks !




-- 
Abraham Williams | http://the.hackerconundrum.com
Web608 | Community Evangelist | http://web608.org
This email is: [ ] blogable [x] ask first [ ] private.
Sent from: Madison WI United States.


[twitter-dev] Re: Invalid / expired Token for all calls after successful connection made

2009-03-28 Thread Dimebrain

I had a gaff in the bit of code that was parsing out the tokens in
Twitter's response, and for whatever reason these badly parsed tokens
worked just fine all the way up until a protected resource call. I'm
glad it's resolved, but I didn't enjoy going over my OAuth code in
excruciating detail a few dozen times. Could probably recite it
now. :)

On Mar 27, 11:28 am, Joshua Perry j...@6bit.com wrote:
 When my application had OAuth I was doing all of the requests using
 OAuth in the headers and it worked fine... Perhaps you are experiencing
 a transient issues.  If you have never been able to make a protected
 resource request there may be an error in your implementation.

 Dimebrain wrote:
  Just out of curiousity are you supporting the Authorization header
  form of OAuth when making protected resource requests? I know they
  work for tokens, but wondered if a call to verify_credentials for
  instance needed to use parameters or if it could continue to use the
  Authorization header?

  On Mar 27, 2:20 am, Dimebrain daniel.cre...@gmail.com wrote:

  I am able to consistently exchange the request token for the access
  token and see my application in the Connections tab for my account.
  However, I'm no longer able to make protected resource requests with
  the final token and secret. It worked for me earlier in the evening,
  but now is consistently returning Invalid / expired Token for any
  authenticated call I make.


[twitter-dev] Replies API maxes out at approx 800 replies or 60 days?

2009-03-28 Thread WhoIsGregg

Hello,

When accessing a user's replies using:

http://apiwiki.twitter.com/REST+API+Documentation#statuses/replies

It stops returning replies around 800 replies (which go back about 60
days). Is this intended behavior or should I file a bug? I know the
docs specify a limit of 3,200 statuses... does that apply to replies?

http://apiwiki.twitter.com/REST+API+Documentation#PaginationLimiting

Any ideas on how to grab older @replies for a particular user?

Thanks!
Gregg


[twitter-dev] changing source URL

2009-03-28 Thread Chris Cairns

i m using the script from 
http://blog.codahale.com/2007/01/15/tweet-twitter-quicksilver/
to tweet using quicksilver.
However, the URL underlying the word Quicksilver  in ...minutes
ago from Quicksilver(just like ... minutes ago from web or ..
minutes ago from twitteriffic) points to http://blog.codahale.
How to make it point to www.blacktree.com?
Thanks.




[twitter-dev] Re: image upload with command line curl

2009-03-28 Thread voorwiel

The error was in my code. I finally got it working (man curl
helped...). So just in case someone stumbles upon this thread, this
works for me:

curl -u username:password
--header Expect: 
-F image=@/full/path/to/the/image.jpg
https://twitter.com/account/update_profile_background_image.json

All on one line. Note the header param and the -F (not -d).

On Mar 25, 5:45 pm, voorwiel voorw...@gmail.com wrote:
 Hi,
 I'm trying to set the background image of my account with PHP and a
 command line CURL string. Here's the code:

[snip]

 Is Twitter having upload issues, or is it my code?


[twitter-dev] Friendships destroy: friends_count not updated

2009-03-28 Thread topolino

I am using the twitter api (http://twitter.com/friendships/destroy/
user.xml) to successfully unfollow a user for an account.

The problem is that twitter does not decrease the friends_count when I
get the extended user information for the authenticating user. The
number is however decreased by one if I log in as the user and look at
the following count on twitter.com/home.

Can anyone tell me what is causing this? And if it is a known but, is
there another way of finding the correct friends_count?



[twitter-dev] Re: changing source URL

2009-03-28 Thread Abraham Williams
Read the FAQ: http://apiwiki.twitter.com/FAQ

On Sat, Mar 28, 2009 at 11:58, Chris Cairns nochan...@gmail.com wrote:


 i m using the script from
 http://blog.codahale.com/2007/01/15/tweet-twitter-quicksilver/
 to tweet using quicksilver.
 However, the URL underlying the word Quicksilver  in ...minutes
 ago from Quicksilver(just like ... minutes ago from web or ..
 minutes ago from twitteriffic) points to http://blog.codahale.
 How to make it point to www.blacktree.com?
 Thanks.





-- 
Abraham Williams | http://the.hackerconundrum.com
Web608 | Community Evangelist | http://web608.org
This email is: [ ] blogable [x] ask first [ ] private.
Sent from: Madison WI United States.


[twitter-dev] Re: The OAuth Conundrum

2009-03-28 Thread Shannon Whitley

I've done a lot of work recently with Twitter's oAuth implementation.
I'm happy with the the solution for my web apps.  Having said that, I
don't think it should be the way to authenticate.  Basic Auth has
been so easy to implement that I think it has fostered very creative
solutions from people who just wanted to try a few ideas.  I know
I've thrown quite a few things together for fun (e.g. Twitter in
Excel).  The creativity that simple authentication spawns is
important, and I agree with the others who have expressed that on this
thread.


[twitter-dev] Re: Friendships destroy: friends_count not updated

2009-03-28 Thread Cameron Kaiser

 I am using the twitter api (http://twitter.com/friendships/destroy/
 user.xml) to successfully unfollow a user for an account.
 
 The problem is that twitter does not decrease the friends_count when I
 get the extended user information for the authenticating user. The
 number is however decreased by one if I log in as the user and look at
 the following count on twitter.com/home.
 
 Can anyone tell me what is causing this? And if it is a known but, is
 there another way of finding the correct friends_count?

This smells like a cache issue. When you check now, does everything match?

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- Smile if you like this tag line. ---


[twitter-dev] Re: followers/ empty arrays!

2009-03-28 Thread TechRavingMad

If all you guys are looking for is a list of followers or friends,
have you tried using the new social calls for friends and followers:

http://twitter.com/followers/ids.xml?user_id=##
http://twitter.com/friends/ids.xml?user_id=#

You can also use these calls with screen_name using screen_name=name
at the end.

http://apiwiki.twitter.com/REST+API+Documentation#SocialGraphMethods

Hopefully that will help.


On Mar 26, 6:21 pm, GuyHagen g...@innovationinsight.com wrote:
 Jeffrey - at least I know I won't be suffering alone then.  Thanks.

 On Mar 26, 7:18 pm, Jeffrey Greenberg jeffreygreenb...@gmail.com
 wrote:

  This has been reported before too. Between this and bug  #362, there is no
  way to reliably get accurate information for users with more than 200k
 followers... While there aren't many of them (at this point), they are
  influential and visible, so this situation is really hurting me as well. 
  (http://www.tweettronics.com)

  bug #362 is classified as 'low' priority, but for a certain sort of app
  (like twinfluence) this can be profoundly disabling...

  cheers!
  jeffrey


[twitter-dev] Re: ReTweet URL for Blogger

2009-03-28 Thread t0ny

Thanks for reading my post, but it seems that I didn't express myself
well enough. I need to customize this hyperlink in a way that It
captures the title of the posting automatically.

On Mar 27, 11:05 pm, Abraham Williams 4bra...@gmail.com wrote:
 a href=http://twitter.com/home/?status=RT+your+text+here;Retweet/a



 On Fri, Mar 27, 2009 at 22:55, t0ny tony_p...@yahoo.com wrote:

  Hey guys !

  I looking for a way to create a RETweet link that captures the url and
  the title. I need to display RT + @MUTWITTERURL + $BloggerPostTitle +
  $BloggerURL.

  The idea is pretty similar with what tweetmeme.com does but I want to
  be able to customize the @MUTWITTERURL. I guess that the length of the
  post title should be had in mid for creating such link.

  I found an interesting posting about creating such links using java
  script here.http://karlo.org/2009/01/add-retweet-links-to-your-blog.html

  I'm a beginner in twitter app development so I apologize in advance if
  my posting here sounds a bit silly. I just thought that this was the
  right place to ask.

  Thanks !

 --
 Abraham Williams |http://the.hackerconundrum.com
 Web608 | Community Evangelist |http://web608.org
 This email is: [ ] blogable [x] ask first [ ] private.
 Sent from: Madison WI United States.


[twitter-dev] Re: ReTweet URL for Blogger

2009-03-28 Thread Abraham Williams
It sounds like you need to learn the programming basics for whatever
platform or language you are using:
http://www.google.com/search?q=learn+programming+basics

On Sat, Mar 28, 2009 at 14:57, t0ny tony_p...@yahoo.com wrote:


 Thanks for reading my post, but it seems that I didn't express myself
 well enough. I need to customize this hyperlink in a way that It
 captures the title of the posting automatically.

 On Mar 27, 11:05 pm, Abraham Williams 4bra...@gmail.com wrote:
  a href=http://twitter.com/home/?status=RT+your+text+here;Retweet/a
 
 
 
  On Fri, Mar 27, 2009 at 22:55, t0ny tony_p...@yahoo.com wrote:
 
   Hey guys !
 
   I looking for a way to create a RETweet link that captures the url and
   the title. I need to display RT + @MUTWITTERURL + $BloggerPostTitle +
   $BloggerURL.
 
   The idea is pretty similar with what tweetmeme.com does but I want to
   be able to customize the @MUTWITTERURL. I guess that the length of the
   post title should be had in mid for creating such link.
 
   I found an interesting posting about creating such links using java
   script here.
 http://karlo.org/2009/01/add-retweet-links-to-your-blog.html
 
   I'm a beginner in twitter app development so I apologize in advance if
   my posting here sounds a bit silly. I just thought that this was the
   right place to ask.
 
   Thanks !
 
  --
  Abraham Williams |http://the.hackerconundrum.com
  Web608 | Community Evangelist |http://web608.org
  This email is: [ ] blogable [x] ask first [ ] private.
  Sent from: Madison WI United States.




-- 
Abraham Williams | http://the.hackerconundrum.com
Web608 | Community Evangelist | http://web608.org
This email is: [ ] blogable [x] ask first [ ] private.


[twitter-dev] Image resizing failures is starting to get out of hand ... :-)

2009-03-28 Thread Dossy Shiobara


Check out @hchua11 - avatar image is 500k+ and so are the thumbnails. 
D'oh.  Really sucks to watch a mobile app download those over GPRS or 
even EDGE.  Yow.


--
Dossy Shiobara  | do...@panoptic.com | http://dossy.org/
Panoptic Computer Network   | http://panoptic.com/
  He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on. (p. 70)


[twitter-dev] Re: Image resizing failures is starting to get out of hand ... :-)

2009-03-28 Thread Zac Bowling

http://twitter.com/account/profile_image/hchua11

It's a cute dog.

Kinda big though.


Zac Bowling



On Sat, Mar 28, 2009 at 2:23 PM, Dossy Shiobara do...@panoptic.com wrote:

 Check out @hchua11 - avatar image is 500k+ and so are the thumbnails. D'oh.
  Really sucks to watch a mobile app download those over GPRS or even EDGE.
  Yow.

 --
 Dossy Shiobara              | do...@panoptic.com | http://dossy.org/
 Panoptic Computer Network   | http://panoptic.com/
  He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on. (p. 70)



[twitter-dev] id-to-name shell script updated

2009-03-28 Thread TjL

http://twitreport.tntluoma.com/id-to-name.sh has been updated.

It's a small shell script that takes one or more variables and does an
ID to name lookup.

if you use -s or --short as the first argument it will only show you
the @name (not the full name)

Big change here is that it now uses a local cache (in whatever $TEMP
folder you define, or /tmp/ if you do not).

Expiration of cached results is not handled in the script itself, I
would recommend a cron job to delete files based on whatever
parameters you want. Better to have a small tool that just does what
it is designed for :-)

As usual, I've commented the script heavily to try to explain what
each part does. Anyone who can suggest improvements, please do!

TjL


[twitter-dev] Re: Friendships destroy: friends_count not updated

2009-03-28 Thread Damon Clinkscales

It's probably a cache issue.  However, I don't know how many
seconds/minutes it takes to update the count.

You could run a test like so:

store users/show/friends_count as x
friendships/destroy to remove one
y = x
loop until y is  x
  get users/show/friends_count as y
end

I'd be curious to know how long it takes.

Another option (but I assume these are cached too) is to call the
social graph method for friends/ids/youruser.xml and check the # of
ids returned.

-damon

On Sat, Mar 28, 2009 at 7:28 AM, topolino lasse.kl...@gmail.com wrote:

 I am using the twitter api (http://twitter.com/friendships/destroy/
 user.xml) to successfully unfollow a user for an account.

 The problem is that twitter does not decrease the friends_count when I
 get the extended user information for the authenticating user. The
 number is however decreased by one if I log in as the user and look at
 the following count on twitter.com/home.

 Can anyone tell me what is causing this? And if it is a known but, is
 there another way of finding the correct friends_count?





-- 
http://twitter.com/damon


[twitter-dev] Re: Date-based update retrieval

2009-03-28 Thread Dan

The since parameter doesn't achieve what I want since it pulls in
all the unneeded tweets AFTER the specified date as well.

This isn't just a personal project; if I can get this to work, it
would be on a multi-user scale, where each user supplies his or her
twitter credentials and can then see their tweets when they click on a
specific day. Manually downloading a CSV file and parsing it each and
every time would be a waste of server resources. It seems like the API
would be robust enough to handle a SELECT ALL TWEETS FROM $date.

Is it impossible to write a script that will show me my own tweets for
a given day?

On Mar 28, 12:39 am, Abraham Williams 4bra...@gmail.com wrote:
 You can use the since parameter for going up to 24 hours old. Otherwise you
 have to just manually page back until you get what you need.

 On Fri, Mar 27, 2009 at 23:34, Dan dan.chil...@gmail.com wrote:

  Perhaps I'm completely missing this, but if I can properly
  authenticate a user in a PHP script, how can I then retrieve their
  updates for a particular date?

 --
 Abraham Williams |http://the.hackerconundrum.com
 Web608 | Community Evangelist |http://web608.org
 This email is: [ ] blogable [x] ask first [ ] private.
 Sent from: Madison WI United States.


[twitter-dev] Re: changing source URL

2009-03-28 Thread Chris Cairns
i filled out the appropriate form, But someone already is using it 
www.blacktree.com 
  for Quicksilver. Will my request still be approved?
On Mar 28, 2009, at 11:23 PM, Abraham Williams wrote:

 Read the FAQ: http://apiwiki.twitter.com/FAQ

 On Sat, Mar 28, 2009 at 11:58, Chris Cairns nochan...@gmail.com  
 wrote:

 i m using the script from 
 http://blog.codahale.com/2007/01/15/tweet-twitter-quicksilver/
 to tweet using quicksilver.
 However, the URL underlying the word Quicksilver  in ...minutes
 ago from Quicksilver(just like ... minutes ago from web or ..
 minutes ago from twitteriffic) points to http://blog.codahale.
 How to make it point to www.blacktree.com?
 Thanks.





 -- 
 Abraham Williams | http://the.hackerconundrum.com
 Web608 | Community Evangelist | http://web608.org
 This email is: [ ] blogable [x] ask first [ ] private.
 Sent from: Madison WI United States.
 



[twitter-dev] Re: changing source URL

2009-03-28 Thread Chris Cairns

sorry for not reading the FAQ.

i filled out the appropriate form, but someone already is using
it :www.blacktree.com for Quicksilver. Will my request still be
approved?
On Mar 28, 2009, at 11:23 PM, Abraham Williams wrote:


[twitter-dev] social graph methods with a bit more info

2009-03-28 Thread softprops

It would be nice if the http://twitter.com/[friends|followers]/ids.format
uri's could return a bit more useful info like the screen_name. I'm
new to using the api but my understanding of how to do this would be
to have to make 1 call to the graph method and then iterate over each
id and call http://twitter.com/users/show/id.format but overhead of
doing that grows exponentially with the number of friends/followers a
user has.  Esp. when all I want is the screen_name. The show method
packs quite a bit of data for each user.

What is the best way to accomplish getting a list a given users
friends names while pulling the least amount of data?

A suggestion might be 
http://twitter.com/[friends|followers]/ids/{screen_name}.format?incl=
screen_name,other_attribute,some_other_attribute where the default the
response is just returns the ids and when requested via some comma
delimited param, adds a limited and predefined list of available
attributes that can be pulled or an error status of that list contains
attributes not available.

I realize this would break the semantic of the method's name, 'ids',
but maybe it could be encoded in element attributes
 http://twitter.com/friends/ids/{screen_name}.xml?incl= screen_name
might yield

?xml version=1.0 encoding=UTF-8?
ids
 id screen_name=foo1/id
 id screen_name=bar2/id
/ids

I'm not sure how that would be rendered as json

Currently is this just [1,2,3,4] which packs a very lite payload
maybe [{id:1,screen_name:'foo;},{id:2,screen_name:'bar'}]




[twitter-dev] 'name' restrictions

2009-03-28 Thread TjL

On http://apiwiki.twitter.com/REST+API+Documentation :

account/update_profile says that a name is Optional. Maximum of 20
characters.

1) On the website, it is NOT optional. You have to put something in
there.  Is this in the API as well (i.e. is the document out of date
here?)


2) Other than 20 characters, are there restrictions on what characters
can/cannot be used? (I'm not talking about specific words such as
Twitter but I mean things like !@*(#

It appears there are not, since some people have even been able to put
unicode-letters going backwards in there (which come out as HTML
entities) but I thought I'd ask

TjL


[twitter-dev] Re: social graph methods with a bit more info

2009-03-28 Thread Damon Clinkscales

see

On Sat, Mar 28, 2009 at 9:16 PM, softprops d.tang...@gmail.com wrote:

 It would be nice if the http://twitter.com/[friends|followers]/ids.format
 uri's could return a bit more useful info like the screen_name.
  [ snip ] ...
 ?xml version=1.0 encoding=UTF-8?
 ids
  id screen_name=foo1/id
  id screen_name=bar2/id
 /ids

They aren't going to do this for performance reasons, even though yes,
it would be useful.

see http://is.gd/ptJ9

-damon


[twitter-dev] Re: 'name' restrictions

2009-03-28 Thread Cameron Kaiser

 On http://apiwiki.twitter.com/REST+API+Documentation :
 
 account/update_profile says that a name is Optional. Maximum of 20
 characters.
 
 1) On the website, it is NOT optional. You have to put something in
 there.  Is this in the API as well (i.e. is the document out of date
 here?)

No. If you don't specify it (last I checked), then the same name is used.

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- Wouldn't your life be simpler if you were reading this on a Commodore 64? --


[twitter-dev] Re: changing source URL

2009-03-28 Thread Cameron Kaiser

 sorry for not reading the FAQ.
 
 i filled out the appropriate form, but someone already is using
 it :www.blacktree.com for Quicksilver. Will my request still be
 approved?

IDNSOWFT, but considering that Quicksilver is something written by Blacktree
and is well known in the Mac community ...

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- God made the integers; all else is the work of Man. -- Kronecker ---