[twitter-dev] Many twitter to 1 location that gets pushed out

2011-03-29 Thread Kevin
I'm not too sure if any of that makes sense but here it goes in more
detail

I've got a website for a local sports association.  Presently someone
thought it would be a good idea if, by using twitter  everybody could
be kept appraised of different teams standings/plays/activities in
real time aka twittering.  The problem arises that no one person
wanted to be the 'voice' of the sports organization and the thought of
many people logging in as the association is a security nightmare.

Basically what was needed was for a select group of people would
tweet, which would be picked up by the associations twitter id and
broadcast out to the many parents.  Diagram below (sorry for its
crudeness):

  twitter  twitter twitter
  \
|/
Association
 / /   / |
\   \ \
parent   parent  parent parent parent  parent
parent

The only way I can think of doing this is by setting up a web page on
the association's site that only the approved list of twitters are
allowed to access and then, using the API, have the web site post the
twitter.

But before I do any of this:
1) Has this been done before/ am I re-inventing the wheel?
2) Can the API handle this?
3) Would it get Twitter's blessing (I know they are cracking down).

Thanks,
Kevin

-- 
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] Can't get Oauth working

2011-01-07 Thread kevin dillon
I'm trying to develop a twitter program but no matter what I do, I
can't seem to authorize. I've followed several tutorials to the
letter, and can't authorize using their methods either.

Most of the time I get Woah there! This page is no longer
valid. It looks like someone already used the token information you
provided. Please return to the site that sent you to this page and try
again ... it was probably an honest mistake.

But if I use the Abraham Williams solution, I get 401 code back
which is unauthorized.

I even registered a second program with Twitter, thinking that perhaps
it was something wrong with my application registration - same
results.

Can someone please tell me what I'm doing wrong? The error messages I
get back are not helpful to me for finding out what's gone wrong.

Thanks,

-k

-- 
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: Snowflake, it's almost 9007199254740992 time.

2010-12-03 Thread Kevin Watters
Beware the natural order comparison code linked above.
natcompare(10705970246197248, 625058521088) returns -1
incorrectly. See https://gist.github.com/727383 for an example.


On Nov 23, 12:26 pm, Matt Harris thematthar...@twitter.com wrote:
 Hey everyone,

 You may remember a few weeks ago we launched Snowflake having encouraged you
 all to check your code to make sure you were able to handle the larger
 numbers it will generate. For those of you whose code couldn't handle the
 longer numbers we created String versions of the IDs in our JSON responses,
 identified by an _str at the end of their name - for example the Tweet ID
 in the JSON response exists twice: once as a number (id) and once as a
 string (id_str). For API requests which returned arrays of IDs we added the
 parameter stringify_ids to force all IDs to Strings. For example:
    https://api.twitter.com/1/followers/ids.json?cursor=-1stringify_ids=1

 We're sending this reminder because at 2.14pm PDT (10.14pm UTC) this Sunday,
 28th November 2010 Snowflake IDs will reach 53bits.

 Only Tweet IDs are generated by Snowflake. This means only Tweets, Retweets,
 Mentions and Replies are affected this weekend. Things like Saved Searches,
 Users and Direct Messages are not Snowflaked.

 If you haven't converted your code to use the String version you should do
 so immediately. Once the IDs reach 53bits Javascript, and some other
 languages, misrepresent the numbers. As an example: 2**53 = 9007199254740992

 Representing this in Javascript gives

  (9007199254740992).toString()
 9007199254740992
  (9007199254740993).toString()
 9007199254740992
  (9007199254740994).toString()
 9007199254740994
  (9007199254740995).toString()
 9007199254740996
  (9007199254740999).toString()

 9007199254741000

 You can see in this example that the Tweet IDs are being misrepresented in
 their converted state. We've provided String versions of all of our IDs,
 even those which are not using Snowflake IDs. We've done this to make it
 easier for you to convert your code. Even if your code can handle the longer
 numbers you may want to convert to Strings anyway. Doing so will reduce the
 risk of problems should you extend your code with a language or library that
 doesn't support 53bit numbers.

 If you are using Javascript you may find the following code samples helpful.
 They were put together by our web team as an example approach to the problem
 of capturing the String version of the IDs, and sorting them.

 The first gist looks for the new *_str field and uses it if it's there.  If
 it's missing, the original field is used but stringified first. This doesn't
 make IDs 53bit safe for you but but does mean you can use String IDs for
 all other attributes without having to check for them first.

 The second code sample using the library natcompare.js which performs
 'natural order' comparisons of strings in JavaScript. It was written by
 Kristof Coomans of the SCK-CEN (Belgian Nucleair Research Centre).
    http://gist.github.com/637624

 There has been some great discussion about this in the developer forums,
 including some questions and answers about the change. You can read more
 here:

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

 Best,
 @themattharris
 Developer Advocate, Twitter

-- 
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] User name and password

2010-10-16 Thread kevin
When creating a free website what is the user name and password you
need to use when it asks for it in the twitter widget?

-- 
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] API username and password

2010-10-15 Thread kevin
What is the username and password to use if your using a website
creator like yola

-- 
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] Login App

2010-10-13 Thread kevin simmons
I am currently developing a game that incorporates facebook and
twitter.  This will be a game available on facebook as all other
facebook games are.  If you are not familiar, quick steps:

search for a game on facebook
select allow or deny tracking of data
game launches.

but before we launch you into the game, we want the users to verify
their twitter accounts, via username and password as well.  I noticed
that facebook follows this exact procedure when users decide to enable
twitter on their facebook account.
How can we incorporate this same twitter permissions app so we can
gather twitter data before launching users into the game?
Is it possible to have access to thhis permission app so we can
initialize our game launch?

We can create a generic twitter username and password prompt screen,
but we would prefer to us the twitter login as facebook does for
consistency as well as adding comfort to our users that the data is
passing specifically to twitter.

-- 
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 OAuth Authentication Fails

2010-08-24 Thread Kevin Wallace
I have three iPhone apps that use OAuth to communicate with Twitter.
They have been working well for several months but recently when
trying to set-up authentication and exchange the various OAuth tokens
using Safari on the iPhone, Safari brings up a page from Twitter that
says:

Something is technically wrong.
Thanks for noticing -- we're going to fix it up and have things back
to normal soon.

Normally authentication works and the page Twitter returns redirects
back to our application on the iPhone.  Again, this has all worked for
several months until very recently.  We just noticed the problem
ourselves today.  Here's an example authenticate URL that used to work
but now fails:

http://twitter.com/oauth/authenticate?oauth_token=r8ZW21dPbUteSOgfFJ0AZnHkIwg1GfvRn9HaNMB7q0force_login=true

Does anyone out there know what's going wrong?  This has all worked
for hundreds of thousands of our customers for several months now and
nothing in our app has changed in two months.  Can anyone shed light
on this for me?  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?hl=en


[twitter-dev] Is there a twitter windows desktop client support oauth ?

2010-05-18 Thread Kevin Li
i can not find any client support oauth on windows XP……


[twitter-dev] sending messages using api in batch/offline process

2010-05-17 Thread Kevin Nelson
I'm new to twitter and have been searching for a solution to send
notifications to multiple twitter users in a batch/offline process.
This batch exe will be written in c# and will be scheduled to run on a
designated server at midnight.  It will send various notifications to
twitter users who have elected to receive the notifications from our
application.

I will have the key and secret token for each user because each of the
users would have gone through the oauth process.

First of all, is this possible?

Can someone direct me to a solution/example?

Thanks


[twitter-dev] Re: Changing the Content-Type header for OAuth token exchanges

2010-03-11 Thread Kevin Wallace
This change has broken Twitter support in our iPhone apps (Runmeter,
Walkmeter,  and Cyclemeter). (They're among the top 100 iPhone apps in
the App Store's Health and Fitness category.)  Our customers are
starting to write us because they cannot connect to Twitter using our
app which uses Sign In With Twitter and OAuth.  We would greatly
appreciate it if you would go back to text/plain, at least until we
can release versions of our app that will accept application/x-www-
form-urlencoded.  Otherwise our customers are screwed until then.

Kevin Wallace
Abvio LLC
Founder

On Mar 10, 1:13 pm, Marcel Molina mar...@twitter.com wrote:
 This change has been deployed. Let us know if things get wonky.

 On Mon, Mar 8, 2010 at 3:39 PM, Mark McBride mmcbr...@twitter.com wrote:
  All -

  Per issue 1263 (http://code.google.com/p/twitter-api/issues/detail?id=1263)
  (and the OAuth spec), we're looking to change the Content-Type header for
  OAuth token exchanges to 'application/x-www-form-urlencoded'.  To date it
  has been 'text/html'.  We want to ensure that this will not break existing
  applications, so if you have any qualms please voice them here.

    ---Mark

 http://twitter.com/mccv

 --
 Marcel Molina
 Twitter Platform Teamhttp://twitter.com/noradio


Re: [twitter-dev] Re: A proposal for delegation in OAuth identity verification

2010-02-10 Thread Kevin Marshall
It means you're in Portland Oregon...oh wait, that's area code 503...sorry.

On Wed, Feb 10, 2010 at 1:12 PM, Harshad RJ harshad...@gmail.com wrote:


 On Wed, Feb 10, 2010 at 11:05 PM, Dewald Pretorius dpr...@gmail.com wrote:

 Raffi,

 You said, sends along the user object ass part of it.

 Does that explain why the user object is in some cases a bit bloated?


 And what does it mean when the HTTP response code is 503.


 --
 Harshad RJ
 http://hrj.wikidot.com



Re: [twitter-dev] Re: listed count?

2010-02-09 Thread Kevin Marshall
Why can't you just use
http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-GET-list-memberships
to get the lists the user is listed on...and just do a counter as you
go through them?  It might require a few extra service calls, but at
the moment that seems like the most 'appropriate' way to determine how
many lists a given user is currently on.

- Kevin
http://friendstat.us

On Tue, Feb 9, 2010 at 1:10 PM, Cameron Kaiser spec...@floodgap.com wrote:
 Why would my IP get banned - the API allows developers to retrieve
 almost every piece of data from user's twitter profiles so developers
 don't need to scrape. I think if it's a closed site and they want to
 protect content, then I can understand IP banning but if it's an open
 system like Twitter, I don't see any reason why my IP would get
 banned.

 Maybe someone from the Twitter Platform team can chime in, especially
 since I only scrape for list counts every 4-6 hours on a small set of
 users for my application.

 That's probably why they haven't noticed you (yet). However, screen
 scraping gets around rate limiting and other controls Twitter places on
 the API. That's not exactly considered socially agreeable, and it's not
 fair on other API consumers. It's also against TOS.

        https://twitter.com/tos

 --
  personal: http://www.cameronkaiser.com/ 
 --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
 -- It would have been funnier if I didn't have to think. -- Ashley Mills 
 --



Re: [twitter-dev] Hey, Twitter, let us buy sidebar ads! (Or, stop focusing on the biggies.)

2010-02-02 Thread Kevin Marshall
A bit of a tangent, but I would at least like a way to see what apps a
given user has.  It would be great as an API method, but would even be
fine if it's just access to a page like http://twitter.com/oauth that
you can get when you are logged into Twitter...as it is currently,
there is no easy way to discover apps directly via Twitter (that I
know of)...and while systems like oneforty are great, they rely on
manual additions and are nowhere near a complete listing of what's out
there (and there's no easy way to get a quick listing of who's built
what that I know of)...

Given all the other things going on, it's a low priority nice-to-have
on my list, but since the topic was brought up, I thought I would add
my two cents ;-)

Thanks!

- Kevin

On Tue, Feb 2, 2010 at 2:00 AM, PJB pjbmancun...@gmail.com wrote:

 Right now, the ad in the sidebar on the right-hand side of
 Twitter.com is invariably: i) a micro, community, or feel-good sort of
 app, ii) a mega-app that most people already know about, that has VC,
 connections to Twitter folks directly, or a good PR firm.

 This leaves many non-Bay Area (or medium-sized) apps out in the cold.

 So... can Twitter stop anointing the top dogs in such a willy-nilly
 fashion?

 Instead of this annoyingly vague editor's choice language about the
 selections, can you either set-up a transparent process whereby apps
 can be submitted, voted on, whatever... or just convert the whole
 thing to paid ads?

 It's incredibly frustrating to see sub-par apps like wefollow.com
 promoted just because its founder is buddy-buddy with Twitter folks.
 Or for other well-known apps get their version 2 promoted just
 because, well, it's version 2 and it's well-known.

 The choices you guys make have significant repercussions.  And it's
 increasingly frustrating to find you guys focusing more and more on
 market leaders.  While I suppose that may make sense from your
 perspective, it deprives smaller apps of their ability to compete, and
 it ultimately stifles competition.

 It would be far easier if we were allowed SOME VOICE by converting the
 whole thing to paid ads, and letting us buy at least SOME space.

 (Or why not just list ALL apps, and weight their presence by, e.g.,
 click-thrus, votes, etc.)







