• Facepunch API
    437 replies, posted
[QUOTE=DrLuke;35797047]Oh good, so it's not just me[/QUOTE] At first I thought It was a slowpunch issue but after trying it on the api console I realized it's not a slowpunch problem or my apps fault :v:. I'm sure it will be fixed as soon as Hexxeh sees this.
My app has suddenly stopped working. Any idea why, Hexxeh?
We had problems between the API server and Facepunch due to the DDoS. This is fixed now. FWIW I didn't notice Facepunch was back up, and so I thought the problems were because Facepunch was down. I forgot my desktop is setup to connect to Facepunch in the same way the API does, so they both saw the same problem.
So are you planning on adding user profile support any time soon?
[QUOTE=jung3o;35693676]getsubscribedthreads the "status" doesn't seem to be working. Even on threads w/ new posts, the output is "old"[/QUOTE] can you fix this too?
When I was fiddling with my FPMobile fork, I tried to implement editing - but doedit would always return an error. Is this fixed?
I've got a bit of spare time today, so I'll check these bugs out. Testing editing again.
You should make the API open source so we can all help you with it, and you don't have to maintain it yourself
[QUOTE=DrLuke;35807703]You should make the API open source so we can all help you with it, and you don't have to maintain it yourself[/QUOTE] Meh, I'm happy to maintain it. There are a few places where it contains code that isn't public knowledge, which I couldn't open source. Essentially the API scrapes, but it cheats. It knows some Facepunch secrets it can use to be more efficient. Security keys can be generated on the API servers, rather than requested from Facepunch, which saves time.
[QUOTE=SteveUK;35696577]It would appear that in getquote, multi-line posts don't have line breaks in them.[/QUOTE] Fixed. [QUOTE=jung3o;35802495]can you fix this too? (in relation to subscribed thread statuses)[/QUOTE] Fixed. [QUOTE=SteveUK;35806997]When I was fiddling with my FPMobile fork, I tried to implement editing - but doedit would always return an error. Is this fixed?[/QUOTE] Fixed. It seems that AJAX based editing is disabled now, so I've made it use the non-AJAX version. If you could verify those fixes for me, that'd be splendid.
Thanks. I was wondering for the documentation if you were planning to show example or expected output so people don't have to actually make threads, for example, to know what the output will be?
[QUOTE=SteveUK;35829870]Thanks. I was wondering for the documentation if you were planning to show example or expected output so people don't have to actually make threads, for example, to know what the output will be?[/QUOTE] Yeah, it's something I plan to do, I've just not had time yet. The responses on the "action" events like replying, posting a thread etc could do with better responses anyway, the error checking on them sucks.
It would be nice if there was a Fp Api testing subforum in here so we won't spam the programming forum
getedit currently has the same problem getquote used to have, no line breaks.
[QUOTE=DrLuke;35834894]It would be nice if there was a Fp Api testing subforum in here so we won't spam the programming forum[/QUOTE] Ask garry. [QUOTE=SteveUK;35858726]getedit currently has the same problem getquote used to have, no line breaks.[/QUOTE] Fixed.
The API is not working at all for my app.
[QUOTE=geel9;35863404]The API is not working at all for my app.[/QUOTE] That's probably because FP was DDOS'd all day long
[QUOTE=DrLuke;35864034]That's probably because FP was DDOS'd all day long[/QUOTE] It still doesn't work.
what about giving hexxeh some error or description of what exactly doesn't work "does not work" sucks
[QUOTE=DrLuke;35866255]what about giving hexxeh some error or description of what exactly doesn't work "does not work" sucks[/QUOTE] I don't think the API is giving out proper sessions
[QUOTE=douche beat;35867090]I don't think the API is giving out proper sessions[/QUOTE] Yeah and userid in authenticate is returned as "false" fpmobile test. edit again...
The server IP changed, I DM'd it to hexxeh on twitter
[QUOTE=DrLuke;35866255]what about giving hexxeh some error or description of what exactly doesn't work "does not work" sucks[/QUOTE] It's a scraping API. If we can't connect, we can't connect. Fixed with the new IP.
So is there any place were i can test the API without flooding some forum? like a sub form just for posting random tests?
[url]http://facepunch.com/threads/1178182[/url] [editline]11th May 2012[/editline] FP api testing bed
I can't figure this thing out. How exactly would I use this thing? What do I do first?
You need a library for your programming language that can send http requests for a website (or something like that), and then: [url]http://facepun.ch/basics.php[/url]
Any possibility of outputting the API to XML?
[QUOTE=The freeman;35979891]Any possibility of outputting the API to XML?[/QUOTE] What programming language are you using? I think every programming language imaginable has at least one decent JSON parsing library
Is there a reason the API asks for username/password even when requesting things guests can do, like getting the forum listing?
Sorry, you need to Log In to post a reply to this thread.