Any way to capture activities on send dialog ?
what message is being sent?
to whom?
user has clicked "send" or "cancel"
I was checking return parameter of facebook send dialog, but could not locate it.
Thanks in adv.
Raxit
The Facebook Send dialog is very limited. According to: https://developers.facebook.com/docs/reference/dialogs/send/
you can not see what message was sent nor to whom. The only thing in the callback parameter is a value which can be null (Cancel hit) or an empty Array (in Chrome and Firefox) indicating something was sent.
Related
I am calling this via RFC:
SUBMIT (IV_REPORT_NAME)
WITH SELECTION-TABLE selection_table
AND RETURN.
I get an empty result.
If I call this code via se80, then I get this message:
Narrow down the selection
Is there a way to get this message programmatically?
I would like to return this message in my RFC function module.
I'm writing a bot in telegram (using c#).
I want the bot to send message to a user with a list of clickable links. When user presses such a link, the client should post this command back to the bot. It should look like this (example from #pollbot):
I tried:
sendMesage method with parse_mode=HTML and tg:\ links. Problem:
telegram renders them as unsafe and navigates away from the chat. Or shows no link.
/sendMessage?chat_id=xxxxxxxx&parse_mode=HTML&text=CommandText
etc...
sendMessage with markdown - same result or no link
/sendMessage?chat_id=xxxxxxxxx&parse_mode=markdown&text=[\CommandText](\Command)
inline keyboard works OK, but I need a link, not a button
Any advice on how to implement this is higly appreciated.
Words starting with a "/" in a text are automatically made clickable as a link. You can just use sendMessage without a parse_mode and send the text /newpoll.
I want to be able to reply to a user with my bot based on a button they pressed. So far, the only property I can find for button.onClick is "openUrl", but it doesn't seem possible to assign the button a value or a payload / callback URL. Additionally, there is no "Button Tapped" event.
How can I use buttons to allow my user to interact with my bot?
There are multiple ways to add a button response to Hangouts Chat. The primary one seems to be via using Cards with either KeyValue, or ActionResponse.
https://developers.google.com/hangouts/chat/how-tos/cards-onclick
You can use:
buttons.onClick.parameters.keyValue to pass unique Parameters
textButton.onClick.openLink to open a link with a text button
ActionResponse to update a card with a custom card when a Click event occurs.
In Shopify, is it possible to receive an email notification when a new user signs up (just like I get a notification when an order is placed)?
I have checked under Settings > Notifications but could not find anything. If this is not a default option provided by Shopify, is it possible to implement this using any app?
You can create a webhook to send a notification to a particular URL when the Customer creation event gets fired. Go to your Shopify admin, click on Settings, then on Notifications, scroll down and click on Create a webhook. Once the popup shows, from the dropdown, choose Customer creation Event, JSON or XML format and the url where you want to recieve the notification.
Once you have this setup, look for a webservice which reads webhooks and converts them into an email. Zapier would be a good nominee.
i have this condition in my controller, but am wondering why the javascript alert doesn't fire up even if the mail was sent successfully?
if(mail($to,$sub,$body,$headers)){
echo '<script>alert("Thank you for your enquiry.\nWe will get back to you soon\n");</script>';
$this->redirect(Yii::app()->homeUrl);
}
it just redirects to the homeUrl and skips the alert pop up box, why?
You should use setFlash to set the message that you want to display and to show this message in your view, you should check with hasFlash and echo getFlash to write the message.
You can achieve this by putting the redirection in javascript as PHP redirects before the javascript is even sent to the browser if you want to show the alert before redirection
if(mail($to,$sub,$body,$headers)){
echo '<script>
alert("Thank you for your enquiry.\nWe will get back to you soon\n");
location.replace('.Yii::app()->homeUrl.');
</script>';
}
A flash messages as already mentioned by Adler is a good option so you can get the message on the redirected page (in case it is not critical to show the alert before redirection)