Re: [twitter-dev] Long representation of Snowflake ids

2010-11-05 Thread Furkan Kuru
Oh well, but nevertheless I will need a conversion on the php side because I
store it in long format in a java search server (Solr) and it returns in
scientific notation as well. Maybe I find a way to return a id_str sytle
return type of Solr.

Thank you,

On Fri, Nov 5, 2010 at 2:50 AM, Matt Harris mhar...@twitter.com wrote:

 We do this for you by including a string representation of integer IDs in
 the responses. For example id and id_str.

 Best,
 @themattharris

 On Nov 4, 2010, at 16:58, Furkan Kuru furkank...@gmail.com wrote:


 I try to adapt my php code to convert snowflake ids to Long strings.

 I use

 $id = sprintf('%.0f', $tweet-{'id'});

 the $id seems to be not correct because i can not reach the tweet with that
 $id.

 Is there any simple way to convert snowflake id to Long string correctly?

 On Thu, Nov 4, 2010 at 10:51 PM, John Kalucki  j...@twitter.com
 j...@twitter.com wrote:


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




 --
 Furkan Kuru

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

  --
 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




-- 
Furkan Kuru

-- 
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


Re: [twitter-dev] Long representation of Snowflake ids

2010-11-04 Thread Matt Harris
We do this for you by including a string representation of integer IDs in the 
responses. For example id and id_str.

Best,
@themattharris

On Nov 4, 2010, at 16:58, Furkan Kuru furkank...@gmail.com wrote:

 
 I try to adapt my php code to convert snowflake ids to Long strings. 
 
 I use 
 
 $id = sprintf('%.0f', $tweet-{'id'});
 
 the $id seems to be not correct because i can not reach the tweet with that 
 $id.
 
 Is there any simple way to convert snowflake id to Long string correctly?
 
 On Thu, Nov 4, 2010 at 10:51 PM, John Kalucki j...@twitter.com wrote:
 
 -- 
 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
 
 
 
 -- 
 Furkan Kuru
 -- 
 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 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