Re: [twitter-dev] Mentions count

2011-08-10 Thread Glenn Ferguson
I had asked a related question prior but never received a response:
Is there an API that returns ONLY mentions that are in reply to a specific 
tweet?

Thanks. 
Glenn

On Aug 10, 2011, at 9:46 AM, nidhi sarvaiya.ni...@gmail.com wrote:

 Hi,
 
 How can I find total mentions for the account.
 Right now API returns only 20 mentions.
 
 Please can anyone help me with this?
 
 Regards,
 Nidhi Sarvaiya
 
 -- 
 Have you visited the Developer Discussions feature on 
 https://dev.twitter.com/discussions yet?
 
 Twitter developer links:
 Documentation and resources: https://dev.twitter.com/docs
 API updates via Twitter: https://twitter.com/twitterapi
 
 Unsubscribe or change your group membership settings: 
 http://groups.google.com/group/twitter-development-talk/subscribe

-- 
Have you visited the Developer Discussions feature on 
https://dev.twitter.com/discussions yet?

Twitter developer links:
Documentation and resources: https://dev.twitter.com/docs
API updates via Twitter: https://twitter.com/twitterapi

Unsubscribe or change your group membership settings: 
http://groups.google.com/group/twitter-development-talk/subscribe


[twitter-dev] Re: Annotations Hackfest wiki page

2010-06-04 Thread glenn gillen
On Jun 3, 1:39 pm, mcintyre321 mcintyre...@gmail.com wrote:
 I would like to second aartiles call for better support. My team had a
 screen cast and were ready to do a remote presentation but we couldn't
 seem to get the message through (although we tweeted like crazy). Very
 very disappointing.

I suspect opening the doors for anyone to be involved (as opposed to
letting them just watch the stream) introduces a logistical nightmare
for people that are probably busy sorting technical difficulties at
the main event. I realise it's a slightly different scenario, but I
when Merbcamp broadcast live a few years ago there was a semi-official
outpost in London for those that wanted to take part. Perhaps having
officially sanctioned outposts in major cities would make things more
manageable, with a single local rep engaged to help curate questions,
presentations, and anything else that arises.

Just a thought,
--
Glenn Gillen
http://glenngillen.com/


[twitter-dev] Field constraints

2010-05-15 Thread Glenn
Is there a reference that explains the field types and constraints of
the data coming from the Twitter API?

Some things are a bit uncertain. For example, are user IDs 32bit or 64
bit integers?

Thanks in advance.


[twitter-dev] Re: parsing out entities from tweets (a.k.a. parsing out hashtags is hard!)

2010-05-13 Thread glenn gillen
Raffi,

This follows on nicely from the presentation at Warblecamp last week
discussing how difficult it is to do this right, and I think a
consistent approach across all clients (including twitter.com,
mobile.twitter, and 3rd party apps) should be priority number 1.
However looking at your example:

On May 13, 10:25 pm, Raffi Krikorian ra...@twitter.com wrote:
 {
  text : hey @raffi tell @noradio to check out http://dev.twitter.com#hot;,
 snip
     {
       url : http://dev.twitter.com;,
       indices : [38, 64]
     },
   ],
   hashtags : [
     {
       text : #hot,
       indices : [66, 69]
       url : http://search.twitter.com/search?q=%23hot;
     }
   ]
  }

Without looking at how twitter.com would currently handle that
example, I would have expected the url to be http://dev.twitter.com/
#hot and for the tweet to contain no hashtag. If the hashtag always
takes precedence I'd have no way to link to the following without
using a URL shortener: http://oauth.net/core/1.0a/#anchor41
--
Glenn Gillen
http://glenngillen.com/


[twitter-dev] Re: parsing out entities from tweets (a.k.a. parsing out hashtags is hard!)

2010-05-13 Thread glenn gillen
On May 13, 11:11 pm, Raffi Krikorian ra...@twitter.com wrote:
 hey glenn.

 i think something went wrong in the copy and paste -- there should have been
 a space between the URL and the hashtag.

My bad. Back in my box then.

Cheers,
--
Glenn Gillen
http://glenngillen.com/


