• Facepunch API
    437 replies, posted
  • [QUOTE=dije;34690769]Hexxeh, are there a limit to how many login requests can be done? [editline]14th February 2012[/editline] Also, you should list all the error codes you can get on the API Actions page.[/QUOTE] No limit on successful ones, but too many incorrect ones and Facepunch will block you for a while. [QUOTE=swift and shift;34691187]It doesn't stop someone attacking the real Facepunch server(s?) and static content is something you can just stick appropriate cache headers on[/QUOTE] They don't know the real server addresses, only the CloudFlare addresses. CloudFlare knows the Facepunch addresses and passes requests onwards on your behalf. That's my understanding at least.
  • [QUOTE=Hexxeh;34692071]They don't know the real server addresses, only the CloudFlare addresses. CloudFlare knows the Facepunch addresses and passes requests onwards on your behalf. That's my understanding at least.[/QUOTE] That's exactly right, but it's possible to get Facepunch to reveal it's own IP address which kinda defeats any obscurity cloudflare provides
  • [QUOTE=Hexxeh;34692071]No limit on successful ones, but too many incorrect ones and Facepunch will block you for a while. They don't know the real server addresses, only the CloudFlare addresses. CloudFlare knows the Facepunch addresses and passes requests onwards on your behalf. That's my understanding at least.[/QUOTE]Would you accept my steam friendship invite? I'm having some troubles with posting. Login works fine. :)
  • [QUOTE=swift and shift;34692085]That's exactly right, but it's possible to get Facepunch to reveal it's own IP address which kinda defeats any obscurity cloudflare provides[/QUOTE] If it's setup right, you shouldn't be able to get the real address should you? [editline]14th February 2012[/editline] [QUOTE=dije;34692107]Would you accept my steam friendship invite? I'm having some troubles with posting. Login works fine. :)[/QUOTE] I'm not at a machine with Steam at the moment sorry, feel free to post here or if it has to be private for some reason PM me.
  • [QUOTE=swift and shift;34692243]174.36.201.30[/QUOTE] So I don't understand how CloudFlare works, fair enough. I've never actually used it so that makes sense.
  • [QUOTE=Hexxeh;34692232]If it's setup right, you shouldn't be able to get the real address should you? [editline]14th February 2012[/editline] I'm not at a machine with Steam at the moment sorry, feel free to post here or if it has to be private for some reason PM me.[/QUOTE]Oh ok. What I can't figure out, is how to post. I have all the info but I can't get it to work. I get "{"error":"No thread ID provided"}" back
  • [QUOTE=dije;34692305]Oh ok. What I can't figure out, is how to post. I have all the info but I can't get it to work. I get "{"error":"No thread ID provided"}" back[/QUOTE] Are you passing the thread ID on the post arguments?
  • I'm passing everything in the URL, am I doing something wrong? [editline]14th February 2012[/editline] Test
  • [QUOTE=dije;34692370]I'm passing everything in the URL, am I doing something wrong?[/QUOTE] Yes. You need to make a POST request, not a GET request. Put your username and password on the query string, and thread_id and message in the post body, as per the docs. [img]http://cl.ly/EBwD/Screen%20shot%202012-02-14%20at%2011.35.33.png[/img]
  • Testing the FP Api. Ignore this post, please! [editline]14th February 2012[/editline] Yes, it worked!
  • [QUOTE=swift and shift;34692243]174.36.201.30[/QUOTE] I was thinking on how you did that and then I though of a way my self. So, I set up a tcpdump on one of my servers... And then pointed facepunch to download a image from the server. [thumb]http://i.imgur.com/AWUJS.png[/thumb] Download the pcap file and open it in wireshark. [thumb]http://i.imgur.com/OETIe.png[/thumb]
  • [QUOTE=benjojo;34693761]Viola.[/QUOTE] [t]http://www.philharmonia.co.uk/thesoundexchange/_images/thumbs/viola2_c_sean_bishop_R_Valencia_w800_cred_800x332_4932e2c90cdaf79a25eadc8324158766.png[/t]
  • [QUOTE=Chris220;34693811][t]http://www.philharmonia.co.uk/thesoundexchange/_images/thumbs/viola2_c_sean_bishop_R_Valencia_w800_cred_800x332_4932e2c90cdaf79a25eadc8324158766.png[/t][/QUOTE] Oops, Spelling auto correct got me.
  • I know this is going to sound noobish. You should post some tutorials. Step by Step. Also, how can this be valuable to somebody? Could this give someone a break on Facepunch of some sort?
  • [QUOTE=Cyle;34696924]I know this is going to sound noobish. You should post some tutorials. Step by Step. Also, how can this be valuable to somebody? Could this give someone a break on Facepunch of some sort?[/QUOTE] Do you know what an API is?
  • facepun.ch doesn't work with IE6 btw. EDIT: Jesus Christ, did you change the API? All of my projects aren't working now.
  • [QUOTE=toaster468;34697919]facepun.ch doesn't work with IE6 btw. EDIT: Jesus Christ, did you change the API? All of my projects aren't working now.[/QUOTE] Nope, you're just failing apparently. Doubly so for using IE6. [editline]14th February 2012[/editline] [QUOTE=The freeman;34696911]Is there a way to see if someone is a gold member with this?[/QUOTE] Sadly you'll need to just look at the username_html field, usergroups aren't exposed in the HTML in any other way as far as I know.
  • [QUOTE=Hexxeh;34698618]Nope, you're just failing apparently. Doubly so for using IE6. [editline]14th February 2012[/editline] Sadly you'll need to just look at the username_html field, usergroups aren't exposed in the HTML in any other way as far as I know.[/QUOTE] I tried using the api website from school.
  • [QUOTE=swift and shift;34691187]It doesn't stop someone attacking the real Facepunch server(s?) and static content is something you can just stick appropriate cache headers on[/QUOTE] But then you have to serve the static content a lot more (once per new client). With CloudFlare, the servers are geographically distributed so you have lower latency (which improves user experience), and you get to take load off the FP server onto the CloudFlare server for static content being served to new clients.
  • [QUOTE=gparent;34701070]With CloudFlare, the servers are geographically distributed so you have lower latency[/QUOTE] shame facepunch.com gets routed to LA for me rather than Tokyo, Singapore or Hong Kong then
  • [QUOTE=Ehmmett;34707061]What is the user agent for people who post from the api?[/QUOTE] It's a Firefox user agent, but this is changing soon.
  • [QUOTE=swift and shift;34706875]shame facepunch.com gets routed to LA for me rather than Tokyo, Singapore or Hong Kong then[/QUOTE] Well hey, they can't have servers everywhere. Plus the dynamic content needs to reach the FP servers anyway. But it helps!
  • [QUOTE=Hexxeh;34709290]It's a Firefox user agent, but this is changing soon.[/QUOTE] Maybe after you implement the API keys, have devs choose the user agent per app?
  • [QUOTE=gparent;34710592]Well hey, they can't have servers everywhere. Plus the dynamic content needs to reach the FP servers anyway. But it helps![/QUOTE] they have servers in tokyo, singapore and hong kong
  • [QUOTE=swift and shift;34721791]they have servers in tokyo, singapore and hong kong[/QUOTE] Then email them? What can I say, I don't work for them. Issues like these can be caused by either the ISP or the content provider, and neither of them will find out unless someone complains.
  • Pretty nice work Hexxeh. Without sounding like a newfag or a total retard. We're allowed to use this for what ever? (None malicious) say I wanted to make an app or something? I did add you on steam. Pretty nice though. Grats. Brad,