i have to ask here since this is about api. i have a use case whereby i have to do some sort of "one time password" processing via email. the otp gets on the email. that email is forwarded to a "server" which regexes the body and outputs the OTP and some other fields like email address forward.
at the same time, the user would be using a browser extension and once that detects the user has requested OTP, a request would go to the "Server" which would match the two requests and send the browser extension the necessary OTPs.
i know the whole privacy thing around it, this is a small project and the OTPs themselves arent tied to any banking and stuff, just office work..
then there is another thing about captcha proxy using those captcha services. i do not want users to directly access the captcha api key, they should use internal keys for accounting purpose.
i have found "fusio" on github but it is terrible at explaining how to proceed and the documentation isnt that great
if you use gmail you can write appscript to extract the otp(regex part), service that sent the otp and timestamp when you recieved the mail to your "server" via post request.(i am assuming you know how to make a post request with dummy data using curl or javascript)
you can use django/ruby on rails or golang for your server, authentication is available out of the box for django and there is great documentation for api.
I am not clear on what you intend to do with captcha so no comments.
i plan to use a mail server independent of google so i can manage more parts of it without being subject to limitations of the email providers and because i am not going to "send" any email, there isnt even a problem of deliverability.
my question is that does there an appscript alternative that i can self host on my server..
there are three parts to your problem
1. recieving mail and processing it. Since you are planning to host it by yourself answer would depend on what are you using for hosting. Solution can be as simple as reading a file(i.e. recieved mail) and extracting relevant fields using whatever language you know python/shell ecript etc. This part would be highly specific to what you use as your mail server.
2. server that responds to the api request made by chrome extension. This is where you can use django it would provide basic security as well as cater to the api request made by your extension here any server would do as your use case is quite simplistic. It should be few lines of code depending on your familiarity of language.
3. Chrome extension this would be in javascript.
are you developer? or do you have access to developers? if yes than it should be straightforward.
i know the whole privacy thing around it, this is a small project and the OTPs themselves arent tied to any banking and stuff, just office work..
then there is another thing about captcha proxy using those captcha services. i do not want users to directly access the captcha api key, they should use internal keys for accounting purpose.
i have found "fusio" on github but it is terrible at explaining how to proceed and the documentation isnt that great