Re: [twitter-dev] Source parameter request for mobile Twitter app ignored (and issues with Twitter's policy toward oAuth on mobile/desktop)

2010-02-02 Thread Kevin Marshall
Really, on Twitter's side, the oAuth bits of the process are just a
couple of variations of forms...so why not just let each application
define templates for those forms (and just give details on what fields
are required to be there and what placeholders need to be present so
Twitter can replace the values in-line as needed when displaying the
template)

This would let anyone/everyone design a look and feel that fit best
with their application (and therefore becomes less confusing for the
average end user too)..but doesn't actually change the oauth flow at
all...

It ads a bit of processing and storage to Twitter's side of
things...but otherwise, I think it would appease most people ;-)

- Kevin

On Tue, Feb 2, 2010 at 7:31 AM, Raffi Krikorian ra...@twitter.com wrote:
 Here's an idea: let's reverse engineer the top desktop and mobile Twitter
 apps and use their oAuth keys to... Oh, wait, my bad: the top desktop/mobile
 apps _don't_ use oAuth and boy will they take a UX beating when they start.

 But one day... :)

 maybe call me naive, but i for one, am not convinced the oauth experience
 has to suck.
 as mentioned before, i'm really open to having a discussion on how to make
 the oauth UX better.  many people have already, and i encourage others to
 just drop me a line if you have ideas...
 --
 Raffi Krikorian
 Twitter Platform Team
 http://twitter.com/raffi



Re: [twitter-dev] Twitter Search with HTTP Referrer and User Agent

2010-01-31 Thread Kevin Marshall
You're most likely using cURL with PHP so you want to look into cURL
options to set headers...on a very generic level it will be something
like:

$headers = User-Agent: YourAppName;
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

- Kevin
http://friendstat.us

On Sun, Jan 31, 2010 at 2:24 AM, marc mctob...@gmail.com wrote:
 I'm a novice programmer. I found this statement to be confusing
 Applications must have a meaningful and unique User Agent when using
 this method. A HTTP Referrer is expected but not required. I would
 like to not run into any limits even though my app is fairly small.
 How does one set this information? I am using PHP with JSON to make
 the calls to twitter if that makes any difference.

 Thank you!
 Marc



Re: [twitter-dev] Re: Possibility to link to the user page not by the name but by the id.

2010-01-31 Thread Kevin Marshall
I would also argue that, at the time of status  whomever owned the
 account was the one that actually made the post...so it doesn't
really matter who is controlling  right now...they are associated
with the history of the account, because, well it's a history.

As an aside though, is there really that much username changing going
on?  I would think it's more likely an account goes idle or dead than
gets transferred to another user...and for the most part this feels
like a discussion about designing a system to scale to handle a
kabillion users when it's not even clear yet if 10 users would
actually use the service...

Don't sweat the edge cases so much, fear will paralyze you...it's
better to be 'completely broken' for a small percentage of people than
to not exist for anyone...

Just my two cents ;-)

- Kevin

On Sun, Jan 31, 2010 at 10:41 AM, Michael Steuer mste...@gmail.com wrote:
 If user  is no longer the same user as the one that posted status id
 , then the link  http://twitter.com//statuses/ would no longer
 be valid (as the NEW user  is not the owner of the status id).



 On Jan 30, 2010, at 11:40 PM, Ivan Glushkov gli.w...@gmail.com wrote:

 Actually i can't.
 For example, i get some link like
 http://twitter.com/AAA/statuses/11, for the message that was
 posted month ago. I can't be sure if the current user AAA has the same
 guid as the AAA month ago.
 If i had the link like http://twitter.com/redirect?id=111status=222 i
 would be sure that it's the same user and the same status for that
 user.

 Ivan.


 On Sun, Jan 31, 2010 at 9:36 AM, Michael Ivey michael.i...@gmail.com
 wrote:

 You could do this internally in your application, using statuses/show to
 make sure you have the correct user info before redirecting.
  -- ivey


 On Sat, Jan 30, 2010 at 4:06 AM, Ivan Glushkov gli.w...@gmail.com
 wrote:

 Oh, thanks, Abraham! That's great!

 But why isn't it documented anywhere?
 And is there any way to redirect to some status of this user?
 I mean smth like
 http://twitter.com/account/redirect_by_id?id=9436992status=3
 ???

 Thanks once more,
 Ivan.


 On Fri, Jan 29, 2010 at 11:37 PM, Abraham Williams 4bra...@gmail.com
 wrote:

 Actually Twitter does support it.
 http://twitter.com/account/redirect_by_id?id=9436992
 Abraham

 On Wed, Jan 27, 2010 at 06:42, Ivan gli.w...@gmail.com wrote:

 Hi.

 I don't need an application that is able to handle this. Instead i
 need changes in the twitter API so i can refer to the users and their
 statuses using the user id, not the username. This is a problem for
 the aggregator, and there users (so it become also a problem for the
 twitter users).

 Is there any plan in this direction?

 Ivan.


 On 21 янв, 06:03, Abraham Williams 4bra...@gmail.com wrote:

 I remember this topic coming up before and it seems like someone
 built
 an
 application that handled this but I can't find any references to it.
 Maybe
 somebody else can?

 Abraham



 On Wed, Jan 20, 2010 at 06:29, Ivan gli.w...@gmail.com wrote:

 Hi.

 I tried to find the similar question here (in google groups), in
 the
 FAQ and in the API, but couldn't find anything.

 The problem:
 Cross-posting the links to the user page and to some his statuses
 in
 the web become more and more popular. But, as i understood, you
 can't
 guarantee that this links not long after would not change the
 logical
 destination. For example I create some post about some twitter-user
 aaa and give the link twitter.com/aaa
 After that user “aaa” changed name to bbb and user ddd changed
 name to aaa. So my old link now points to the different person.

 This problem becomes more serious for the aggregators that don't
 know
 what content they might approve after a while.

 The simplest decision would be providing the possibility to link to
 the user not by name but also by id. That pages might be just
 redirections to the original user pages, it doesn't matter.

 For example
 if the user “aaa” have id 11, the following two links should
 point
 to the same page:
 twitter.com/aaa and twitter.com/id/11

 This mechanism should also be applied for the statuses:
 twitter.com/id/11/statuses/22

 Ivan.

 --
 Abraham Williams | Moved to Seattle | May cause email delays
 Project | Intersect |http://intersect.labs.poseurtech.com
 Hacker |http://abrah.am|http://twitter.com/abraham
 This email is: [ ] shareable [x] ask first [ ] private.
 Sent from Seattle, WA, United States



 --
 Abraham Williams | Moved to Seattle | May cause email delays
 Project | Out Loud | http://outloud.labs.poseurtech.com
 Hacker | http://abrah.am | http://twitter.com/abraham
 This email is: [ ] shareable [x] ask first [ ] private.
 Sent from Seattle, WA, United States





Re: [twitter-dev] I attach my new app to the wrong twitter account: how to change that

2010-01-31 Thread Kevin Marshall
You should be able to log in as the account, delete the app ( via
http://twitter.com/wrongaccount/oauth where wrongaccount is the one
you incorrectly set your app up under)...then log out, log into the
account you really want it associated with and set it up as a new
app...

That is assuming you have access to the account you incorrectly set
the app up from in the first place (but if you don't how did you set
it up in the first place?!)...

- Kevin
http://friendstat.us

On Sun, Jan 31, 2010 at 1:42 PM, Abraham Williams 4bra...@gmail.com wrote:
 You can try emailing a...@twitter.com but I don't know if they move
 applications.
 Abraham

 On Sun, Jan 31, 2010 at 06:35, rebtweeter rebtwee...@yahoo.com wrote:

 It's the first time I register an app, I was connected to a wrong
 twitter account, my app is not validated yet, would like to know how I
 can change the account.

 Thanks.



 --
 Abraham Williams | Community Advocate | http://abrah.am
 Project | Out Loud | http://outloud.labs.poseurtech.com
 This email is: [ ] shareable [x] ask first [ ] private.
 Sent from Seattle, WA, United States


Re: [twitter-dev] DMs are automatically tweeted (not what I want!) :)

2010-01-29 Thread Kevin Marshall
Also check what apps you've granted access to:

https://twitter.com/account/connections

and remove any that you no longer want to have access...

- Kevin
http://wow.ly

On Fri, Jan 29, 2010 at 10:23 PM, Abraham Williams 4bra...@gmail.com wrote:
 Change your password.
 Abraham

 On Tue, Jan 26, 2010 at 08:50, SDF wordpressblogsi...@gmail.com wrote:

 I can't find an answer to how or why this is happening nor can I
 figure out how to stop the madness :)

 Since testing a tweet this on a client's site (or so I can narrow
 down) my DM's are automatically becoming tweets. This is happening for
 auto-dms and personal dms.

 So if I receive a dm such as:
 abcuser: hi there thanks for the follow

 then the tweet that gets posted within 8 hours is:
 [abcuser] hi there thanks for the follow
 via api

 I cannot delete it via tweetdeck but I can from ubertwitter on my
 blackberry.

 How can I stop it from auto-tweeting my dms? Is there something in the
 API that I triggered somehow?

 Any help would be appreciated. Thanks!






 --
 Abraham Williams | Community Advocate | http://abrah.am
 Project | Out Loud | http://outloud.labs.poseurtech.com
 This email is: [ ] shareable [x] ask first [ ] private.
 Sent from Seattle, WA, United States


Re: [twitter-dev] statuses/update and Lists

2010-01-28 Thread Kevin Marshall
Right now lists show all public status of anyone on the list, there is
(as far as I know) no way to post a status update to just a specific
list.

- Kevin
http://wow.ly

On Wed, Jan 27, 2010 at 6:17 PM, Stan ema...@gmail.com wrote:
 I am interested in using the Twitter API to send status update to a
 list that I have created under my account. I can do this of course
 from the Twitter Site using my browser but can't find a way to do it
 using the API. When I call statuses/update for my account to update my
 status it shows up under my account and my list. How can I update
 status for just one of my Lists (and just the followers thereof) and
 not have it appear under my account where it will be seen by all my
 Followers?

 Thanks in advance,

 Stan



Re: [twitter-dev] Statuses/Show Method doesn't display multiple statuses?

2010-01-28 Thread Kevin Marshall
I believe you are looking for user_timeline:

http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses-user_timeline

- Kevin
http://wow.ly

On Fri, Jan 29, 2010 at 12:35 AM, beerkid beers...@gmail.com wrote:
 I am looking to get a result similar to if I visit twitter.com/
 USERNAME.

 I just want to show latest 20 updates from a single user but my
 developer says that Statuses/Show will only show most recent update.

 I find it hard to believe that the API wouldn't allow one to achieve
 what I explained above. What am I missing?



Re: [twitter-dev] Re: Getting server 500 errors starting on 1/25/2010 using show api

2010-01-27 Thread Kevin Marshall
That's what I see as well.

- Kevin
http://wow.ly