[twitter-dev] Re: oauth and embedded microcontrollers

2010-05-12 Thread glenn gillen
 oAuth is a big burden for microcontroller based devices like this -
 OAuthcalypse will probably simply kill this app.  It seems like way
 too much overhead to push oAuth code into this little chip.  oAuth
 alone would probably exceed all the rest of the application code on
 the device combined.

I couldn't find anything on the blog or the related sites given
examples of the code being used to run this GarageBot other than it
was running on uClinux. What code/libraries (if any) are you presently
using to connect to the API?

The curl guys are working on building oauth support direct into curl,
so that should provide a fallback for these kind of apps. You could
probably use curl now provided you had a way of generating the
oauth_nonce parameter (http://oauth.net/core/1.0a/#auth_header).

If you could divulge a little more about your setup, and what kind of
constraints you have to work within, we might be lucky enough to have
someone in this group that can think of a solution.
--
Glenn Gillen
http://glenngillen.com/


[twitter-dev] Re: Need clearer explanation of using a single oauth token

2010-05-12 Thread Glenn
This was exactly what I needed to be pointed to. Thank you so much.

On May 10, 5:41 pm, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 And you can get the Access Token (oauth_token and oauth_token_secret)
 corresponding to your own user account for your own application by
 navigating to one of your application detail pages 
 athttp://dev.twitter.com/appsand selecting the My Access Token link on the
 right-hand rail.

 If you still have questions, I'll be happy to assist.

 Taylor Singletary
 Developer Advocate, Twitterhttp://twitter.com/episod



 On Mon, May 10, 2010 at 2:22 PM, Abraham Williams 4bra...@gmail.com wrote:
  You need not only the oauth token and oauth secret for the user but the
  consumer key and secret.

  The consumer key and secret go on in consumer =
  oauth.Consumer(key=CONSUMER_KEY, secret=CONSUMER_SECRET)

  The users oauth token and secret replace 'abcdefg', 'hijklmnop'

  Abraham

  On Mon, May 10, 2010 at 13:24, Glenn yonemi...@gmail.com wrote:

  I'm looking at this snippet for Python:

 http://dev.twitter.com/pages/oauth_single_token#python

  and there are the key and secret parameters for oauth.Token. But the
  page does not go into what those two are suppose to be. I tried using
  oauth token and secret, as well as the username and password for the
  twitter account to authorize under. Neither worked, because I got a
  Could not authenticate you. message once I tried my first API
  lookup.

  Any advice?

  --
  Abraham Williams | Developer for hire |http://abrah.am
  @abraham |http://projects.abrah.am|http://blog.abrah.am
  This email is: [ ] shareable [x] ask first [ ] private.


[twitter-dev] Re: Slow response to twitter updates for a third party app

2010-05-11 Thread glenn gillen
On May 11, 4:45 am, John Kalucki j...@twitter.com wrote:
 Now that we have a reasonable idea about what is transpiring, I'd
 venture to say that the latency distribution will be widest between
 about 6:30am to 10:30am PDT (13:30-17:30 UTC), and considerably less
 so until perhaps 5pm PDT. The balance of the day should be OK.

At Warblecamp on the weekend someone (@mario) mentioned it would be
nice have a means of identifying (or at least being aware of) these
sorts of issues. And given the size of twitter these days and the
considerable usage of the API, there are so many variables that can
impact on performance differently for every user that it can be
difficult to know if a problem is isolated to your code or is
affecting a wide population. So floating an idea to promote some
further discussion and see if there is any interest, obvious issues
with the approach, input, etc.

Would it be worthwhile having an independent service that allowed
developers to programmatically log their current API performance and
issues? For those that use Rails I'm thinking something along the
lines of rpm.newrelic but specifically twitter focussed. It could post
any 5xx error responses as they occur and regularly ping details about
the process usage (CPU utilization, RAM, etc.). In isolation they're
not very useful stats, in aggregation they'd help identify specific
areas suffering problems like 80% of our users in The Netherlands are
currently experiencing severe latency issues or system wide issues
like a particular call failing,

So would it be of any use? I'm not a consumer of the API anywhere near
the scale of Twitterfeed and so I don't currently see the same
requirement for such a service, I'm more inclined to believe if I have
a problem it's almost always mine to deal with. The great thing about
services like rpm.newrelic and hoptoad is that they give you
actionable information, and while I think this would be an interesting
technical challenge I wonder if it's actually providing users anything
actionable.

Thoughts?
--
Glenn Gillen
http://glenngillen.com/


[twitter-dev] Re: website and OAuth

2010-05-11 Thread glenn gillen
Dan,

I've taken a stab at answering your questions below:

 now from my understanding i need to change this over to start using
 OAuth is this correct? the system does it all back end so my bloggers
 dont write anything it auto does it for you, it posts to the one
 single twitter account.

Yes you will need to switch over.

 now do i need to change to OAuth to get this to run when the date
 finally comes around, if so do i need to create an application? as it
 isnt really an application as such, this is the bit that confuses me a
 bit.

You can switch over immediately, there's no need to wait until the
cutoff date comes around. And yes you will need to create an
application, it's just that this particular application will only.

Details on some OAuth libraries (including PHP ones):
http://apiwiki.twitter.com/OAuth-Examples
Details on how to easily get a single token: 
http://dev.twitter.com/pages/oauth_single_token

 so i guess the question is do i need to change to oAuth and should i
 create an application if so would i need to create a callback URL as
 there wont be any callbacks as such would there as i would only be
 posting to my twitter feed.

The single token approach can avoid the need for callbacks, so long as
you don't need to tweet to other users accounts.
--
Glenn Gillen
http://glenngillen.com/


[twitter-dev] Re: Intermittent 401 Errors

2010-05-11 Thread glenn gillen
On May 11, 3:21 pm, Dewald Pretorius dpr...@gmail.com wrote:
 As well (I know it has been discussed elsewhere), I am consistently
 seeing API response times in excess of 3 seconds per call. It is
 actually rare to see one that takes less than 2 seconds. This is on
 connections from Dallas. But, even using twitter.com in the web
 browser from Canada is also painfully slow.

Dewald,

I can't provide any constructive feedback to your problem, but I was
wondering if you had any input on this message I posted earlier today:
http://groups.google.com/group/twitter-development-talk/msg/27ea7a1636ae3ba2

Also, having had to play the tech support role for a while in a
previous life, is running tcpdump on a live server for 30-60 seconds
really going to mess with your app in any noticeable way? The majority
of the time when people ask for that kind of information it's not to
satisfy their sadomasochistic desires to trawl through network dumps,
it's to make their life easier while trying to identify/recreate and
fix your problem.

--
Glenn Gillen
http://glenngillen.com/


[twitter-dev] Need clearer explanation of using a single oauth token

2010-05-10 Thread Glenn
I'm looking at this snippet for Python:

http://dev.twitter.com/pages/oauth_single_token#python

and there are the key and secret parameters for oauth.Token. But the
page does not go into what those two are suppose to be. I tried using
oauth token and secret, as well as the username and password for the
twitter account to authorize under. Neither worked, because I got a
Could not authenticate you. message once I tried my first API
lookup.

Any advice?


[twitter-dev] Re: to display tweets in my website using ASP.NET

2010-05-01 Thread glenn gillen
On May 1, 10:14 am, krunal shah krunalshah2...@gmail.com wrote:
 i want to make search engine of twitter using ASP.NET

 snip

Krunal,

It sounds like you want to build http://search.twitter.com/advanced ?
So two questions from me:

- What's the purpose? Just an educational exercise? As a product it
seems to be already available and in widespread use.
- Did you have a question to ask?
--
Glenn Gillen
http://glenngillen.com/


[twitter-dev] Re: Fix for handling invalid credentials deployed

2010-04-30 Thread glenn gillen
Great change Mark (and team).

Thanks,
--
Glenn Gillen
http://glenngillen.com/


[twitter-dev] Re: Accurately accessing favorites

2010-04-29 Thread glenn gillen
 tweet was favorites. So I can't just grab pages of favorites until I
 reach the date of the most recent favorite from the week before...

 Is there another way?

I was thinking of something like the following to get around it:

* retrieve user's latest `favourites_count` from users/lookup
* while favourites_count != the count you have stored || reached end
of favorites
** iterate over the favorited posts and store

But you've still got the issue of dealing with people unfavoriting
posts which will screw the whole thing up. Sounds like the only way to
make work is to iterate over the whole set and store what you're
missing, or beg and plead for the API team to store a favorited_at
datetime that you can order by.
--
Glenn
http://glenngillen.com/


[twitter-dev] Re: Properties and Methods of T object of @anywhere

2010-04-28 Thread glenn gillen
On Apr 28, 12:06 am, MJ lor...@gmail.com wrote:
 Also I am using @anywhere to login but I also have some server side
 code with java.  Is there a way that I can pass the credentials of the
 @anywhere logged in user to the server side code?  Or does that happen
 automatically (once someone authorizes the Twitter application via
 @anywhere a server side library with the same apikey and secretkey is
 authorized).

I doubt you'll have access to the credentials, as that would mean
you'd
have login credentials for any twitter user that hit your page which
wouldn't
be what end users would expect.
--
Glenn
http://glenngillen.com/


[twitter-dev] Re: @anywhere Current user properties are undefined

2010-04-28 Thread glenn gillen


On Apr 28, 2:27 am, MJ lor...@gmail.com wrote:
 I'm working with the @anywhere api and trying to do a authcomplete

   span id=twitter-login-box/span
 script type=text/javascript

   twttr.anywhere(function (T) {

         if(T.isConnected()){
                 twttr.anywhere.signOut();
         }

     T(#twitter-login-box).connectButton({ size: large,
         authComplete: function(user) {
         // triggered when auth completed successfully

                 window.location.href = /twitter/twitterlogin.jsp?
 twitterid=+T.currentUser.id;

       } });
   });

 /script

 It keeps saying id is undefined and I tried other properties as well.

