1114 posts
Location
UK
Posted 09 January 2013 - 06:57 AM
HTAPIS
NOTE: The email function does not currently work correctly, you can only do single-word messages. Fixed!
Please PM me to use this API. I will give it to you.
Hello CCforums and welcome to another API! This API is currently WIP but there is one function: mail.
Say, you wanted to have a turtle build a house and notify you when it's done. You would be sitting on the sofa waiting when <PING> your iPhone says "TURTLE FINISHED BUILDING HOUSE"
Usage:
Spoiler
htapis.mail([to], [from], [subject], [message])
7508 posts
Location
Australia
Posted 09 January 2013 - 06:59 AM
Download (mediafire sorry but dropbox is playing up)
Could always use pastebin, then people can get it in-game without having to worry about if they have access to the local files or whatever ( eg servers )
1114 posts
Location
UK
Posted 09 January 2013 - 07:03 AM
Can anyone suggest ideas for this please?
386 posts
Location
France
Posted 09 January 2013 - 07:36 AM
Make a relay function :)/>
180 posts
Posted 09 January 2013 - 01:26 PM
Oh wow. I don't mean to be discouraging or anything, but this is a very unsafe idea without authentication!
Once the first spammer gets a hold of that, your domain will get blacklisted across the internet within the week for being an open proxy.
25 posts
Posted 09 January 2013 - 06:59 PM
I guess you should url encode your text to send it and maybe a POST would be a better idea since you'll be limited with a GET
Also you should maybe implement some kind of recaptcha to avoid bots to be spamming, that could be something like :
-> Make a request on the website
-> Website gives you two informations : ID of the question, the question
-> You have to give the ID back and the correct answer to the question in order to be able to send mail …
The question could be whatever since it'll be two distincts pages (I hope so), it would be too annoying for a spamer to make a script, (even if it's still possible)
1114 posts
Location
UK
Posted 10 January 2013 - 06:05 AM
I guess you should url encode your text to send it and maybe a POST would be a better idea since you'll be limited with a GET
Also you should maybe implement some kind of recaptcha to avoid bots to be spamming, that could be something like :
-> Make a request on the website
-> Website gives you two informations : ID of the question, the question
-> You have to give the ID back and the correct answer to the question in order to be able to send mail …
The question could be whatever since it'll be two distincts pages (I hope so), it would be too annoying for a spamer to make a script, (even if it's still possible)
I want it quick+simple, is there any way to do it with, say, an auth key?
25 posts
Posted 15 January 2013 - 04:59 PM
Yeah you could also emulate cookies, generating a file with a key in it and each time you send a mail, you give it the key in the file, and if it's expired, you have to make a new one, stuff like that