• Facepunch API
    437 replies, posted
See below.
There's already one here: [url]https://github.com/Hexxeh/Facepunch-API/issues[/url]
[QUOTE=Hexxeh;39329862]In any case, as _Undefined can attest, the code isn't really very good.[/QUOTE] this isn't to try and change your mind or something but I'd just like to say that unless someone can make a better one they shouldn't be judging you
[QUOTE=Banana Lord.;39331633]this isn't to try and change your mind or something but I'd just like to say that unless someone can make a better one they shouldn't be judging you[/QUOTE] I'm not sure if this was directed at me or not, but I haven't commented on Hexxeh's code either privately or publicly.
[QUOTE=_Undefined;39331822]I'm not sure if this was directed at me or not, but I haven't commented on Hexxeh's code either privately or publicly.[/QUOTE] No that wasn't directed at you, it was just that Hexxeh thinks his code isn't good :)
Any chance of a GetForumIcon action?
[QUOTE=dije;39353702]Any chance of a GetForumIcon action?[/QUOTE] They're hosted by number on Facepunch.com, you can literally just use the forum ID to get the icon.
[QUOTE=Hexxeh;39353808]They're hosted by number on Facepunch.com, you can literally just use the forum ID to get the icon.[/QUOTE]Oh I see, thanks for the info :smile:
Is there a limit to how many requests per second/minute you can do?
[QUOTE=Mega1mpact;39441701]Is there a limit to how many requests per second/minute you can do?[/QUOTE] No fixed limit, and I don't really care how much you hit the cache, but for requests that will result in requests to Facepunch, use common sense really...
[QUOTE=Hexxeh;39443660]No fixed limit, and I don't really care how much you hit the cache, but for requests that will result in requests to Facepunch, use common sense really...[/QUOTE] I guess that the ratings are not in the cache... How does 2-3 per second sound?
why dont you just scrape the ticker every 10 seconds?
[QUOTE=CarlBooth;39446768]why dont you just scrape the ticker every 10 seconds?[/QUOTE] I'm trying to scrape all the ratings from a thread. I want to do this without making too many requests. I'm thinking of just requesting the actual page because that will make it so that I don't have to do that many requests.
[QUOTE=Mega1mpact;39446815]I'm trying to scrape all the ratings from a thread. I want to do this without making too many requests. I'm thinking of just requesting the actual page because that will make it so that I don't have to do that many requests.[/QUOTE] 2-3 per second not too frequently is fine.
I was actually thinking about making a new and better Facepunch app for android, as my first project.
Is there any way to get who rated what on a post with that api?
When using the ticker API is a month if banned 30 days? and a year 365?
Is this dead? I tried to use an old rating counter I made and all my requests are returning errors about not having a session, even though I sent an auth request first.
Facepunch changed IPs again. It's doing it increasingly often, and it requires me to manually tell the API about the new IP. I've updated it again, so things should work and the caching daemons are running again.
[QUOTE=Hexxeh;39782631]Facepunch changed IPs again. It's doing it increasingly often, and it requires me to manually tell the API about the new IP. I've updated it again, so things should work and the caching daemons are running again.[/QUOTE] Cheers, thanks
[QUOTE=Mega1mpact;39661708]When using the ticker API is a month if banned 30 days? and a year 365?[/QUOTE] I think that's the moderators, not the API, so I think you'll have to ask them how long a month ban is.
is SSL supported still? The certificate expired at the end of January
I'm going to assume so
I have some questions: * While the getposts action returns ratings by their name (agree, disagree,...), the rate action returns them by their icon name (tick, cross, ...). Was this done on purpose? Could this be made consistent? * Would it be possible to add a "read/unread" status to the getpms action? This would make it easier to find unread PMs, whereas now I'd have to get the information of each individual PM as well, which is quite slow. * The getposts action gives inaccurate data due to caching, this can be solved by adding nitro=0 (disabling caching), but this is very slow in comparison. Is there some sort of middleground possible?
nevermind
Authenticating gives an error in the API as of some days. Getting forums works fine though. Edit: It works now, although sometimes authenticating seems to return LOGIN_OK, but false for userid and null for sessionid.
The getforums method isn't returning anything now.
[QUOTE=AzzyMaster;41112510]The getforums method isn't returning anything now.[/QUOTE] Works for me, but only when you're authenticated.
Trying to authenticate, but being told that I need to be authenticated before authenticating... [url]https://gist.github.com/dmillerw/46336c5bb97b02cec1d2[/url]
Authenticating now gives "Error connecting to Facepunch" for me.
Sorry, you need to Log In to post a reply to this thread.