It looks like from the code above, you actually want to be using user
(there parameter passed into the callback), so:

authComplete: function(user) {
  // triggered when auth completed successfully
  window.location.href = /twitter/twitterlogin.jsp?
twitterid=+user.id;
}

Is that any better?
--
Glenn
http://glenngillen.com/


[twitter-dev] Re: What tools do you use?

2010-04-27 Thread glenn gillen
I use ruby, the twitter-text library, yajl for json processing, and
mongodb for storage.
--
Glenn
http://glenngillen.com/


-- 
Subscription settings: 
http://groups.google.com/group/twitter-development-talk/subscribe?hl=en


[twitter-dev] Re: Schedule for API call rate increases with oAuth?

2010-04-27 Thread glenn gillen
 Anytime you enter your credentials, regardless of where, you open
 yourself to being snooped.  I believe that is far less likely when
 communicating with YOUR app on YOUR computer, than it is via a browser
 over the open Internet to a 3rd party that may or may not be who you
 think it is...

Supporting this option though Twitter is dependent on the security
procedures of every 3rd party to maintain the integrity of an account.
With OAuth at least should an individual 3rd party have their security
breached then access to just that 3rd party can be terminated.

Also with basic auth developers are required to store passwords in
plain-text (or at least in some retrievable form) and as someone else
has already pointed out with the propensity for users to use the same
password on many services this exposes them to undue risk from a
breach of a 3rd party or via a malicious developer.

