why when i do an action=newreply does it unsubscribe from the thread that's posted to?
[editline]2nd January 2013[/editline]
does it on my app, and the API Console
[QUOTE=CarlBooth;39067282]why when i do an action=newreply does it unsubscribe from the thread that's posted to?
[editline]2nd January 2013[/editline]
does it on my app, and the API Console[/QUOTE]
It actually does that? Me and a couple other people thought we noticed that as well, but weren't sure it was true.
We thought it was the facepunch app that did it though.
I thought it was me too, but the API console does the same thing so it must be a bug in hexxeh's API
[editline]2nd January 2013[/editline]
Also, getsubscribedthreads chugs for a while and doesnt do a lot.
It seems to time out after a while and throws up a 502 error
now getting "Error connecting to Facepunch" for any authenticated requests
Facepunch's IP changed, we're back now.
The unsubscribing thing is a bitch, there's a check box on the reply page with whether your subscribed or not, but because we never load the page, we don't actually know the correct value to send.
[QUOTE=Hexxeh;39080234]Facepunch's IP changed, we're back now.
The unsubscribing thing is a bitch, there's a check box on the reply page with whether your subscribed or not, but because we never load the page, we don't actually know the correct value to send.[/QUOTE]
What happens if you don't send that value, or use the quick reply thing?
[QUOTE=Gran PC;39080283]What happens if you don't send that value, or use the quick reply thing?[/QUOTE]
If you don't send that value, it unsubscribes you. The value is literally called "subscribed" and defaults to false if you don't pass it.
Quick reply I believe we used in the past but stopped using for some reason, but I can't remember why.
ty hexxeh
[editline]3rd January 2013[/editline]
could you have subscribe as one of the parameters and people can use it with getsubscribedthreads to check themselves, and add a subscription if they want to
[QUOTE=CarlBooth;39080444]ty hexxeh
[editline]3rd January 2013[/editline]
could you have subscribe as one of the parameters and people can use it with getsubscribedthreads to check themselves, and add a subscription if they want to[/QUOTE]
Done, parameter name is subscribe.
cheers
[editline]3rd January 2013[/editline]
getsubscribedthreads is 500ing!
sorry to be a pain
[QUOTE=CarlBooth;39080882]cheers
[editline]3rd January 2013[/editline]
getsubscribedthreads is 500ing!
sorry to be a pain[/QUOTE]
No problem, fixed, my bad (stray bracket).
Thanks, but now it's just timing out ... ?
[QUOTE=CarlBooth;39081232]Thanks, but now it's just timing out ... ?[/QUOTE]
It's working on my account, hmm. How many subscribed threads do you have?
17
[editline]3rd January 2013[/editline]
It just hangs and then I get a 502 error
[editline]3rd January 2013[/editline]
I dropped all but 5, it works now but it's slow.
It's doing something once per thread on that requests that's timing out. If you have few enough threads, it can tolerate it and just take a while to load. Past a point, it's causing the entire request to time out. I'll look into it further.
Thank-you
You can't send PM's through the API
[editline]19th January 2013[/editline]
oh yeah, wasn't there a way to get a profile url by just typing a username? or does that not exist anymore
[QUOTE=jung3o;39278821]You can't send PM's through the API
[editline]19th January 2013[/editline]
oh yeah, wasn't there a way to get a profile url by just typing a username? or does that not exist anymore[/QUOTE]
You're referring to the getprofile action, I believe. Just do a [code]getprofile(username, password, session_id, target_username)[/code]
What'd you mean you can't send PMs through the API, though? It's working for me, are you sure you're doing it right?
[QUOTE=Gulen;39279929]You're referring to the getprofile action, I believe. Just do a [code]getprofile(username, password, session_id, target_username)[/code]
What'd you mean you can't send PMs through the API, though? It's working for me, are you sure you're doing it right?[/QUOTE]
hm weird now it's working for me. :/
I mean by linking the user to facepunch.com
[QUOTE=jung3o;39280071]hm weird now it's working for me. :/
I mean by linking the user to facepunch.com[/QUOTE]
Are you looking to get the url to a user's profile?
[QUOTE=Gulen;39280313]Are you looking to get the url to a user's profile?[/QUOTE]
yeah, but via username. I remember there being one.
The newreply action to a non-existent thread returns ok.
[QUOTE=_Undefined;39325894]The newreply action to a non-existent thread returns ok.[/QUOTE]
There's no error handling on lots of the "write" actions.
I wouldn't mind doing things like that if you'd be willing to share the code with me for such actions. I'd pass it back to you to check and add in.
Got Google Talk? Add me, I'm growing a bit tired of maintaining this now, given that it's not really being used much. If you're interested in taking over development I can probably setup access for you to a Git repo.
cant you just open source it for everyone?
[QUOTE=CarlBooth;39328870]cant you just open source it for everyone?[/QUOTE]
I could, but I don't want people hosting copies that aren't trusted and are just going to get banned. In any case, as _Undefined can attest, the code isn't really very good.
I would be interested in git access for the GMF mobile app
can you PM me, I dont have gTalk
I don't really want to open it up further at present, if there's stuff you'd like doing, talk to _Undefined and see if he'll add/change it for you.
Sorry, you need to Log In to post a reply to this thread.