On Tue, Jan 26, 2010 at 7:48 PM, Raffi Krikorian ra...@twitter.com wrote:
 i'm confused - what are people seeing?  i'm seeing a 404 on that status, not
 a 500.
 [ra...@tw-mbp13-raffi twitter (homing_pigeon)]$ curl -v
 http://twitter.com/statuses/show/15527375.xml
 * About to connect() to twitter.com port 80 (#0)
 *   Trying 168.143.162.68... connected
 * Connected to twitter.com (168.143.162.68) port 80 (#0)
 GET /statuses/show/15527375.xml HTTP/1.1
 User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3
 OpenSSL/0.9.7l zlib/1.2.3
 Host: twitter.com
 Accept: */*

  HTTP/1.1 404 Not Found
  Date: Wed, 27 Jan 2010 00:47:26 GMT
  Server: hi
  X-RateLimit-Limit: 2
  X-Transaction: 1264553246-49270-7281
  Status: 404 Not Found
  Last-Modified: Wed, 27 Jan 2010 00:47:26 GMT
  X-RateLimit-Remaining: 19765
  X-Runtime: 0.02460
  Content-Type: application/xml; charset=utf-8
  Pragma: no-cache
  Content-Length: 150
  X-RateLimit-Class: api_whitelisted
  Cache-Control: no-cache, no-store, must-revalidate, pre-check=0,
 post-check=0
  Expires: Tue, 31 Mar 1981 05:00:00 GMT
  X-Revision: DEV
  X-RateLimit-Reset: 1264555010
  Set-Cookie:
 _twitter_sess=BAh7CToOcmV0dXJuX3RvIjJodHRwOi8vdHdpdHRlci5jb20vc3RhdHVzZXMv%250Ac2hvdy8xNTUyNzM3NS54bWw6EXRyYW5zX3Byb21wdDA6B2lkIiVkYTI3NTQ0%250AODg1NWI1M2U2YmE0ZDk3ZjUzYTRkOTYyNSIKZmxhc2hJQzonQWN0aW9uQ29u%250AdHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%253D%253D--c18561191b4733080388d38fa9461b6f851b16dc;
 domain=.twitter.com; path=/
  Vary: Accept-Encoding
  Connection: close
 
 ?xml version=1.0 encoding=UTF-8?
 hash
   request/statuses/show/15527375.xml/request
   errorNo status found with that ID./error
 /hash
 * Closing connection #0

 On Tue, Jan 26, 2010 at 4:44 PM, Jeffrey Greenberg
 jeffreygreenb...@gmail.com wrote:

 To be accurate: most  ids do work... We had no httpstatus 500 errors
 for quite a while, so this is new and different and bad behavior.
 We've had a working application that has been functioning for more
 than a year, and way back when these errors were frequent, and then
 Twitter did alot of new/good work and they've all but gone away (at
 least on this api)... until now.
 .


 On Jan 26, 12:39 pm, Kevin Marshall falico...@gmail.com wrote:
  Yes - seems to be a problem for any id other than the example one in
  the documentation:
 
  http://twitter.com/statuses/show/1472669360.xml(works)
 
  http://twitter.com/statuses/show/12735452.xml(reports no statuses,
  but this is my account and so I can confirm that there are statuses
  there to report -- ashttp://twitter.com/users/show.xml?id=12735452
  also confirms).
 
  BTW - if you use the user_timeline method, I think you can get the
  same status stuff
  (http://twitter.com/statuses/user_timeline.xml?id=12735452)
 
  - Kevin
 
  On Tue, Jan 26, 2010 at 3:11 PM, Jeffrey Greenberg
 
 
 
  jeffreygreenb...@gmail.com wrote:
   For instance:http://twitter.com/statuses/show/15527375.xml
 
   anyone else seeing these?



 --
 Raffi Krikorian
 Twitter Platform Team
 http://twitter.com/raffi



Re: [twitter-dev] Re: Getting server 500 errors starting on 1/25/2010 using show api

2010-01-26 Thread Kevin Marshall
Yes - seems to be a problem for any id other than the example one in
the documentation:

http://twitter.com/statuses/show/1472669360.xml (works)

http://twitter.com/statuses/show/12735452.xml (reports no statuses,
but this is my account and so I can confirm that there are statuses
there to report -- as http://twitter.com/users/show.xml?id=12735452
also confirms).

BTW - if you use the user_timeline method, I think you can get the
same status stuff (
http://twitter.com/statuses/user_timeline.xml?id=12735452 )

- Kevin

On Tue, Jan 26, 2010 at 3:11 PM, Jeffrey Greenberg
jeffreygreenb...@gmail.com wrote:
 For instance: http://twitter.com/statuses/show/15527375.xml

 anyone else seeing these?



Re: [twitter-dev] Advanced search capability in API?

2010-01-26 Thread Kevin Marshall
I believe all of the params from advanced search can be used with the
search api as well...as an example, using the search.twitter.com
advanced search form produces a url like:

http://search.twitter.com/search?q=ands=friendstatusphrase=ors=nots=tag=lang=enfrom=to=ref=near=within=15units=misince=until=rpp=15

Add the same parameters to your search api call and I believe you'll
get the same results.  Hope it helps.

- Kevin
http://wow.ly

On Tue, Jan 26, 2010 at 4:34 PM, mapgeek mj.hu...@gmail.com wrote:
 Hi,

 I've scanned some previous posts, along with the API documentation,
 but have come up empty handed. So apologies if I ask a question that
 has already been asked.

 Is there functionality in the API that equates to the Twitter advanced
 search web site? Specifically:

 - choice of language to search in, and restrict results to
 - a geographic parameter (location name, lat and lon etc.)
 - geographic radius

 Cheers,
 MH





[twitter-dev] using max_id with Search API

2010-01-25 Thread Kevin Fenger
Was not including max_id in the Search API documentation an oversight?
Or is it not meant to be used with the Search API.

Providing a url like this : 
http://search.twitter.com/search.atom?q=kevinmax_id=8210191029,
returns what looks to be correct results, however, we can't afford to
not have this work in a couple months.

Any response would be appreciated.

Thanks,
Kevin


[twitter-dev] Application Definitions on the Twitter homepage

2010-01-11 Thread Kevin Chu
I apologize in advance is this isn't the right venue for asking this
question, but how to developers get their applications posted on
Twitter homepages?  For instance, I see the following in the upper
right hand corner below my profile information:

Klout
n. a fun way to analyze the social web.

Thanks,
Kevin


[twitter-dev] Re: After a re-retweet, I don't get an error, I successfully retweeted some random Turkish guy instead.

2009-12-08 Thread Kevin
Hi,

It's great the problem has been identified and fixed.

However, the API response shows errors instead of the regular
error, and the sentence Share sharing is not permissable for this
status should be permissIble.

Not urgent, but I hope it will be fixed one day :-)

Kevin

On Dec 4, 5:23 am, Mark McBride mmcbr...@twitter.com wrote:
 Ergh, rolled back.  It should be out for good tomorrow.

    ---Mark





 On Thu, Dec 3, 2009 at 6:51 PM, Mark McBride mmcbr...@twitter.com wrote:
  This should be fixed in production now.  Trying to re-retweet will
  result in a 403

  On Thu, Dec 3, 2009 at 11:35 AM, Ed Costello epcoste...@gmail.com wrote:
  On Thu, Dec 3, 2009 at 14:29, Mark McBride mmcbr...@twitter.com wrote:

  The problem has been identified, we should have a fix out today

  Fantastic, thanks!
   -- -ed costello
  @epc / +13474080372

  --
    ---Mark

 http://twitter.com/mccv

 --
    ---Mark

 http://twitter.com/mccv


[twitter-dev] After a re-retweet, I don't get an error, I successfully retweeted some random Turkish guy instead.

2009-12-03 Thread Kevin
Hi,

In my Twitter client, I successfully retweeted a few tweets from
various people using various accounts, but when I try to retweet a
tweet I already retweeted before, I get an OK response telling me I
retweeted this tweet:

https://twitter.com/BelkideGeymovir/status/4986322791

The response says my user screen_name is erdemyildirimer (which is
wrong).

(always this one, with several essays)

I should get either an error message or a response telling me I did
retweet the actual status…

Did anybody here received a more useful response from retweet API?


[twitter-dev] Re: After a re-retweet, I don't get an error, I successfully retweeted some random Turkish guy instead.

2009-12-03 Thread Kevin
It seems that http://twitter.com/BelkideGeymovir/ has removed all his
tweets, but he had a lot of status updates when I typed my post,
including the tweet I mentioned.

On Dec 3, 11:57 am, Kevin kevin.bong...@gmail.com wrote:
 Hi,

 In my Twitter client, I successfully retweeted a few tweets from
 various people using various accounts, but when I try to retweet a
 tweet I already retweeted before, I get an OK response telling me I
 retweeted this tweet:

 https://twitter.com/BelkideGeymovir/status/4986322791

 The response says my user screen_name is erdemyildirimer (which is
 wrong).

 (always this one, with several essays)

 I should get either an error message or a response telling me I did
 retweet the actual status…

 Did anybody here received a more useful response from retweet API?


[twitter-dev] Background images on a0.twimg.com giving access denied

2009-11-04 Thread Kevin

We are uploading Twitter backgrounds via the API. We noticed today new
attempts to upload seem to be successful, but the profiles show no
background image. Looking at the page source, it shows a new
background image URL:
  background: ... url('http://a0.twimg.com/profile_background_images/
bg12573586264055.jpg') ...;

However, opening that URL returns an error:
?xml version=1.0 encoding=UTF-8?
ErrorCodeAccessDenied/CodeMessageAccess Denied/
MessageRequestId20FB3BC5AEC2A2D5/RequestIdHostIdKheAYU8E/puKx
+qm5jtF9YeLLfc/NHcoCr6q2iOWZy2OR3tbtouA3Fo5aTrHUrZn/HostId/Error

It would appear Twitter is not adding the S3 access key query string
to these background image URLs, or the images are being put into S3 as
private items.

Hope to see a fix soon.
Regards,
Kevin Hunt
Bubble Fusion Labs


[twitter-dev] Re: New behaviour for statuses/update API call for 141+ char sized messages and duplicates?

2009-10-26 Thread Kevin Menard

Thanks for the info, Dave.

Although, the fact that the current behavior does not match the API
docs does make it a bug.  Whether that bug is in the implementation or
the docs is really what's up for grabs.

--
Kevin

On Oct 24, 6:39 am, Dave Sherohman d...@fishtwits.com wrote:
 http://groups.google.com/group/twitter-development-talk/browse_thread...http://groups.google.com/group/twitter-development-talk/browse_thread...

 These are deliberate changes on Twitter's part, so they are not bugs.
 Whether they are features depends on who you ask...

 As it currently stands, you must either check the returnedstatusID to
 see if it's higher than previous IDs or compare the submittedstatusto
 the returnedstatus(ignoring URLs) to determine whether theupdatewas
 actually successful or if it was silently rejected by Twitter.

 Hopefully, in the (very near) future, Twitter will start providing some
 indication in the response that will make it simple and reliable to
 determine when anupdatehas been rejected without requiring app
 developers to try to figure that out on our own, but, so far as I am
 aware, Twitter has not yet made any statement regarding this.





 On Fri, Oct 23, 2009 at 08:53:16AM -0700, Kevin Menard wrote:

  Hi,

  I'm seeing the same thing that Ole is.  Twitter is not truncating the
 status, but rather returning the last correctly updatedstatus.

  --
  Kevin

  On Oct 16, 4:58 am, janole s...@mobileways.de wrote:
   According to my tests, messages will not be truncated anymore!

   Instead, you will get the most recentstatusupdateas a reply.

   Is this a bug or feature?

   Also, it seems as if the API now checks for duplicates in your
   backlog of statuses and not just you most recent tweet.

   Previously, only the last tweet was checked:

   - Last tweet test
   - Send new tweet with status=test will return the oldstatus(with
   the old status_id)

   but if you had something like this:

   Last tweet Hello, world.
   Second last tweet test

   Then you were able to create a new tweet with status=test!

   This is not possible at the moment.

   Bug or feature?

   I'm getting a lot of complaints from my Twitter client users who
   apparently experience both of these new behaviours or bugs (long
   tweets fail, duplicates fail.)

   Ole @ mobileways.de
   On Twitter:http://twitter.com/janole

   On Oct 15, 8:26 pm, Josh Roesslein jroessl...@gmail.com wrote:

If you send a message longer than 140 twitter will truncate it and set
the truncate value on thestatusto True.
For duplicates it will just ignore thestatus.

Josh

On Thu, Oct 15, 2009 at 1:20 PM, janole s...@mobileways.de wrote:

 Hi,

 I just figured out that when calling statuses/updatewith a text
 longer than 140 chars, the reply of that API call will be 200 OK with
 the laststatusof the user.

 Wouldn't it be better to return some sort of error message?

 The same seems to be happening when sending a duplicate tweet.

 Ole

 --
 Jan Ole Suhr
 s...@mobileways.de
 On Twitter:http://twitter.com/janole

 --
 Dave Sherohman


[twitter-dev] Re: New behaviour for statuses/update API call for 141+ char sized messages and duplicates?

2009-10-23 Thread Kevin Menard

Hi,

I'm seeing the same thing that Ole is.  Twitter is not truncating the
status, but rather returning the last correctly updated status.

--
Kevin

On Oct 16, 4:58 am, janole s...@mobileways.de wrote:
 According to my tests, messages will not be truncated anymore!

 Instead, you will get the most recentstatusupdateas a reply.

 Is this a bug or feature?

 Also, it seems as if the API now checks for duplicates in your
 backlog of statuses and not just you most recent tweet.

 Previously, only the last tweet was checked:

 - Last tweet test
 - Send new tweet with status=test will return the oldstatus(with
 the old status_id)

 but if you had something like this:

 Last tweet Hello, world.
 Second last tweet test

 Then you were able to create a new tweet with status=test!

 This is not possible at the moment.

 Bug or feature?

 I'm getting a lot of complaints from my Twitter client users who
 apparently experience both of these new behaviours or bugs (long
 tweets fail, duplicates fail.)

 Ole @ mobileways.de
 On Twitter:http://twitter.com/janole

 On Oct 15, 8:26 pm, Josh Roesslein jroessl...@gmail.com wrote:



  If you send a message longer than 140 twitter will truncate it and set
  the truncate value on thestatusto True.
  For duplicates it will just ignore thestatus.

  Josh

  On Thu, Oct 15, 2009 at 1:20 PM, janole s...@mobileways.de wrote:

   Hi,

   I just figured out that when calling statuses/updatewith a text
   longer than 140 chars, the reply of that API call will be 200 OK with
   the laststatusof the user.

   Wouldn't it be better to return some sort of error message?

   The same seems to be happening when sending a duplicate tweet.

   Ole

   --
   Jan Ole Suhr
   s...@mobileways.de
   On Twitter:http://twitter.com/janole


[twitter-dev] Re: Draft of List API documentation

2009-10-16 Thread Kevin Makice

This is great.

Will there be some mechanism to keep track on new and changed lists
coming from the Twitter community, like a public timeline for list
creation? Or is the only way to become aware of lists through the API
to start checking users for their list creation/inclusion?


[twitter-dev] Re: monitor a #

2009-10-01 Thread Kevin Mesiab

Or a chron job ;)

On Wed, Sep 30, 2009 at 10:53 PM, Andrew Badera and...@badera.us wrote:

 You have to think beyond PHP.

 1) Consider having a third-party ping monitoring utility ping your PHP
 script to hit the Search API for the tag once a minute.
 2) Write something in Python or Ruby or C++ and have it run on the
 server as a daemon, once a minute. Or have curl or something else
 local on the server cron'd to call your script once a minute.
 3)  Chad Etzel's TweetHook might be a more real-time option for you
 and would remove the necessity of you doing something once a minute --
 I would definitely check it out. It will automagically post search
 data back to your hook callback URL.

 ∞ Andy Badera
 ∞ +1 518-641-1280
 ∞ This email is: [ ] bloggable [x] ask first [ ] private
 ∞ Google me: http://www.google.com/search?q=andrew%20badera



 On Thu, Oct 1, 2009 at 4:27 AM, Chris bigonr...@googlemail.com wrote:

 I want to write a tool that monitors a channel, say #startnow, and
 checks say, every minute, to see if its been updated.

 How would I do this? I'm good with php, but won't that only check
 every time someone loads a php page? How do people like @hashphp reply
 to everyone that posts in #php?

 Thanks,
 Chris





-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: monitor a #

2009-10-01 Thread Kevin Mesiab

Attention to detail fail. ;)

On Wed, Sep 30, 2009 at 11:01 PM, Andrew Badera and...@badera.us wrote:

 And, that only works if you have appropriate access to the server.


 On Thu, Oct 1, 2009 at 5:00 AM, Andrew Badera and...@badera.us wrote:
 Read #2 Kevin.

 ∞ Andy Badera
 ∞ +1 518-641-1280
 ∞ This email is: [ ] bloggable [x] ask first [ ] private
 ∞ Google me: http://www.google.com/search?q=andrew%20badera



 On Thu, Oct 1, 2009 at 4:59 AM, Kevin Mesiab ke...@mesiablabs.com wrote:

 Or a chron job ;)

 On Wed, Sep 30, 2009 at 10:53 PM, Andrew Badera and...@badera.us wrote:

 You have to think beyond PHP.

 1) Consider having a third-party ping monitoring utility ping your PHP
 script to hit the Search API for the tag once a minute.
 2) Write something in Python or Ruby or C++ and have it run on the
 server as a daemon, once a minute. Or have curl or something else
 local on the server cron'd to call your script once a minute.
 3)  Chad Etzel's TweetHook might be a more real-time option for you
 and would remove the necessity of you doing something once a minute --
 I would definitely check it out. It will automagically post search
 data back to your hook callback URL.

 ∞ Andy Badera
 ∞ +1 518-641-1280
 ∞ This email is: [ ] bloggable [x] ask first [ ] private
 ∞ Google me: http://www.google.com/search?q=andrew%20badera



 On Thu, Oct 1, 2009 at 4:27 AM, Chris bigonr...@googlemail.com wrote:

 I want to write a tool that monitors a channel, say #startnow, and
 checks say, every minute, to see if its been updated.

 How would I do this? I'm good with php, but won't that only check
 every time someone loads a php page? How do people like @hashphp reply
 to everyone that posts in #php?

 Thanks,
 Chris





 --
 Kevin Mesiab
 CEO, Mesiab Labs L.L.C.
 http://twitter.com/kmesiab
 http://mesiablabs.com
 http://retweet.com






-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: attn: Kevin Mesiab - been seeing a lot of Bambibot ...

2009-09-26 Thread Kevin Mesiab

Thanks for the heads up.

On Sat, Sep 26, 2009 at 12:00 AM, Andrew Badera and...@badera.us wrote:

 ... accounts with Hummingbird links in the bio. Fresh instance from
 this morning: http://twitter.com/KateSueMuir

 Kevin, any chance you can help abate the flood of spam your
 multiple-account managing Mesiab Labs Hummingbird product seems to be
 bringing upon us? Or are these simply misleading links pointing back
 at your product for some random reason?

 ∞ Andy Badera
 ∞ +1 518-641-1280
 ∞ This email is: [ ] bloggable [x] ask first [ ] private
 ∞ Google me: http://www.google.com/search?q=andrew%20badera




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: master thesis related to Twitter

2009-09-25 Thread Kevin Mesiab

Good luck and I look forward to reading some drafts, yeah?

On Fri, Sep 25, 2009 at 7:41 AM, Stefna mstefa...@gmail.com wrote:

 I've submitted a ticket with following content:
 *** *** ***
 I am a 23 years old student of informatics at AGH Universtity of
 Science and Technology in Cracow (Poland). Due to a rapid development,
 strict formed data and accessible API I would like to designate my
 master thesis to the Twitter related topic. My promoter is the PhD at
 the Department of Computer Linguistics and our first pick was vaguely
 to analyse the semantic meaning of tweets.

 Do you have suggestions about the dissertation topic?
 Do you have any pending requests or prospect features you want to
 develop?

 I will browse known issues, I will think thoroughly about the topic
 but still - your suggestion might be very helpful. Even the shortest
 one (like good luck) will encourage me to more intensive research.
 *** *** ***
 Does anyone have any suggestions? My ticket has a six-digit number so
 I'm afraid I won't get any answer :)

 I'll probably ask for help during my work so I subscribe to this group
 anyway.

 Thanks in advance!




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: new cursor-based pagination not multithread-friendly

2009-09-18 Thread Kevin Mesiab

We can deal w/ rate limiting, just give us some semblance of accuracy
or the calls are pointless.


[twitter-dev] Twitter AIR/JS API

2009-09-03 Thread Kevin Mesiab

For those of you developing in AIR or JS, we've open sourced our
Twitter API library.  Collaborators encouraged:
http://code.google.com/p/adobe-air-twitter/

-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: Is twitter a fad or worth development efforts?

2009-09-03 Thread Kevin Mesiab

You're asking the wrong folks.  Most of the developers here do not
have any real capital investment in their projects to speak of.  Fewer
still have a profit model.

Is Twitter a Fad?
The easy answer, yes.
The long answer? Yes, but it needn't be...

Unless Twitter makes a very real move to legitimize itself as a stable
and growing (relevant) platform for end users, you will be better off
focusing your capital on social media projects with more long term
sustainability.

Be aware, very few actual businesses have invested real dollars and
labor into integration w/ Twitter (sales force, dell, whoot, et al) as
opposed to the thousands who have adopted Facebook's API.

The reason is not a matter of playing favorites, it's a matter of
mitigating risk.  Presently, Twitter is a fad.  It's popularity and
its current growth pattern is a result of novelty and a media bubble.

However, Twitter has a very real chance to galvanize that momentum
into a serious business (one that includes us third party developers),
but it must move swiftly.  Facebook is posturing to take over
Twitter's market space.  Not because it wants to obliterate Twitter as
a competitor, but because they know what we know.  The 'correct'
social network exists somewhere between FB and Twitter.

Both companies _should_ be racing towards that space.  Whoever
dominates it (and thusly deserves our investment) will be the one who
a.) gets there first and b.) properly courts the developer community
to enrich it.

There are only two ways to convince real companies to invest real capital:

1.) Prove the users are there
2.) Guarantee a market

Apple has shown us this model at scale.

A rich developer community, incentivized by a Twitter regulated app
store, and a firm developer bill of rights will ensure Twitter stays
relevant (and its users enjoy a rich experience) for a lot longer than
it should.  It also gets to 'grow up' into a real company and earn
revenue from a reseller split (again, via Apple).


-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: Either destroy is/was failing, or my understanding of destroy is/was failing

2009-09-02 Thread Kevin Mesiab

Pushing statuses to Facebook ?

can you clarify this?


On Wed, Sep 2, 2009 at 11:25 AM, John Kaluckijkalu...@gmail.com wrote:

 There's a note on the Status blog that we're having some delays in
 processing a proportion of new statuses. This issue looks to largely
 be resolved, and all the subsequent backlogs have been processed --
 except there's still a bit of a backlog pushing statuses to Facebook
 that should resolve soon enough.

 I'd imagine that your test status was delayed. Then, when you tried to
 delete it, it wasn't available. You should try again now. The queues
 look to be empty.

 -John


 On Sep 2, 9:38 am, Ted Neward ted.new...@gmail.com wrote:
 I've been hacking on the Twitter API, and I'm running into some serious
 weirdness with destroy.

 I post a message:

 C:\ curl -u name:pass -d 
 status=Testinghttp://twitter.com/statuses/update.xml

 ?xml version=1.0 encoding=UTF-8?

 status

   created_atWed Sep 02 10:10:23 + 2009/created_at

   id3708721364/id

   textTesting/text

   sourcelt;a href=quot;http://apiwiki.twitter.com/;
 rel=quot;nofollowquot;gt;APIlt;/agt;/source

   truncatedfalse/truncated

   in_reply_to_status_id/in_reply_to_status_id

   in_reply_to_user_id/in_reply_to_user_id

   favoritedfalse/favorited

   in_reply_to_screen_name/in_reply_to_screen_name

   user

     id70927096/id

     nameTed Neward/name

     screen_nameTestingScitter/screen_name

     location/location

     description/description

 profile_image_urlhttp://s.twimg.com/a/1251845223/images/default_profile_no
 rmal.png/profile_image_url

     url/url

     protectedfalse/protected

     followers_count1/followers_count

     profile_background_color9ae4e8/profile_background_color

     profile_text_color00/profile_text_color

     profile_link_colorff/profile_link_color

     profile_sidebar_fill_colore0ff92/profile_sidebar_fill_color

     profile_sidebar_border_color87bc44/profile_sidebar_border_color

     friends_count6/friends_count

     created_atWed Sep 02 09:49:13 + 2009/created_at

     favourites_count0/favourites_count

     utc_offset/utc_offset

     time_zone/time_zone

 profile_background_image_urlhttp://s.twimg.com/a/1251845223/images/themes/
 theme1/bg.gif/profile_background_image_url

     profile_background_tilefalse/profile_background_tile

     statuses_count4/statuses_count

     notificationsfalse/notifications

     verifiedfalse/verified

     followingfalse/following

   /user

 /status

 . which is all good, but then I try to delete that message:

 C:\ curl -u name:pass --http-request 
 DELETEhttp://twitter.com/statuses/destroy/3708721364.xml

 ?xml version=1.0 encoding=UTF-8?

 hash

   request/statuses/destroy/3708721364.xml/request

   errorWe could not delete that status for some reason./error

 /hash

 What gives? Is this something that I'm doing wrong on my end? Momentary
 server weirdness? (Though it seems to have been pretty consistent all
 night.)

 Ted Neward

 Java, .NET, XML Services

 Consulting, Teaching, Speaking, Writing

  http://www.tedneward.comhttp://www.tedneward.com




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] OT: Retweet.com API

2009-08-27 Thread Kevin Mesiab

Just a quick heads up, we've published a very simple JSON API for
Retweet.com to perform lookups on urls:

http://retweet.com/story/api/http://cnn.com

-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: Search for user API

2009-08-26 Thread Kevin Mesiab

Use the search api

On Wed, Aug 26, 2009 at 10:38 AM, Marc Andrewsbackcirc...@gmail.com wrote:

 I've scoured the API documentation, but to my surprise, can't find the
 answer...

 Does the API allow search for user by first name, last name, or screen
 name?

 I'm not interested in searching for tweets from or to a user, only in
 searching for user profiles matching the above criteria.

 Thanks,
 -Marc




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: Search for user API

2009-08-26 Thread Kevin Mesiab

http://apiwiki.twitter.com/Twitter-Search-API-Method%3A-search

On Wed, Aug 26, 2009 at 10:51 AM, Kevin Mesiabke...@mesiablabs.com wrote:
 Use the search api

 On Wed, Aug 26, 2009 at 10:38 AM, Marc Andrewsbackcirc...@gmail.com wrote:

 I've scoured the API documentation, but to my surprise, can't find the
 answer...

 Does the API allow search for user by first name, last name, or screen
 name?

 I'm not interested in searching for tweets from or to a user, only in
 searching for user profiles matching the above criteria.

 Thanks,
 -Marc




 --
 Kevin Mesiab
 CEO, Mesiab Labs L.L.C.
 http://twitter.com/kmesiab
 http://mesiablabs.com
 http://retweet.com




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: General Twitter APIs question - query by application?

2009-08-26 Thread Kevin Mesiab

One could get started gathering these metrics by analyzing search
queries in the vein of:

feed://search.twitter.com/search.json?q=source:tweetdeck


On Wed, Aug 26, 2009 at 7:03 AM, Shannon Clarkshannon.cl...@gmail.com wrote:
 Hi all,

 This isn't specific to the app I'm building at the moment, but the recent
 thread on how to determine who is using your application reminded me of a
 general question I have about the APIs.

 Is there is an API call to return information about updates done via a given
 application? (i.e. the information which is available via the website about
 which application was used to post a given status update). Ideally I could
 see utility for queries of this form via multiple of the API's - as a filter
 on the streaming API's for example or as an option to filter upon via other
 API's calls or just as metadata inherent with each update which an app could
 choose whether or not to use in some manner.

 Ideal would be options to both positively filter and negatively filter -
 i.e. for an app to offer a blacklist of applications your users do not wish
 to see updates which were posted by those apps (but might want to see some
 aggregated information about what you have negatively filtered - i.e.
 @rycaut has 3 recent updates from PlaySpymaster which aren't displayed etc.

 At scale I could also see useful data for the developer community about
 activity  usage patterns of our applications - both raw usage (i.e. # of
 status updates) but also diversity of usage (# of unique users, % of those
 users' updates per app type, etc). Potentially as well Twitter might offer
 aggregated data about usage patterns (perhaps only as relative usage w/o
 specific data) which could include patterns of usage from even accounts set
 private (without revealing anything about those accounts  just adding their
 data into aggregated totals - and again if the specific data isn't shown
 then certain attacks on privacy could be avoided)

 Anyway, perhaps there are already ways to access this data, if so I'd
 appreciate a pointer to them, if not, I hope this sparks some discussion.

 Shannon

 Founder, Nearness Function - strategic consulting, brand advertising 
 sponsorships
 Twitter - rycaut
 Blogs: Slow Brand - http://slowbrand.com
 Searching for the Moon - http://shannonclark.wordpress.com




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: Streaming API -- CHANGE REQUIRED -- URL rationalization

2009-08-26 Thread Kevin Watters

Will the streaming API ever expose tweets from protected users?--or is
it an infrastructure limitation that isn't going away anytime soon?
Also, will we ever see the ability to get real time tweets based on
search operators (http://search.twitter.com/operators)?

On Aug 26, 3:06 pm, John Kalucki jkalu...@gmail.com wrote:
 The resources in the Streaming API have been rationalized. You'll need
 to update the URLs that streaming clients are using over the next two
 weeks. The old URLs will be deprecated on or after September 9, 2009.
 The change is documented in the 
 Wiki:http://apiwiki.twitter.com/Streaming-API-Documentation,
 specifically inhttp://apiwiki.twitter.com/Streaming-API-Documentation#Methods.

 The new scheme allows for API versioning, streams that contain objects
 other than statuses, separates access level control from URLs and
 allows multiple filter predicates to be specified on a single
 connection. The cute resource names have, sadly, been dropped we move
 towards pushing the service out of Alpha. Also, /track and friends
 have been merged with /follow and friends into a single resource. When
 you connect to a given resource, you will automatically be given the
 highest access level possible.

 The following is a mapping from the old URLs to the new URLs.
 Otherwise, you should notice only subtle changes to the Streaming API
 error handling behavior. All other functionality should continue to
 work as in the past.

 /firehose - /1/statuses/firehose
 /spritzer, /gardenhose - /1/statuses/sample
 /birddog, /shadow, /follow - /1/statuses/filter
 /partner/track, /restricted/track, /track - /1/statuses/filter

 For example, if you have been connecting to /gardenhose.json, connect
 to /1/statuses/sample.json.

 Note that the Streaming API is still in Alpha test.

 -John Kaluckihttp://twitter.com/jkalucki
 Services, Twitter Inc.


[twitter-dev] Re: Open Auth

2009-08-16 Thread Kevin Mesiab

When a user signs up at TwitPic, for instance, the same credentials
they used for Twitter are now valid for use in uploading media.  This
lets users enjoy a bit of a mash-up with a single sign-on.  Is this
also true when authorized via openAuth?


-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: php regex for twitter password

2009-08-15 Thread Kevin Mesiab

Depending on your deployment scenario, you could let Google do the
heavy lifting for you ;)

https://www.google.com/accounts/RatePassword?Passwd=poopy

On Sat, Aug 15, 2009 at 10:43 AM, Sam Streetsam...@gmail.com wrote:

 http://pastebin.com/m4fd058a4

 This code will be able to determine whether a password is weak, ok or
 strong based on whether it contains lowercase, uppercase + numbers

 hope thats what you were after

 -Sam @sampicli http://twicli.com

 On Aug 15, 7:33 am, Xpineapple kenned...@gmail.com wrote:
 I could probably play with regex all day and get no where (and so far
 am).  While I could make some progress, I don't know all the rules for
 a good password.  My intent is to ensure server (and service) are
 safe.  With that in mind, can anyone provide a fair enough regex
 example of sanatizing a password for twitter service? Thanx.




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: How do you store the social graph locally?

2009-08-15 Thread Kevin Mesiab

Your implementation here has much to do with how you intend to use the
social graph.

Are you simply caching, or do you intend to identify metrics by
analyzing the shape of the relationships over time?

If you're simply creating a local cache, blowing away the existing
store and serializing the response from the api call is sufficient,
since you cannot divide the results except by page.

If you intend to get a little fancier, there are plenty of algorithms
for diff'ing the results.  Your saving grace is that the result set is
a list of integers.  If you take a little time to sort results, you
will be able to perform your diffs swiftly.

my two cents, not adjusted for inflation.


On Sat, Aug 15, 2009 at 10:24 AM, Arik Fraimovicharik...@gmail.com wrote:

 On Aug 15, 10:56 pm, Kevin Mesiab ke...@mesiablabs.com wrote:
 If you store them as blobs, we're going to revoke your compiler privileges.

 Good thing that lately I was mainly doing PHP or Python, so no
 compiler privileges were needed - only parser

 Any other comments on the question in hand?

 Thanks,
 --
 Arik Fraimovich
 follow me on twitter: http://twitter.com/arikfr




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: How do you store the social graph locally?

2009-08-15 Thread Kevin Mesiab

If you store them as blobs, we're going to revoke your compiler privileges.

:P

On Sat, Aug 15, 2009 at 4:24 AM, Arik Fraimovicharik...@gmail.com wrote:

 I was wondering how you store a local cache of the social graph
 methods results locally in your applications.

 One obvious solution is to create a two column table of the relations,
 but in such case how do you update it? Just prune everything of the
 user you're updating and inserting from the beginning? The other
 solution is to store the results of the API calls as blobs to the DB
 and parse them everytime in code instead of by SQL queries. The
 problem I can see with that is duplication of data, less ability to do
 smart stuff with the data and other issues.

 Would love to hear how you implemented it in your apps and other ideas
 related.

 Thanks,

 --
 Arik Fraimovich
 follow me on twitter: http://twitter.com/arikfr




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Open Auth

2009-08-15 Thread Kevin Mesiab

Hi Twitter API Team,

We are considering not implementing OAuth in our desktop application.
The interaction seems unintuitive and redundant for users who have
already granted our application 'trust' by installing it.  Are we
still to expect basic auth to go away?  Is it possible to be granted a
source attribute without OAuth implementation?

-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: Early developer preview: Retweeting API

2009-08-13 Thread Kevin Mesiab

Bravo!  Great job Twitter API Team!


[twitter-dev] Re: Following Churn: Specific guidance needed

2009-08-12 Thread Kevin Mesiab
Well said Shannon.


-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: Following Churn: Specific guidance needed

2009-08-11 Thread Kevin Mesiab
This entire debate focuses on the wrong side of the coin.
Follow churn exists as a side effect of the improper Twitter culture of
reciprocating follows blindly.

If users paid due diligence to those they follow and only followed those
people who demonstrate some value to them, follower churn would not exist.
 Period.


On Tue, Aug 11, 2009 at 7:51 AM, owkaye owk...@gmail.com wrote:


   Would be very helpful to know the definition of quick
   as relates to following churn suspensions.
 
  As Cameron pointed out earlier, as soon as they do that,
  the following churners will adjust their methods to be
  just inside that definition of OK.

 This seems like a really short-sighted reason for NOT
 clarifying what's acceptable and what's not.

 If it's acceptable then who cares if the churners adjust
 their methods?  At least everyone will know how to avoid
 problems for a change, right?




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: Following Churn: Specific guidance needed

2009-08-11 Thread Kevin Mesiab
And here lies the slippery slope.
On Tue, Aug 11, 2009 at 8:25 AM, owkaye owk...@gmail.com wrote:


  If users paid due diligence to those they follow and only
  followed those people who demonstrate some value to them,
  follower churn would not exist. Period.

 Obviously they won't so maybe it's time to deal with reality
 rather than dreaming of a perfect world.

 Owkaye




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: Following Churn: Specific guidance needed

2009-08-11 Thread Kevin Mesiab
Step 1.) turn off email notifications (legitimat, but easily mitigated
problem).Step 2.) getting spammed?  Unfollow that user (question why you
followed them in the first place).


On Tue, Aug 11, 2009 at 8:35 AM, Kevin Mesiab ke...@mesiablabs.com wrote:

 And here lies the slippery slope.

 On Tue, Aug 11, 2009 at 8:25 AM, owkaye owk...@gmail.com wrote:


  If users paid due diligence to those they follow and only
  followed those people who demonstrate some value to them,
  follower churn would not exist. Period.

 Obviously they won't so maybe it's time to deal with reality
 rather than dreaming of a perfect world.

 Owkaye




 --
 Kevin Mesiab
 CEO, Mesiab Labs L.L.C.
 http://twitter.com/kmesiab
 http://mesiablabs.com
 http://retweet.com




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: FW: Twitter is Suing me!!!

2009-08-11 Thread Kevin Mesiab
The same TOS that applies to users applies to developers, along with this
one: http://apiwiki.twitter.com/Terms-of-Service
http://apiwiki.twitter.com/Terms-of-ServiceIf you haven't already, I
encourage all developers to familiarize themselves with both.  You may also,
now, find more value in joining the Twitter Developers Alliance, which is
presently working on the first draft of the Twitter Developers Bill of
Rights, which Twitter has agreed to coordinate with.




 I'm very interested to learn more about the specifics, if there is some
 developer TOS I'm unaware of.


-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: Fun140 and Truetwit developers

2009-08-02 Thread Kevin Mesiab
While I laud them for what is obviously a successful campaign, this is
getting a little ridiculous... http://screencast.com/t/XB7jPjnBWlr


On Sun, Aug 2, 2009 at 7:04 AM, Jesse Stay jesses...@gmail.com wrote:

 Agreed.  These things have to stop.


 On Sun, Aug 2, 2009 at 10:53 AM, Dale Merritt mogul...@gmail.com wrote:

 I think that should be standard.  Opt in only (put in Twitter TOS)


 On Sun, Aug 2, 2009 at 7:47 AM, Aaron Brazell emmenset...@gmail.comwrote:

 I'm assuming whoever the developer is behind these two sites is also on
 this list. There is a lot of concern among twiytter users about your apps
 sending auto dms to people. It's perceived as abusive and spammy and I
 agree. After getting a tweaked toucan in my DM inbox, I wonder why I have
 to put up with this. Unfortunately, unlike Facebook, users can't opt out of
 these spammy things.
 I've asked Twitter to look into your apps, but I'm also making a personal
 plea to figure out another way of doing this and allowing people to opt out
 of messages from your apps. Or better yet, opt in.

 --
 Aaron Brazell
 web:: www.technosailor.com
 phone:: 410-608-6620
 skype:: technosailor
 twitter:: @technosailor




 --
 Dale Merritt
 Fol.la MeDia, LLC





-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: Twitter JS implementation

2009-07-29 Thread Kevin Mesiab
No decent implementation of the twitter API exists in js.  Sorry.  Had to
say it.
If you're developing a js/xhtml application under the air environment, you
may be interested in using our js wrapper for the API.  We will be open
sourcing it after our release.  Let me know.

On Wed, Jul 29, 2009 at 9:25 AM, JDG ghil...@gmail.com wrote:

 http://code.google.com/p/oauth/source/browse/code/javascript/ will get you
 started -- the oauth stuff is probably the meat of what you need to do to
 get statuses/update working.

 JS isn't a great language for this, because of the XSS issues that arise.


 On Wed, Jul 29, 2009 at 11:29, Bob Fishel bobfis...@gmail.com wrote:


 Can anyone recommend a javascript api implementation (anything that
 already has a jquery plugin would be a bonus but not necessary)

 The few I've seen don't allow statuses.update which is a nessecity for
 me.

 Thanks




 --
 Internets. Serious business.




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: Do the order of the Parameters Posted in the URL matter for the Twitter API with oAuth?

2009-07-28 Thread Kevin Mesiab
No.

On Tue, Jul 28, 2009 at 4:40 PM, bosher bhellm...@gmail.com wrote:


 Thanks




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] HotTweeters

2009-07-20 Thread Kevin Mesiab
Alright... which one of you made HotTweeters.com?
;)  Clever adaptation.

-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: HotTweeters

2009-07-20 Thread Kevin Mesiab
http://siteanalytics.compete.com/hottweeters.com/
http://siteanalytics.compete.com/hottweeters.com/That for starters

On Mon, Jul 20, 2009 at 2:47 AM, Christian Heilmann 
chris.heilm...@gmail.com wrote:


 Kevin Mesiab wrote:

 Alright... which one of you made HotTweeters.com?

 ;)  Clever adaptation.

  ^ how?

 Time to change my avatar to some tits and win the internets!




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: HotTweeters

2009-07-20 Thread Kevin Mesiab
While others might waste time educating you with a proper debate, some of us
are busy profiting on page views.

On Mon, Jul 20, 2009 at 3:03 AM, Christian Heilmann 
chris.heilm...@gmail.com wrote:


 Kevin Mesiab wrote:

 http://siteanalytics.compete.com/hottweeters.com/

 That for starters

  Pageviews, the success metrics for people who want instant satisfaction.

 http://siteanalytics.compete.com/rapidshare.com/

 Do we really need more sites that create more traffic for Twitter without a
 single chance to become a business or help the content quality? Burning
 money was fun during the first .com boom, can we please stop now?






-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: What is users/show time caching for profile_image_url ?

2009-07-20 Thread Kevin Dunglas

Nobody has the answer? It helps me a lot!

On Jul 19, 6:42 pm, Kevin  Dunglas dung...@gmail.com wrote:
 Hello,
 I'm working on a program which update periodically some Twitter
 accounts avatars.
 Here is the process:
 --
 while True:
   GEThttp://twitter.com/users/show/myuser.xml
   GET avatar located at the url specified in the profile_image_url XML
 tag
   Make some change to the avatar
   POST the new avatar onhttp://twitter.com/account/update_profile_image.xml

   sleep(some time)
 --

 While the program sleep (between two avatar processing) the user can
 upload manually a new avatar.

 My problem is that the value profile_image_url is often outdated an
 when I try to download the current user avatar using this value I get
 a 404 error.

 I guess the address of the avatar is cached, but after how long the
 users/show page contains the new value? Is there a way to always the
 get the current (displayed on the twitter.com user profile) avatar ?

 Thanks !


[twitter-dev] What is users/show time caching for profile_image_url ?

2009-07-19 Thread Kevin Dunglas

Hello,
I'm working on a program which update periodically some Twitter
accounts avatars.
Here is the process:
--
while True:
  GET http://twitter.com/users/show/myuser.xml
  GET avatar located at the url specified in the profile_image_url XML
tag
  Make some change to the avatar
  POST the new avatar on http://twitter.com/account/update_profile_image.xml

  sleep(some time)
--

While the program sleep (between two avatar processing) the user can
upload manually a new avatar.

My problem is that the value profile_image_url is often outdated an
when I try to download the current user avatar using this value I get
a 404 error.

I guess the address of the avatar is cached, but after how long the
users/show page contains the new value? Is there a way to always the
get the current (displayed on the twitter.com user profile) avatar ?

Thanks !


[twitter-dev] Re: Tweet Photo

2009-07-19 Thread Kevin Mesiab
Have at it
https://www.google.com/adsense/localized-terms


On Sun, Jul 19, 2009 at 6:11 PM, Swaroop rh.swar...@gmail.com wrote:


 Hmm, is this even allowed (by Adsense)?



https://www.google.com/adsense/localized-terms
-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: Matt Sanford, signing off.

2009-07-18 Thread Kevin Mesiab
Congrats Matt.  Hope you have a lot of fun on the new team.

On Fri, Jul 17, 2009 at 8:01 PM, Philip Plante pplante@gmail.comwrote:


 Good luck, thanks for the help on the list.

 On Jul 17, 10:49 pm, Karthik Murugan fermis...@gmail.com wrote:
  Good Luck Matt!!
 
  On Jul 18, 2:18 am, Matt Sanford m...@twitter.com wrote:
 
 
 
   Hi everybody*,
 
Starting next week I'm not going to be responding to mails on the

   dev list or working on Google Code issues as part of my daily work. I
   have been working on the Search and API/Platform teams here at Twitter

   since the acquisition of Summize a year ago and the time has come for
   a change. I'm leaving both teams to take on the role of technical lead

   for the new Twitter internationalization team. Anybody who's gotten me

   talking about language detection or language-specifics (especially in
   person) knows this is something I have a personal interest in.
The other team member are going to continue to keep an eye on the

   dev list and the Google Code issues. As always you can email
 a...@twitter.com
 directly if you need something. I'll continue working on the Google
   Code issues assigned to me or in some cases someone will take them
   over next week. I mostly felt like I should send you all a good bye
   since you're considered an extension of the API/Platform team. This
   change should be fully backward compatible so I didn't see the need
   for 7-days notice.
 
   Good night, and good luck;
 – Matt Sanford / @mzsanford
 Twitter Dev
 
   * = Who just said Hi, Dr. Nick. out loud? Your cube neighbor thinks
   you're crazy.




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Tweet Photo

2009-07-18 Thread Kevin Mesiab
Hey guys, just a quick FYI.  TweetPhoto has a revenue share option for
developers.  You can earn revenue from google adwords displayed near photos
uploaded by your client.  Some of you I know have great volume and this
would probably be a relatively painless and tasteful revenue stream to
capitalize on.
I'm not involved w/ TweetPhoto in any way, but I do plan to integrate their
API, and set it as default ;)

Hope some of you find this helpful.

-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: Too many requests in this time period. Try again later.

2009-07-17 Thread Kevin Mesiab
How quickly are the 30-40 calls issued?

On Fri, Jul 17, 2009 at 1:03 PM, J.D. jeremy.d.mul...@gmail.com wrote:


 Today I started getting this error, even only after a handful of API
 calls. Is this a new change? I've tested with two accounts, one that
 is whitelisted and another that is not. I'm getting this from both
 accounts after only 30 or 40 calls.

 403  Too many requests in this time period. Try again later.




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: Too many requests in this time period. Try again later.

2009-07-17 Thread Kevin Mesiab
Regarding a sleep between calls, until someone from Twitter pipes in it
would be worth a use case test, yes.

On Fri, Jul 17, 2009 at 1:38 PM, J.D. jeremy.d.mul...@gmail.com wrote:


 WRT the sleep, I've never had to in the past. It just started failing.




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: How to pattern-match these crazy shortened URLs?

2009-07-17 Thread Kevin Mesiab
Code commented w/ don't ask is immediately suspect :P

On Fri, Jul 17, 2009 at 6:43 PM, ferodynamics duch...@solve360.com wrote:


 I go cross-eyed when it comes to reading this stuff.  I hacked some
 code I found, catches bit.ly but not (for example) ff.im

 (Can I post code here?)

 function urls2link($text){
if (strpos($text, '...')==0) { // don't ask!
$pattern =
 '\bH|h)(T|t)(T|t)(P|p))\://)?(www.|[a-zA-Z0-9]{1,99}.)
 [a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,6}';
$pattern .= '(\:[0-9]{1,5})*(/(|[a-zA-Z0-9\.\,\;\?\'\\\+%\$#\=~_\-]
 +?))*)($|[^\w/][\s]|[\s]|[^\w/]$)';
$replacement = '\'a target=_new href=\'.((\'$4\' == \'\')?
 \'http://$1\':\'$1\').\'
$1/a $16\'';
return preg_replace('¦'.$pattern.'¦e', $replacement, $text); }
else return $text;
 };

 Works most of the time, but clearly has issues.  I figure somebody has
 already solved this and wants to share ;-)




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: How to pattern-match these crazy shortened URLs?

2009-07-17 Thread Kevin Mesiab
In js, this seems to work:
var x = /(?:http://)*(w{0,3}\.?\w+\.\w{2,3}[/\w]*)/gim
var p = 'a href=$1$1/a';

str.replace( x, p );


On Fri, Jul 17, 2009 at 7:06 PM, Kevin Mesiab ke...@mesiablabs.com wrote:

 Code commented w/ don't ask is immediately suspect :P


 On Fri, Jul 17, 2009 at 6:43 PM, ferodynamics duch...@solve360.comwrote:


 I go cross-eyed when it comes to reading this stuff.  I hacked some
 code I found, catches bit.ly but not (for example) ff.im

 (Can I post code here?)

 function urls2link($text){
if (strpos($text, '...')==0) { // don't ask!
$pattern =
 '\bH|h)(T|t)(T|t)(P|p))\://)?(www.|[a-zA-Z0-9]{1,99}.)
 [a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,6}';
$pattern .=
 '(\:[0-9]{1,5})*(/(|[a-zA-Z0-9\.\,\;\?\'\\\+%\$#\=~_\-]
 +?))*)($|[^\w/][\s]|[\s]|[^\w/]$)';
$replacement = '\'a target=_new href=\'.((\'$4\' == \'\')?
 \'http://$1\':\'$1\').\'
$1/a $16\'';
return preg_replace('¦'.$pattern.'¦e', $replacement, $text); }
else return $text;
 };

 Works most of the time, but clearly has issues.  I figure somebody has
 already solved this and wants to share ;-)




 --
 Kevin Mesiab
 CEO, Mesiab Labs L.L.C.
 http://twitter.com/kmesiab
 http://mesiablabs.com
 http://retweet.com




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Safe url shorteners

2009-07-15 Thread Kevin Mesiab
Just wanted to let you guys know about a free service we're prototyping for
shortening URL's that overcomes a few of the limitations of other
shorteners.

http://rt.nu/api/

Specifically shortened links include a screen shot 'preview' w/ a
continue/cancel option and the full URL is displayed *before* redirecting
users to prevent NSFW accidents ;) and other subversive tricks used by
spammers and hackers. (ex: http://rt.nu/iqzh).

The API lets you:

1.) Shorten links
2.) Dereference the original url of a shortened link
3.) Click throughs
4.) Referrers
5.) Velocity (clicks per hour)
6.) Rank (ctr vs all other rt.nu links)

If you end up implementing RT.nu or playing with the API, we'd really
appreciate any feedback.

-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://www.mesiablabs.com


[twitter-dev] Re: Safe url shorteners

2009-07-15 Thread Kevin Mesiab
That's a valid concern that we share in our retweet.com application.  We
dereference all shortened urls before indexing tweets.

In anticipation, rt.nu supplies the API call
/api/stats/[short]/originalhttp://rt.nu/api/stats/8kw/original to
grab the original url for archiving or displaying to end users.

Dale:

All links are dereferenced by rt.nu to be qualified before shortening.
 Currently in beta, we've set the qualifications a bit tight and urls that
redirect using some schemes will be rejected, and some bad http status
headers will also cause rejection.  This will be cleaned up a bit before
full public deployment.  At present, all urls use rt.nu as the root domain
and are typically between 7 and 10 characters.

Screenshots are gathered via http://www.thumbshots.com/ which works like
this:

1.) If the full url exists in the cache its image is returned, then the url
is queued for a new shot.

2.) If the full url does not exist in the cache as a screenshot, the root
domain is looked up.  If the root domain is in the cache, that shot is
returned and the full url is queued for a new shot.



On Wed, Jul 15, 2009 at 12:34 PM, owkaye owk...@gmail.com wrote:


  Just wanted to let you guys know about a free service
  we're prototyping for shortening URL's that overcomes a
  few of the limitations of other shorteners.

 Only one problems with all these URL shorteners, when the
 companies creating them disappear all their shortened URLs
 become orphans and therefore useless.

 Not a major problem on Twitter because of the typical
 transience of data, but when you run a company like mine
 that needs to reference historic data it will definitely
 create future problems when these companies fail.

 Just something for folks to consider ...

 Owkaye







-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: Safe url shorteners

2009-07-15 Thread Kevin Mesiab
Thumbshots.com is a paid service too.  Major fail.

On Wed, Jul 15, 2009 at 1:09 PM, Chris Thomson chri...@chris24.ca wrote:

 You may want to check what thumbshots is doing with the URL
 http://google.com/ . It's definitely not taking a screenshot of the
 correct site …
 --
 Chris Thomson

 On 15-Jul-09, at 7:06 PM, Kevin Mesiab wrote:

 That's a valid concern that we share in our retweet.com application.  We
 dereference all shortened urls before indexing tweets.

 In anticipation, rt.nu supplies the API call 
 /api/stats/[short]/originalhttp://rt.nu/api/stats/8kw/original to
 grab the original url for archiving or displaying to end users.

 Dale:

 All links are dereferenced by rt.nu to be qualified before shortening.
  Currently in beta, we've set the qualifications a bit tight and urls that
 redirect using some schemes will be rejected, and some bad http status
 headers will also cause rejection.  This will be cleaned up a bit before
 full public deployment.  At present, all urls use rt.nu as the root domain
 and are typically between 7 and 10 characters.

 Screenshots are gathered via http://www.thumbshots.com/ which works like
 this:

 1.) If the full url exists in the cache its image is returned, then the url
 is queued for a new shot.

 2.) If the full url does not exist in the cache as a screenshot, the root
 domain is looked up.  If the root domain is in the cache, that shot is
 returned and the full url is queued for a new shot.



 On Wed, Jul 15, 2009 at 12:34 PM, owkaye owk...@gmail.com wrote:


  Just wanted to let you guys know about a free service
  we're prototyping for shortening URL's that overcomes a
  few of the limitations of other shorteners.

 Only one problems with all these URL shorteners, when the
 companies creating them disappear all their shortened URLs
 become orphans and therefore useless.

 Not a major problem on Twitter because of the typical
 transience of data, but when you run a company like mine
 that needs to reference historic data it will definitely
 create future problems when these companies fail.

 Just something for folks to consider ...

 Owkaye







 --
 Kevin Mesiab
 CEO, Mesiab Labs L.L.C.
 http://twitter.com/kmesiab
 http://mesiablabs.com
 http://retweet.com





-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: User Search API

2009-07-11 Thread Kevin Mesiab
Is there a published road-map?  Thanks.

On Sat, Jul 11, 2009 at 6:53 AM, Doug Williams d...@twitter.com wrote:

 Samir,
 User search is something we would like to offer in the future through the
 API.  The project is not highly ranking on the current overall roadmap, so
 there is no ship date to report.

 Thanks,
 Doug






 On Fri, Jul 10, 2009 at 2:53 PM, SamirR samir.ray...@gmail.com wrote:


 Are there plans to implement user search in the API (http://
 twitter.com/search/users?q=)? Thanks!

 Samir





-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
img src=
http://twitterproforum.com/image.php?u=5type=sigpicdateline=1242113349; /

208-447-6016

http://www.mesiablabs.com
http://www.plsadvise.com


[twitter-dev] Re: Getting tweets from Twitter API

2009-07-10 Thread Kevin Mesiab
The time field returned contains the offset (usually +)
Tue Apr 07 22:52:51 + 2009

On Thu, Jul 9, 2009 at 7:13 PM, praveen kumar
praveen.neteli...@gmail.comwrote:

 Hi,

 If we are getting tweets from Twitter API , User's tweet dates are in which
 timezone. Is it in GMT or else different timezones.


 --
 Regards,
 Praveen Kumar.N




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.

208-447-6016

http://www.mesiablabs.com
http://www.plsadvise.com


[twitter-dev] Grouping API calls

2009-07-09 Thread Kevin Mesiab
Is there a faculty for grouping several API calls together to reduce round
trips?

-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.

208-447-6016

http://www.mesiablabs.com
http://www.plsadvise.com


[twitter-dev] Re: Appx # of records in gardenhose

2009-07-09 Thread Kevin Mesiab
Gardenhose?

On Thu, Jul 9, 2009 at 5:49 PM, John Kalucki jkalu...@gmail.com wrote:


 2m - 3m, very roughly.


 On Jul 9, 8:34 pm, dhaval dhaval.parik...@gmail.com wrote:
  hey
 
  can ne one tell me the # of records we get appx in gardenhose per
  day?
 
  Thanks




-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
img src=
http://twitterproforum.com/image.php?u=5type=sigpicdateline=1242113349; /

208-447-6016

http://www.mesiablabs.com
http://www.plsadvise.com


[twitter-dev] Incomplete profile_image_url

2009-06-10 Thread Kevin Makice

I'm trying to debug a tool that deals with profile pictures, but I am
having difficulty with what is appearing in the API user data. Some
background, with questions at the end.


I've tested with PNG and JPEG, and both are able to use the API to
change a profile image, with quick response time and confirmed results
on the web site. However, the data returned in the API user data for
profile_image_url is both incomplete (no extension) and never
changes, despite multiple uploads:

* profile_image_urlhttp://s3.amazonaws.com/twitter_production/
profile_images/98187860/phpbnQSdI_normal/profile_image_url

This is different than my own profile, which returns a URI to an
actual file, with an extension. It is also odd that, regardless of how
often or with which tool (API vs. web site), this value never changes.
In the HTML source of the twitter profile page, an explicit URI
pointing to the correct profile image is used (http://s3.amazonaws.com/
twitter_production/profile_images/257370741/ObamaAvatar_bigger.png)

* Test account with changed picture: 
http://twitter.com/users/show/anonymous_.xml
* My account without no changes: http://twitter.com/users/show/kmakice.xml

One other oddity: This test account has a background image (not one
that is currently used, but it still exists) that also lacks an
extension. I believe I had changed it through the API, several month
ago. That incomplete link, however, DOES resolve to a graphic.

* Test account background image:
http://s3.amazonaws.com/twitter_production/profile_background_images/4987975/phpBhOnhz
(unchanged)
* Test account profile image:
http://s3.amazonaws.com/twitter_production/profile_images/98187860/phpbnQSdI_normal
(changed)

I thought perhaps the funky profile image URI would eventually
resolve, but even after several hours, it didn't. (I have since
conducted new tests, so the changes aren't that old anymore.)

My questions:

1) Is this no-extension link in the *_image_url values a new format?
Meaning, if I uploaded a new profile picture to my account, would it
also have no extension?

2) Why doesn't the link in the profile_image_url change with each new
upload?

Thanks,
Kevin


[twitter-dev] Re: Incomplete profile_image_url

2009-06-10 Thread Kevin

Thanks for that link. (Have to remember to check the bug list as well
as searching here.)

I second one a request in one of the latter comments in that thread
for some meta information about image changes (*_image_last_modified).
I have been tracking changes to profile images for a couple months for
research, and this is/will mess that up without some simple way of
telling if the image has changed.


[twitter-dev] Bug: RSS/xml alternate links on public profiles show uninterpreted @user.id and current_user.id

2009-05-02 Thread Kevin

I'm not sure when this started (likely within a few days), but we just
noticed the link rel=alternate/ links have been rendering
incorrectly on all public twitter profiles.

They literally appear as uninterpreted ruby string escape sequences:
link rel=alternate href=/statuses/user_timeline/#
{...@user.id}.rss title=Loquatmusic's Updates type=application/rss
+xml /
link rel=alternate href=/favorites/#{current_user.id}.rss
title=Loquatmusic's Favorites type=application/rss+xml /

The timeline RSS can still be scraped from the in-page link (a href
class=xref rss profile-rss), but hopefully they'll fix this soon.

Kevin Hunt
TopFans.com



[twitter-dev] Re: Introducing Doug Williams, Twitter API Support

2009-03-10 Thread Kevin

Congrats to Doug and everyone at Twitter. The activity on @twitterapi
is already noticed and welcome. Thanks.


[twitter-dev] Re: Problems with search API and html widget

2009-03-09 Thread Kevin D

Perhaps that was the issue with the monitter widget. However, I no
longer care because I discovered that my problem with the standard
twitter html widget was a Safari 4 bug rather than a problem with
twitter's javascript or json results generation. When viewing a page
using the widget in Safari 4, the feed results disappear on page
refresh or when navigating to the page via the back/forward buttons. I
should have checked it using other browsers. :p

On Mar 6, 11:12 am, Matt Sanford m...@twitter.com wrote:
 Hi Kevin,

      The most likely cause if that you have multiple widgets, all with  
 very low refresh rates. Since the rate limiting is per-IP that can add  
 up to be enough to rate limit.

 Thanks;
    — Matt Sanford

 On Mar 6, 2009, at 05:52 AM, Kevin D wrote:





  I have also been getting the You have been rate limited. Enhance your
  calm. response when trying to use the jQuery widget from monitter
  (http://monitter.com/widget/index.html). I tried that widget because
  the standard html widget that twitter provides (blogger.js,
  mytwittername.json) was only returning results for me perhaps 10% of
  the time.

  Any ideas on what I might be doing wrong?


[twitter-dev] Question about authority to view social graphs

2009-03-01 Thread Kevin Makice

There are currently two ways you can use the API to see someone's
follow network (followers and those you follow). The first is the
old way: paginating through the /statuses/friends and statuses/
followers methods. These give a lot more information but do so in
smaller chunks. The new way is using the social graph methods, /
friends/ids and /followers/ids, that return the entire list but only
user IDs.

My question is, why can I use the former on protected accounts but not
the latter?

https://twitter.com/friends/ids/cmakice.xml
https://twitter.com/followers/ids/cmakice.xml

return 'Not authorized' if the account is protected (this one is) and
the authenticating account hasn't been granted access.

https://twitter.com/statues/friends/cmakice.xml
https://twitter.com/statuses/followers/cmakice.xml

I don't have any problems getting this list. Once upon a time, I could
get one list but not the other, but that behavior seems to have been
opened up.

BTW, if no authentication is used on the request, the /followers/ids
and /statuses/followers returns a Could not authenticate you. error.
For public accounts, /friends/ids does not require authentication and
will return the full list of IDs. For both public and private
accounts, /statuses/friends will return useful information.

Could someone explain the reasoning for these discrepancies?


[twitter-dev] Re: API Changes for February 25, 2009

2009-02-25 Thread Kevin

I  see in the  recent changes the addition of these parameters, but I
don't see in the Twitter dev group or on the wiki anything that
explains how they work. I'm sure this is in the email stream
somewhere, but I've missed it.

I understand the purpose/need of these, but are them meant to used in
tandem or as an either/or?

If they are used in the format /user/show/[id1].xml?user_id=[id2],
will the id2 value always take precedence, ignoring id1? Is the
preferred form to use /user/show.xml?user_id=[id1]


Are emails still unique?

2009-01-21 Thread Kevin Makice

The update_profile method allows you to set the email address
associated with the account. I have been able to do this freely, even
when using an email address I know to be fake or already in use.

Is there any verification done on the Twitter end to attempt to
prevent this (if so, it doesn't seem to be working)? Or is this an
indication that I could use my same main email address for multiple
accounts?

I assume this is a bug with the new method, as the Twitter web site
won't let me make that change to an email already in use.

Kevin


Re: update_profile_image only succeeds on very small images

2009-01-20 Thread Kevin Thompson

Matt,
I tried changing my script to generate a gif, and my issues with
twitter dissapeared, but my image was no longer rendering properly so
I switched the output back to png and added the mimetype to the image
data, but now I'm not getting any response.

foreach($_POST as $key = $var){
$POST[$key] = htmlspecialchars($var,ENT_QUOTES);
}

if($POST['twittername'] != ''  $POST['twitterpass'] != ''){

$url = 'http://twitter.com/users/show/' . urlencode($POST
['twittername']) . '.xml';
$curl = curl_init($url);

curl_setopt($curl, CURLOPT_VERBOSE, 1);
curl_setopt($curl, CURLOPT_NOBODY, 0);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION,1);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($curl);
curl_close($curl);

$user = new SimpleXMLElement($response);
$image_array = explode('.',$user-profile_image_url);

$filename = $POST['twittername'] . '-' . time() . '.png';
$badge = imagecreatefrompng($POST['badge']);
switch($image_array[(sizeof($image_array) - 1)]){
case 'jpg':
$avatar = 
imagecreatefromjpeg($user-profile_image_url);
break;
case 'png':
$avatar = 
imagecreatefrompng($user-profile_image_url);
break;
case 'gif':
$avatar = 
imagecreatefromgif($user-profile_image_url);
break;
default:
$avatar = 
imagecreatefrompng($user-profile_image_url);
break;
}

imagealphablending($badge,1);
imagealphablending($avatar,1);
imagecopy($avatar,$badge,0,0,0,0,48,48);
imagepng($avatar,$filename);

//*
$url = 'http://twitter.com/account/update_profile_image.xml';

$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Expect:'));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 4);
curl_setopt($curl, CURLOPT_POSTFIELDS,array('image' = @
$filename;type=image/png));
curl_setopt($curl, CURLOPT_USERPWD, $POST['twittername'] . ':' .
$POST['twitterpass']);
$response = curl_exec($curl);
$info = curl_getinfo($curl);
curl_close($curl);

imagedestroy($badge);
imagedestroy($avatar);
unlink($filename);
// */




On Jan 19, 12:18 pm, Matt Sanford m...@twitter.com wrote:
 Hi Kevin,

      I find that error message misleading. If the image could not be  
 processed for any reason the error says possibly too big. That's  
 normally the case with user uploads but it seems like from the API  
 it's more often something else. Looking back through the Google Group  
 it seems like GIF is predominantly the issue. If you create a similar  
 1x1 PNG does it do the same thing? We support GIF and it should work,  
 but knowing what works and what doesn't will help narrow it down.

 Thanks;
    — Matt Sanford / @mzsanford

 On Jan 19, 2009, at 10:01 AM, DeBetta wrote:



  I just tested the update_profile_image API call and sent a 190K image
  without issue.

  What kind of image are you trying to post? Do you have sample code you
  can share?

  --Peter

  On Jan 19, 11:16 am, Kevin Thompson thompson.kev...@gmail.com wrote:
  I'm attempting to write a simple script to update the user's profile
  image, but I am getting a response that the image is possible too big
  each time. The file that I'm attempting to set as the user avatar is
  no larger than 5k, and it fails.

  I created a 1px by 1px white gif which weighed in at about 43 bytes
  and it worked.

  My suspicion is that for some reason the API is not correctly
  calculating the file size of the image data, or it's checking for a
  much smaller value than 700k.




Re: update_profile_image only succeeds on very small images

2009-01-20 Thread Kevin Thompson

Peter,
I tried manually passing the image/jpg, but that didnt seem to
help. Still returning a 403.

The following command works fine, so there must be something wrong
with the way I'm passing the mime type to curl in PHP:

curl -F 'ima...@jenjen07-1232480534.png;type=image/png' -H
'Expect:' -u {username}:{password} 
http://twitter.com/account/update_profile_image.xml


On Jan 20, 7:57 am, DeBetta debe...@gmail.com wrote:
 I had similar issues when first working with images. I ended up using
 image/jpg for the mimetype regardless of the actual type of file and
 that seemed to clear up the issue.

 --Peter

 On Jan 20, 8:46 am, Kevin Thompson thompson.kev...@gmail.com wrote:

  Matt,
      I tried changing my script to generate a gif, and my issues with
  twitter dissapeared, but my image was no longer rendering properly so
  I switched the output back to png and added the mimetype to the image
  data, but now I'm not getting any response.

          foreach($_POST as $key = $var){
                  $POST[$key] = htmlspecialchars($var,ENT_QUOTES);
          }

          if($POST['twittername'] != ''  $POST['twitterpass'] != ''){

                  $url = 'http://twitter.com/users/show/'. urlencode($POST
  ['twittername']) . '.xml';
                  $curl = curl_init($url);

          curl_setopt($curl, CURLOPT_VERBOSE, 1);
          curl_setopt($curl, CURLOPT_NOBODY, 0);
          curl_setopt($curl, CURLOPT_HEADER, 0);
          curl_setopt($curl, CURLOPT_FOLLOWLOCATION,1);
          curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
          $response = curl_exec($curl);
          curl_close($curl);

                  $user = new SimpleXMLElement($response);
                  $image_array = explode('.',$user-profile_image_url);

                  $filename = $POST['twittername'] . '-' . time() . '.png';
                  $badge = imagecreatefrompng($POST['badge']);
                  switch($image_array[(sizeof($image_array) - 1)]){
                          case 'jpg':
                                  $avatar = 
  imagecreatefromjpeg($user-profile_image_url);
                                  break;
                          case 'png':
                                  $avatar = 
  imagecreatefrompng($user-profile_image_url);
                                  break;
                          case 'gif':
                                  $avatar = 
  imagecreatefromgif($user-profile_image_url);
                                  break;
                          default:
                                  $avatar = 
  imagecreatefrompng($user-profile_image_url);
                                  break;
                  }

                  imagealphablending($badge,1);
                  imagealphablending($avatar,1);
                  imagecopy($avatar,$badge,0,0,0,0,48,48);
                  imagepng($avatar,$filename);

                  //*
                  $url = 
  'http://twitter.com/account/update_profile_image.xml';

                  $curl = curl_init();
                  curl_setopt($curl, CURLOPT_URL, $url);
                  curl_setopt($curl, CURLOPT_POST, 1);
                  curl_setopt($curl, CURLOPT_HTTPHEADER, array('Expect:'));
                  curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
                  curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 4);
                  curl_setopt($curl, CURLOPT_POSTFIELDS,array('image' = @
  $filename;type=image/png));
                  curl_setopt($curl, CURLOPT_USERPWD, $POST['twittername'] . 
  ':' .
  $POST['twitterpass']);
                  $response = curl_exec($curl);
                  $info = curl_getinfo($curl);
                  curl_close($curl);

                  imagedestroy($badge);
                  imagedestroy($avatar);
                  unlink($filename);
                  // */

  On Jan 19, 12:18 pm, Matt Sanford m...@twitter.com wrote:

   Hi Kevin,

        I find that error message misleading. If the image could not be  
   processed for any reason the error says possibly too big. That's  
   normally the case with user uploads but it seems like from the API  
   it's more often something else. Looking back through the Google Group  
   it seems like GIF is predominantly the issue. If you create a similar  
   1x1 PNG does it do the same thing? We support GIF and it should work,  
   but knowing what works and what doesn't will help narrow it down.

   Thanks;
      — Matt Sanford / @mzsanford

   On Jan 19, 2009, at 10:01 AM, DeBetta wrote:

I just tested the update_profile_image API call and sent a 190K image
without issue.

What kind of image are you trying to post? Do you have sample code you
can share?

--Peter

On Jan 19, 11:16 am, Kevin Thompson thompson.kev...@gmail.com wrote:
I'm attempting to write a simple script to update the user's profile
image, but I am getting a response that the image is possible too big
each time. The file that I'm attempting to set as the user

Re: Changing profile image via PHP/Curl

2009-01-19 Thread Kevin Thompson

I'm having the same problem as James with the pastebin script. There
was a problem with your picture. Probably too big.

Additionally, I came across this thread having a similar error with
the api returning a 500 server error when attempting to update a user
profile image. My code is using PHP GD to essentially merge a
watermark with the users existing avatar, then send the raw image data
as an update.

$url = 'http://twitter.com/users/show/' . urlencode($POST
['twittername']) . '.xml';
$curl = curl_init($url);

curl_setopt($curl, CURLOPT_VERBOSE, 1);
curl_setopt($curl, CURLOPT_NOBODY, 0);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION,1);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);

