How can I get the $UserKey when an user add a bot?
Hi, How can the bot get the $UserKey when an user add the bot to his Messenger client? (without a first message from the user).
regards
Comments are currently closed for this discussion. You can start a new one.
2 Posted by Anthony Webb on 09 Jun, 2009 03:56 PM
Hi Orlando, I misread your initial email. Specifically regarding pinging an enpoint URL when a new user adds your bot, that is an interesting request. We dont support that today. I'll take it back to the guys and see what everyone thinks.
I think that it is rare that someone would add your bot and then never send a message though. Is there something specific you are trying to accomplish with this function?
Anthony Webb closed this discussion on 09 Jun, 2009 03:56 PM.
Orlando re-opened this discussion on 09 Jun, 2009 04:14 PM
3 Posted by Orlando on 09 Jun, 2009 04:14 PM
Yes, I'm starting an auction website and I want to send alerts and notify to my users about any change in an auction, such as a new question, outbid, or ending reminder,
for example :
xxxxxx bot says: The auction #722 (Electric guitar Fender) will end in 8 minutes.
or xxxxxx bot says: You are outbid in the auction #722 - Electric guitar Fender, clic in the follow link to do a new bid.
And how it work? an user add my bot to his Messenger client and when the event or reminder is fired in the website send the alert o message to the user through the robot (PHP).
Just like eBay (better explained):
eBay can alert you about an auction ending or when you are outbid on an item. You can receive alerts by Instant Messenger.
You can subscribe to instant messenger alerts in My eBay and start receiving notifications when you've been outbid or when a listing has ended. If you enable these alerts, you’ll see the words “You were outbid on” or “end” followed by a short description, item number, and bid amount. For example: You were outbid on “1823 Maratha Coin"(#3536992432). Price Rs.101.50, ends 25/02/2008.
If you receive an alert, you can then respond to the alert and bid again. Instant messenger alerts are sent to a chat window on your computer. To add an instant messenger address:
thanks...
4 Posted by Anthony Webb on 09 Jun, 2009 05:05 PM
Seems like you would need some sort of a validation that the screename that I say belongs to me actually does (perhaps through some sort of a key swap or something), correct?
Anthony Webb closed this discussion on 09 Jun, 2009 05:05 PM.
5 Posted by Anthony Webb on 09 Jun, 2009 05:05 PM
BTW, great use case for IM Orlando!
Orlando re-opened this discussion on 09 Jun, 2009 05:16 PM
6 Posted by Orlando on 09 Jun, 2009 05:16 PM
I believe that I have not understood the question. (Sorry aboutmy bad english). But it would be very useful to be able to send a message straight to a mail address, instead of using $userKey, or looking for some way of obtaining $userKey to store it in a database, but I would have to request the person who adds the robot, which should write some simple message but does not look like a very clean solution.
It would be good to obtain $UserKey when the bot add an user or the user add the bot, or also to have a list of contacts with his respective $userKey.
Can i found a way do to this?
Support Staff 7 Posted by Adam Kalsey on 09 Jun, 2009 05:35 PM
Before you start sending them messages, you'll want to verify with
them that the IM address actually belongs to them. That keeps people
from getting IMs they didn't expect if someone signs up another
person's address.
The current version does not allow you to send messages directly to an
address. As a spam prevention measure, we only allow you to send to
people that you have the userkey for. And the only way to get a
userkey is for them to send you a message first.
A future release will allow you to send directly to IM addresses. We
will require that developers who wish to do this comply with strict
anti-spam rules.
8 Posted by Orlando on 09 Jun, 2009 05:46 PM
Thanks... Then I will generate a random code for example DFSD21X, then the user need send this code to my bot, then i will add to my db with the userkey.... thanks for your help.
Support Staff 9 Posted by Adam Kalsey on 09 Jun, 2009 05:49 PM
That will do it, yes. And you'll be ensuring that the user is adding
the right IM address to your site.