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 <[email protected]> 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 <[email protected]> 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 < <[email protected]>
> [email protected]> wrote:
>
>>
>>  --
>> Twitter developer documentation and resources:
>> <http://dev.twitter.com/doc>http://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/doc>http://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

Reply via email to