Tools

Ile said

10 comments

Bottom

Ile  

Might be possible to get it working:

System.setProperty("twitter4j.restBaseURL","http://twitter.api.compatible.host:po...;)
# This need to be done before you instantiate a Factory class

Ile commented on posted to #Qaiku-api 22.07.2010 (en)

Ile  

..won't work. Id's should be integers, not strings like in Qaiku's API.

Ile commented on posted to #Qaiku-api 22.07.2010 (en)

personaleu  

@Ile Thanks for trying.

personaleu commented on posted to #Qaiku-api 22.07.2010 (en)

eholmila  

@bergie, we didn't have any solution for this, right?

eholmila commented on posted to #Qaiku-api 22.07.2010 (en)

bergie  

@eholmila not outside of switching the API from using safe Midgard GUIDs to unsafe integers

bergie commented on posted to #Qaiku-api Helsinki 22.07.2010 (en)

Ile  

If Qaiku API would use integers as id's:

  • It would be more twitter compatible
  • It would be possible to get numbers of different clients to work with Qaiku -- For example Tweetdeck
I understand that current implementation is beautiful. I believe it helps to support for example Organisaatio Qaiku (you have several instances of system).
Still, could you think them as a separate services and have unique integer ID's for each "domain"? Would it be possible to have mapper between those ID's and still get enough performance out?

Ile commented on posted to #Qaiku-api 22.07.2010 (en)

bergie  

@Ile we do have integers for each message, so this would be an one-liner fix in API. The question is, do we want to do it. I'll leave the decision to @tepheikk and @eholmila :-)

bergie commented on posted to #Qaiku-api Helsinki 22.07.2010 (en)

rambo  

The GUIDs can be represented as (very large) integers in addition/instead of the current hex-encoding.

Of course the clients will probably choke and crash if you give them numbers in the 2^144 -range (hell, many did when twitter itself overran the 32bit unsigned int and that's many many magnitudes smaller....)

Edit: I'm also fairly sure PHP cannot handle so large numbers either so in practice this is a moot point...

rambo commented on posted to #Qaiku-api 22.07.2010 (en)

Ile  

Would it be possible to support both ways? We would have to different api-urls, another would expose integers, other one GUIDs.

Ile commented on posted to #Qaiku-api 22.07.2010 (en)

rambo  

@lle I was thinking of that too. then the integer-based URLs just need to be advertised as replication-unsafe.

rambo commented on posted to #Qaiku-api 22.07.2010 (en)

Login or register to leave a comment

Publicity
These messages are public and can be seen by anyone.