How to send post request to remote server (ip) via web browser? - web

I have bought remote VPS and i have telegram bot. I want to make email verification for this bot. So how should i send requests to scripts on the server when user clicks on the button "Verify" that contains some information about his telegram profile so i can approve him to use bot?
The main problem that i dont know how to send requests to scripts on the server by ip
There is no website on the server, maybe i should set it up?

Ive realized that i can do it like that. But any contributions would be met with enthusiasm)

Sounds like youn need an RESTful API to authenticate users.
And a client...

Related

Facebook chatbot with node, express.js, ngrok and Dialogflow

I made this bot using express.js, node.js and ngrok. Its automatic answers are working fine, but this is happening only to my user, the user which created its facebook page, if other people message it, it won't respond.
I've already made it public, I have no idea what to do. What do I need to do so the bot respond to all users that message him?
I think its something about the Facebook configuration, because the bot is responding properly. How can I get help on this?
Before a Facebook app goes to live, you have to make sure by the facebook authority, the app is using data in an approved manner.
From your app dashboard, you have to submit the application for review.
Before you can switch your app to Live mode, we may need to make sure
that you will be using our products and data in an approved manner. To
achieve this goal, we require many apps to undergo App Review.
Without reviewing the application only the developers and the page associates can interact with the bot.
Check the docs here.

can we create a custom chat page for bot application?

I am building a bot with the Microsoft bot framework. I don't want to use bot(other than webchat) emulator and don't want to use Azure also.I want to host my bot in local IIS only. Instead of using bot emulator I want to create my own custom chat page for chat with bot. I checked this but didn't get any idea. Is there any way to do so?
Please help. Thanks.
If you've internet connection you can use ngrok to make your local address public. Then, for endpoint use generated address from ngrok. At the end, send web chat to your testers.

Communicating with the web server using Google Home

I have a social networking website developed in php which is hosted on the server. Here people can talk to each other through messages.
I want to send and receive the messages, to the other users through google home. It is not like a chat bot. But here, the first user will send message from google home to the website and then the second user will send the message from the website to the first user who will receive it through google home.
Can this be achieved? Do I have to develop some kind of mobile App, so that user has to send the message to the mobile app and then the app sends the data to the server.
or do i have to use the webhook which is available in api.ai?
Any help will be appreciated.
You do not need a mobile app - it sounds like most (but not all) of what you're trying to do would be handled using API.AI's webhook Fulfillment.
However, you're also trying to do asynchronous operations (send a message or a notification to Home without the user prompting for it). This currently isn't possible - you can currently only send a message in response to the user taking some action.
One possible workaround for you is to allow the user to ask "how many messages are waiting for me" or something similar at any point. You can also play multiple messages in reply to a message they might send. However, you have limits (about 5 seconds) on how long you can wait to send a reply to a user instruction.
You can implement a chat bot e.g. via Dialogflow (former api.ai), however you can just react on inputs. You cannot push a message on Google Home (yet). So you could the bot read your mailbox but not implement a chat.

How to use my webhost's mailserver to send emails with my app on Heroku

I am building an application in NodeJS using Heroku to manage it. I chose Heroku because of its scalabiliy, ease of use, addons, and integration with Git.
I happen to have a webhosting account with Bluehost, and it includes a mail server.
I want to send emails from my application but Heroku doesn't offer a mail server (yes there are some addons, but they generally cost money). I want to use the mail server I have with Bluehost to send emails on behalf of my app.
Does anyone know if this is possible? Can you explain why/why not?
Just saw this. I suppose you could just create a php form on bluehost that takes post parameters for where to send the email and the email contents. Then just send it using php on bluehost. To do this you would have to make a post request to your webserver on bluehost from your nodejs app.

How can I use SMTP and Gmail in an end user application?

I am working on an application that requires communication via email with the user and the client for whom the application is being developed.
Basically the flow is thus :
Program Does Something
Program sends an email detailing if it worked or not to the user and my client
We have established a Gmail account to make this happen. Unfortunately my clients users are multinational and Gmail freaked out and started blocking users, which started throwing exceptions when they were trying to use the program.
In the emails I saw when I checked the account, I saw I see at least two of these emails that say "Suspicious sign in prevented", and there was a red bar that said multiple attempts were tried to sign in and asked if it was me, and there were points all over the world.
How would I go about making it so that Gmail doesn't freak out when it sees users trying to sign in all over the planet?
Isn't sending through a some kind of a server application not an option? I.e. instead of making SMTP connection from your end user app directly to Gmail server your app sends a request to your web server which does actual SMTP connection. This way you'll also eliminate issues when SMTP ports are blocked on end users' machines.

Resources