Javascript API questions

23 views
Skip to first unread message

jostheim

unread,
Jun 8, 2010, 1:08:16 AM6/8/10
to Twitter Anywhere Development
Hi-

The @anywhere javascript is thinly documented (I am being nice saying
that :) ). I have some questions.

1.) When doing a Status.search() can I say how many search results I
want (up to the limit)? Can I supply a since_id parameter?

2.) When I get a result back the only thing I can seem to do is go
through the statuses using the each() functionality. This doesn't
work for me, I need to know when I am done going through the list so I
can update some other things, how do I either get the whole list of
statuses, or do a closure to call something when I am done going
through the entire list?

3.) For User.timeline(), can I provide a since_id, if so how?

4.) In firebug a see a whole list of functions on my "result" objects
from doing a Status.search()... What do each of those do and how do I
use them? For thoroughness here they are:

each (I know what this one does)
filter (you have an example for this one)
first (you have an example for this one)
concat
every
find
get
join
last
length
map
none
pop
push
some

I need to be able to do the same things I can do with the old api in
order to use this... should I just go back to the old api with
callbacks?

James

Todd Kloots

unread,
Jun 8, 2010, 1:38:11 PM6/8/10
to twitter-de...@googlegroups.com
Hi James -

We know the API is indeed thinly documented, the primary reason for
that is that we consider the API to be part of our internals for
@Anywhere and not something that we are supporting in an official
capacity at the moment:

http://groups.google.com/group/twitter-dev-anywhere/msg/ee8bc9e68b8d8efc

- Todd

> --
> You received this message because you are subscribed to the Google Groups "Twitter Anywhere Development" group.
> To post to this group, send email to twitter-de...@googlegroups.com.
> To unsubscribe from this group, send email to twitter-dev-anyw...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/twitter-dev-anywhere?hl=en.
>
>

jostheim

unread,
Jun 8, 2010, 2:51:56 PM6/8/10
to Twitter Anywhere Development
Sorry for jumping the gun, I'll go back to the old api... what is the
timeline for this api to actually be ready?

James
Reply all
Reply to author
Forward
0 new messages