I'd sleep much easier at night if I didn't know anybody else's
password, I'm sure the Twitter team would prefer if only a user knew
their own password too.
--
Glenn
http://glenngillen.com/


-- 
Subscription settings: 
http://groups.google.com/group/twitter-development-talk/subscribe?hl=en


[twitter-dev] Re: detecting hashtag spam

2010-04-27 Thread glenn gillen
On Apr 26, 11:34 pm, kprobe goo...@kprobe.com wrote:
 To help the algorithms detect this type of hashtag spam, what he is
 doing is varying the content slightly, with different numbers of
 hashtags, and different goo.gl shortened links that loop back to
 twitter status messages and provide no content whatsoever. Appears to
 be an attempt to get lots of different links to his website via

I wonder if this problem could be solved simply by integrating the
results from search with a filter from a service such as twase to
exclude tweets from users that don't meet a likely non-spammy user
threshold that you define?

I'll see if I can whip up a prototype over the weekend (unless someone
beats me to it).
--
Glenn
http://glenngillen.com/


-- 
Subscription settings: 
http://groups.google.com/group/twitter-development-talk/subscribe?hl=en


[twitter-dev] Re: Testing Twitter API webapps

2010-04-27 Thread glenn gillen
On Apr 24, 6:31 am, Patrick Kennedy kenned...@gmail.com wrote:
 My explaination is more language agnostic, and works for an oauth web
 flow.  But I like your RoR idea, and it sounds like there is support
 for localhost development to some extent.  I suppose /authenticated

