maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   witter - a python twitter client (https://talk.maemo.org/showthread.php?t=35596)

corsac 2010-05-26 18:27

Re: witter - a python twitter client
 
http://status.net/api/ gives a 404 error in my browser, and doesn't do anything in witter

corsac 2010-05-26 18:31

Re: witter - a python twitter client
 
(in my case it's a subdomain of pantoufle.net but still, no /api/ )

dwould 2010-05-26 18:45

Re: witter - a python twitter client
 
Quote:

Originally Posted by corsac (Post 680299)
(in my case it's a subdomain of pantoufle.net but still, no /api/ )

pantoufle.net shows up as a domain for sale, and status.net obviously only hosts a service for other domains
Do you have web access to this account? another client which gets access?

basically you should be able to go to the timeline in a browser, or using curl and get a response, once you can do that, you have the base url you need.

corsac 2010-05-26 18:51

Re: witter - a python twitter client
 
Hmh, not sure why I told pantoufle which is unrelated :)

I meant a subdomain of status.net. I'll try to play with it but I'm not exactly sure about how it works, especially since it's not open, so one needs to be logged in to access the feeds (which might not be supported by witter?)

corsac 2010-05-26 18:57

Re: witter - a python twitter client
 
Seems that the correct url for timeline is:

https://<domain>.status.net/api/statuses/public_timeline.rss so I guess I should use an identi.ca type account, and enter as url: https://<domain>.status.net/api/ but it doesn't seem to work :) Sorry for bothering

dwould 2010-05-26 19:05

Re: witter - a python twitter client
 
Quote:

Originally Posted by corsac (Post 680380)
Seems that the correct url for timeline is:

https://<domain>.status.net/api/statuses/public_timeline.rss so I guess I should use an identi.ca type account, and enter as url: https://<domain>.status.net/api/ but it doesn't seem to work :) Sorry for bothering

can you go to
https://<domain>.status.net/api/statuses/public_timeline.json
and get a json reponse?
or try just http via the browser?
I know identi'ca works, so it should be possible, but I don't know how much variance there is in the hosted sites etc.

corsac 2010-05-26 19:59

Re: witter - a python twitter client
 
Hhmh, using tcpdump on the n900 I'm trying to debug things. When starting witter, it seems that it requests:

/api/statuses/friend_timeline.json
/api/statuses/replies.json
/api/statuses/direct_messages.json

and the server replies with 200OK but the json look empty. It doesn't seem to request public_timeline.json.

dwould 2010-05-26 20:05

Re: witter - a python twitter client
 
Quote:

Originally Posted by corsac (Post 680590)
Hhmh, using tcpdump on the n900 I'm trying to debug things. When starting witter, it seems that it requests:

/api/statuses/friend_timeline.json
/api/statuses/replies.json
/api/statuses/direct_messages.json

and the server replies with 200OK but the json look empty. It doesn't seem to request public_timeline.json.

ok, so all of those requests should have worked, they are teh ones that would provide you your user timeline, mentions of you and dms, public timeline is something available but you'd have to manually refresh in the public timeline.

but if the server is responding with 200's but not sending anything, presumably witter is no longer reporting 404s?

obviously if witter isn't being sent any content, there is not a lot it can do about it.

corsac 2010-05-26 20:14

Re: witter - a python twitter client
 
Yeah, I don't have 404s anymore, but what would really interest me on that particular installation is the public timeline. I'm not at all a twitter user (sorry for being a newbie), so I need to manually refresh it, I guess. But I have no idea how to do that using witter.

dwould 2010-05-26 20:20

Re: witter - a python twitter client
 
Quote:

Originally Posted by corsac (Post 680631)
Yeah, I don't have 404s anymore, but what would really interest me on that particular installation is the public timeline. I'm not at all a twitter user (sorry for being a newbie), so I need to manually refresh it, I guess. But I have no idea how to do that using witter.


select the icon that has lots of little 'people' on it, the title bar will show 'Witter - public'
Then hit the bottom left refresh button to trigger a request for the public timeline.


All times are GMT. The time now is 23:07.

vBulletin® Version 3.8.8