$response = curl_exec($curl);
curl_close($curl);
$user = new SimpleXMLElement($response);

$badge = imagecreatefrompng($POST['badge']);

$image_array = explode('.',$user-profile_image_url);

switch($image_array[4]){
case 'jpg':
$avatar = 
imagecreatefromjpeg($user-profile_image_url);
break;
case 'png':
$avatar = 
imagecreatefrompng($user-profile_image_url);
break;
case 'gif':
$avatar = 
imagecreatefromgif($user-profile_image_url);
break;
default:
$avatar = 
imagecreatefrompng($user-profile_image_url);
break;
}

imagecopymerge($avatar,$badge,0,0,0,0,48,48,100);

ob_start();
imagepng($avatar);
$image = ob_get_contents();
ob_end_clean();

//*
$url = 'http://twitter.com/account/update_profile_image.xml';

$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Expect:'));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($curl, CURLOPT_POSTFIELDS,array('image' = urlencode
($image)));
curl_setopt($curl, CURLOPT_USERPWD, $POST['twittername'] . ':' .
$POST['twitterpass']);
$response = curl_exec($curl);
curl_close($curl);

echo $response;

imagedestroy($badge);
imagedestroy($avatar);


On Jan 6, 1:05 pm, James N. Weber jame...@gmail.com wrote:
 Chad- Thanks for all your help with this! I downloaded it from
 pastebin, and then uploaded it to my server, no changes. It is giving
 me the There was a problem with your picture. Probably too big.
 error still, with several photos. Any ideas what's going on?

 On Jan 6, 1:31 pm, Chad Etzel jazzyc...@gmail.com wrote:

  So after some fiddling with your code, I got it to work:

  I think part of the problem was that you can't use URLs to the image
  (like you were doing).

  Anyway, the following code (see pastebin link) gives examples of how
  to do it with File Uploading through a form, or just using canned
  local images from your server.

 http://pastebin.com/f6eb4650c

  Hope this helps,
  -Chad

  On Tue, Jan 6, 2009 at 3:15 PM, Stuart stut...@gmail.com wrote:

   2009/1/6 James N. Weber jame...@gmail.com:

   Thanks for the help, Chad. I think I need the PHP equivalent of -F in
   curl- I'm not sure how to set that.

   I tried changing it to CURLOPT_POSTFIELDS, and Twitter gave me a
   Something is technically wrong. page- the robot lobster with a
   broken claw.
   Any ideas?

   The code I took the below line from is not uploading an image to
   Twitter, but rather between two internal servers on one of the sites I
   maintain and it works fine for me...

   curl_setopt($ch, CURLOPT_URL, $url);
   curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect: '));
   curl_setopt($ch, CURLOPT_POST, 1);
   curl_setopt($ch, CURLOPT_POSTFIELDS, array('img' = '@'.$filename));
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
   $result = curl_exec($ch);

   Hope it helps you.

   -Stuart

   --
  http://stut.net/




update_profile_image only succeeds on very small images

2009-01-19 Thread Kevin Thompson

I'm attempting to write a simple script to update the user's profile
image, but I am getting a response that the image is possible too big
each time. The file that I'm attempting to set as the user avatar is
no larger than 5k, and it fails.

I created a 1px by 1px white gif which weighed in at about 43 bytes
and it worked.

My suspicion is that for some reason the API is not correctly
calculating the file size of the image data, or it's checking for a
much smaller value than 700k.


invalid profile_image_url returned in JSON timeline

2008-11-14 Thread Kevin Watters

In my friends_timeline.json for tweet 1005190499 I'm getting a
profile_image_url value of

http://s3.amazonaws.com/twitter_production/profile_images/64498715/rollins_narrowweb__300x460_0_normal.jpg

-- which is a 404.

The correct, working profile image URL that shows up on twitter.com is

http://s3.amazonaws.com/twitter_production/profile_images/64499571/rollins_narrowweb__300x460_0_normal.jpg

Just so you guys are aware :)