I wouldn't say it's a RoR specific idea, personally I consider it just
good development practice. Regardless of the language I develop in, I
always have a locally running version of the code that I can access in
a method comparable to how I'd access it on a production server (e.g.,
over HTTP). In the instances where I don't do that (like I don't want
to taint my OSX install with PHP dependencies or I'm using ASP.Net)
then I'll setup a virtual machine on my laptop that is nearly
identical to my production server.

It's usually quite easy to do and can save a lot of hassle in the long
run.
--
Glenn
http://glenngillen.com/


-- 
Subscription settings: 
http://groups.google.com/group/twitter-development-talk/subscribe?hl=en


[twitter-dev] Re: Update on the Retweet API (we collapse retweets, not you we're adding statuses/retweets)

2009-09-23 Thread glenn gillen

Maybe this isn't the right place, but...

From a developer perspective I love the retweet API and it's potential
uses.

As a regular twitter user, I'm less thrilled. Once this is in place,
is it going to fundamentally what/how I see my public timeline? If the
mockups are anything to go by, it looks less useful. If someone I'm
following retweets something from SarahKSilverman, I don't want to see
SarahKSilverman appear in my timeline. I want to see the person I
know, that way I can easily attribute it with the appropriate amount
of importance and credibility. This issue becomes even more pronounced
when lesser known individuals are the source of the original tweet,
and when the topic being retweeted becomes more niche.

Or have I completely misunderstood the final implementation/
implications?

Thanks,

Glenn


Profile image update returns 500 Internal Server Error

2008-12-16 Thread Toby Glenn

I get the 500 Internal Server Error when I try to update a profile
image. I am trying to do it using c# and I am not sure what is going
on. Here is a network sniff of my request:
No. TimeSourceDestination
Protocol Info
657 2.77551410.50.50.230  128.121.146.100
HTTP POST /account/update_profile_image.xml HTTP/1.1  (JPEG JFIF
image)

Frame 657 (85 bytes on wire, 85 bytes captured)
Ethernet II, Src: 00:21:70:6b:00:61 (00:21:70:6b:00:61), Dst:
Watchgua_30:99:52 (00:90:7f:30:99:52)
Destination: Watchgua_30:99:52 (00:90:7f:30:99:52)
Source: 00:21:70:6b:00:61 (00:21:70:6b:00:61)
Type: IP (0x0800)
Internet Protocol, Src: 10.50.50.230 (10.50.50.230), Dst:
128.121.146.100 (128.121.146.100)
Transmission Control Protocol, Src Port: hfcs (4900), Dst Port: http
(80), Seq: 28021, Ack: 26, Len: 31
[Reassembled TCP Segments (28051 bytes): #586(210), #621(129), #622
(1260), #623(1260), #627(1260), #628(1260), #629(1260), #630(1260),
#632(1260), #633(1260), #634(1260), #635(1260), #636(1260), #638
(1260), #639(1260), #640(1260), #641(1260]
Hypertext Transfer Protocol
MIME Multipart Media Encapsulation, Type: multipart/form-data,
Boundary: --8cb2dd5e785fac4
[Type: multipart/form-data]
First boundary: 8cb2dd5e785fac4\r\n
Encapsulated multipart part:  (image/jpeg)
Boundary: \r\n8cb2dd5e785fac4\r\n
Encapsulated multipart part: