• Facepunch API
    437 replies, posted
Any way to edit account data? Like this stuff: [img]http://puu.sh/o9ke[/img]
Not currently. I can't see it being too popular needing to edit that kind of stuff whilst mobile. I don't think it's worth doing considering the amount of effort it'd require to make it work.
So I used the API console and managed to get a forum listing perfectly fine, then I tried posting a new thread in the OIFY (just a test thread, so I figured if I'm going to make clutter I should make it go where the rest of the crap is). Nothing happened. No thread in there by me, no error in the API console, nada. I have no idea.
[QUOTE=Hexxeh;35453562]Not currently. I can't see it being too popular needing to edit that kind of stuff whilst mobile. I don't think it's worth doing considering the amount of effort it'd require to make it work.[/QUOTE] sadness. I was going to write a garry's mod addon that displayed players on a map if they were logged onto facepunch. I was going to hijack one of the profile settings to store player origin and angles, but I guess this isn't the way to do this and it would put up heavy load on garry's site. :(
[QUOTE=Hentie;35523179]sadness. I was going to write a garry's mod addon that displayed players on a map if they were logged onto facepunch. I was going to hijack one of the profile settings to store player origin and angles, but I guess this isn't the way to do this and it would put up heavy load on garry's site. :([/QUOTE] I don't really understand. Do you mean you would show people's position on your server in their Facepunch profile?
Oh no, it would be a single player addon. Here's how my addon would work: It designate an empty forgotten thread as the lobby. The lobby will hold a list of all the players who are currently logged onto the addon, the list would be parsed from this: [url]http://puu.sh/p2op[/url] All the player has to do is go on that thread's page to enter the addon's lobby. Once the addon has a list of players, it will go to each player's profiles individually and parses a small block of information. This block would contain something like: "19.000 1278.000 175.000 180 0 0" which will contain the player's position and angle. The addon will then render in the map a ghost model at that position and angle, as well as a name tag over the model. As YOU move around the map, every second the addon will update your profile with a block of information on where your position and angle is.
Shame that list is fairly inaccurate and isn't returned by the API. :v:
[QUOTE=Lexic;35523949]Shame that list is fairly inaccurate and isn't returned by the API. :v:[/QUOTE] I could make it returned... But, with the caching stuff that's being added, it'd be horribly out of date and therefore useless. Online status is also going to be useless. The tradeoff is major speed, though.
It's already useless though, isn't it?
[QUOTE=Hentie;35523751]Oh no, it would be a single player addon. Here's how my addon would work: It designate an empty forgotten thread as the lobby. The lobby will hold a list of all the players who are currently logged onto the addon, the list would be parsed from this: [url]http://puu.sh/p2op[/url] All the player has to do is go on that thread's page to enter the addon's lobby. Once the addon has a list of players, it will go to each player's profiles individually and parses a small block of information. This block would contain something like: "19.000 1278.000 175.000 180 0 0" which will contain the player's position and angle. The addon will then render in the map a ghost model at that position and angle, as well as a name tag over the model. As YOU move around the map, every second the addon will update your profile with a block of information on where your position and angle is.[/QUOTE] Ooh, that is actually quite interesting. However, using Facepunch instead of a dedicated service to do that is really bad.
[QUOTE=Hentie;35523751]As YOU move around the map, every second the addon will update your profile with a block of information on where your position and angle is.[/QUOTE] That'd be about as efficient as using private messages for server-client communication. [editline]13th April 2012[/editline] Although, it'd be perfect for a game like Frozen Synapse... Hmmm...
test
That worked, are you going to make a xkcd bot?
This post is powered by Python [editline]18th April 2012[/editline] Yes
hexxeh (or anyone) can you please post an example of the "rate" request, i don't know what the "key" value is supposed to be because i'm stupid [editline]18th April 2012[/editline] [QUOTE=Hexxeh;35524504]I could make it returned... But, with the caching stuff that's being added, it'd be horribly out of date and therefore useless. Online status is also going to be useless. The tradeoff is major speed, though.[/QUOTE] you son of a bitch you're going to ruin my online status underline thing!!
This post is powered by Python [editline]18th April 2012[/editline] This post also was accidental, I should probably start my own thread so this one isn't spammed
[QUOTE=Kopimi;35618995]hexxeh (or anyone) can you please post an example of the "rate" request, i don't know what the "key" value is supposed to be because i'm stupid [editline]18th April 2012[/editline] you son of a bitch you're going to ruin my online status underline thing!![/QUOTE] The keys are in the show post and show thread requests
[QUOTE=douche beat;35625204]The keys are in the show post and show thread requests[/QUOTE] i don't get it, i'm supposed to send in the ratingskey that coincides with my rating?
Yeah i think so
[QUOTE=Kopimi;35625281]i don't get it, i'm supposed to send in the ratingskey that coincides with my rating?[/QUOTE] When you get a getposts response, or another one that returns in that format, you'll get an array of rating keys, one per rating per post. You use this key along with your rating request.
got it working, thanks [editline]18th April 2012[/editline] why aren't you on steam hexxeh, you're forcing me to look stupid in public
Steam hates my iMac. Add me on MSN if you want, [email]hexxeh@hexxeh.net[/email].
um hexxeh i'm not an old man so i don't use msn get with the times
yeah, where's your gtalk?? thats what all the cool kids use these days
I don't use GTalk, sorry.
Is it possible to have newreply return the post id of the post created?
[QUOTE=Hexxeh;35346952]getticker, geteventlog and getsubscribedthreads calls are now available, docs are on the normal site. As an added bonus, getposts calls now include OS and browser information for each post where available and all calls that return data (rather than just an acknowledgement) may provide an alerts key, which contains information about a new PM. If you want to test that, send yourself a PM and then immediately make a call to something like getforums. You can use this in your app in order to notify a user of a new PM whilst they're browsing.[/QUOTE] getsubscribedthreads the "status" doesn't seem to be working. Even on threads w/ new posts, the output is "old"
It would appear that in getquote, multi-line posts don't have line breaks in them. another edit test
Sessions seem to be broken as they don't stick even though you get a successful response.
Oh good, so it's not just me
Sorry, you need to Log In to post a reply to this thread.