[twitter-dev] Can we do advanced "OR search" on search API?

2011-06-29 Thread yama
Hi everyone,

I'm working on "AND & OR search" on search API.
I know I can do the query "A OR B" , but I'd like to use more search
parameter, like,
(A & B) OR (C & D).
Is it possible to do that kind of parenthetic query?

In my investigation, A & B OR C would be A + (B OR C) ,
like, 
http://search.twitter.com/search?q=movie+%22black+swan%22++OR+%22Pirates+of+the+Caribbean%22
But, I'd like to use more advanced one.

Thanks,
yama

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] Re: How long can we access a past profile picture?

2011-06-27 Thread yama
Thanks Matt,

Oh that's right!
It consumes API rate limit using the second method.
So, if I consider a rate limited API, I should user the first method,
which is just a link to image.
But then, when user change it, the possibility of unaccessible to the
image may occur.
Is it right?

I have to show a lot of comments with the images on my website.
So, probably i will user the first one to show the profile image.

Thanks,
yama



-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] How long can we access a past profile picture?

2011-06-22 Thread yama
Hi guys,
I'm planning to store a Profile Picture URL to DB from json by search
API.
When a user change picture, it seems we can still access it for a
while.
But is it permanent or just short term?

I found there are 2 ways to get profile pics.
"http://a3.twimg.com/profile_images/1407755095/cat_normal.jpg";
and
"http://api.twitter.com/1/users/profile_image/watermusica.xml";.
Shouldn't I user the former way?

Thank you,
yama

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] Re: The max length of Profile Image URL and alternative way to get it.

2011-05-12 Thread yama
OK. I got the point.
Api to get profile_image by "http://api.twitter.com/1/users/
profile_image/USERID.xml" looks perfect.
I will use this statement for DB.
Then, 70 chars would be fine I think.
Like, 50 chars for URL part except USERID + 20 chars for USERID =
varchar 70.

Thanks a lot,
yama


On 5月13日, 午前12:16, Taylor Singletary 
wrote:
> With something volatile like a URL you shouldn't make any assumptions about
> its length,  -- and in this case, nor should you try to derive any meaning
> out of the various components of the URL path. There is technically no
> maximum length to a URL, so for storage purposes I would reserve yourself
> plenty of characters.
>
> Speculation: the numeric portion of the path appears to be epoch time in
> seconds, equivalent of: "Sun May 02 16:17:07 -0700 2010 "
>
> We do offer an API method to determine the avatar for a user by user_id,
> however you cannot use them to directly render the image -- only to resolve
> a user_id to a avatar URL string. 
> Seehttp://dev.twitter.com/doc/get/users/profile_image/:screen_name
>
> @episod <http://twitter.com/episod> - Taylor Singletary
>
>
>
>
>
>
>
> On Thu, May 12, 2011 at 3:48 AM, yama  wrote:
> > Hi guys,
>
> > I'm going to store profile image URL to DB.
> > This is my image.
> > "http://a0.twimg.com/profile_images/1272842227/android-
> > wallpaper4_2560x1600.png"
> > But, what is the max length of it?
> > and what does the number,  1272842227 mean?
>
> > Also if possible, I'd like to get profile image by userID,
> > like, on facebook i can get image by "http://graph.facebook.com/USERID/
> > picture".
> > Is it possible on Twitter also?
>
> > Thank you,
> > Yama
>
> > --
> > Twitter developer documentation and resources:https://dev.twitter.com/doc
> > API updates via Twitter:https://twitter.com/twitterapi
> > Issues/Enhancements Tracker:
> >https://code.google.com/p/twitter-api/issues/list
> > Change your membership to this group:
> >https://groups.google.com/forum/#!forum/twitter-development-talk

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] Re: Maximum length of User ID

2011-05-12 Thread yama
Arnaud ,

That was really helpful.
I will have 20 char for screen_name and UserID too.

Thanks,
Yama


On 5月12日, 午前1:01, Arnaud Meunier  wrote:
> Hey Yama,
>
> - screen_name: I would go for 20 Chars, as it has been the limit for some
> time, before we switched to 15 Chars. Some accounts might still have a
> screen_name > 15 Chars.
> - User ID: I would take the safest option and treat them as Status ID (20
> Chars or 64 bits INT). So if we decided in the future to generate User IDs
> with SnowFlake, you'd be prepared.
>
> Hope that helps!
> Arnaud / @rno <http://twitter.com/rno>
>
>
>
>
>
>
>
> On Tue, May 10, 2011 at 11:19 PM, 山田  wrote:
> > Hi guys,
> > I'm trying to store UserID, UserName, StatusID, TextComment, etc to
> > DB.
> > I found the max length that UserName was 15 chars, and StatusID was 20
> > figures, and TextComment was 140 char of course.
> > But not sure about UserID.
> > Does anyone have idea?
>
> > Thank you.
> > Yama
>
> > --
> > Twitter developer documentation and resources:https://dev.twitter.com/doc
> > API updates via Twitter:https://twitter.com/twitterapi
> > Issues/Enhancements Tracker:
> >https://code.google.com/p/twitter-api/issues/list
> > Change your membership to this group:
> >https://groups.google.com/forum/#!forum/twitter-development-talk

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] The max length of Profile Image URL and alternative way to get it.

2011-05-12 Thread yama
Hi guys,

I'm going to store profile image URL to DB.
This is my image.
"http://a0.twimg.com/profile_images/1272842227/android-
wallpaper4_2560x1600.png"
But, what is the max length of it?
and what does the number,  1272842227 mean?

Also if possible, I'd like to get profile image by userID,
like, on facebook i can get image by "http://graph.facebook.com/USERID/
picture".
Is it possible on Twitter also?

Thank you,
Yama

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk