These are chat archives for ushahidi/Community

18th
Apr 2016
Moses
@MosesTroyer
Apr 18 2016 01:45
ushbot: I took a break for uh, the entire afternoon, but I did get it working fine. Thanks again!
Ushbot
@ushbot
Apr 18 2016 01:48
[Robbie Mackay, Ushahidi] Excellent
[Robbie Mackay, Ushahidi] ushbot is *really* a bot FYI. It just copies messages to our hipchat and IRC chats :) so you'll get slightly confused usernames sorry. Use @robbie to ping me if needed
[Robbie Mackay, Ushahidi] or @rjmackay
Moses
@MosesTroyer
Apr 18 2016 01:49
haha, I realised that was probably the case after I typed it. Figured it would at least call you out in some way :)
Robbie Mackay
@rjmackay
Apr 18 2016 01:50
Hows the gitter experience btw? Have you used it for other projects?
just curious how well it really works for community members
Moses
@MosesTroyer
Apr 18 2016 01:51
I haven't used gitter before, have been doing my collaboration on slack, but it seems to work nicely
really nice how I can just sign in with github
Robbie Mackay
@rjmackay
Apr 18 2016 01:51
Cool. I hoped that’d make life easier.. at least for developers: you already have a github account so this is quick and easy.
Moses
@MosesTroyer
Apr 18 2016 01:52
It does make it easier, I was going to hop myself into irc if this wasn't available
Ushbot
@ushbot
Apr 18 2016 16:46
[David Braun, Ushahidi] Hi Jason... We downloaded v 3 few weeks ago--it's great. My programmer Mary has been trying to integrate Nexmo into the platform for SMS. We are having problems. Although she can script a default reply for inbound texts, incoming message do not display in the admin. interface of the platform. She can't seem to fix. Could you help her? Her email address is: mlssabio21@gmail.com. Thank you in advance for your assistance.=)
Ushbot
@ushbot
Apr 18 2016 17:10

[Will, Ushahidi] Hi @DavidBraunGuest, I believe I may have spoken to Mary on this channel a little while ago. I think the following might help:

You could have your sendSMS script forward sms to the platform once you've received them from Nexmo, this would allow you to auto reply and to get the SMS in platform
$url = 'http://api.impactumbrella.com/sms/nexmo/reply' . http_build_query([
        'api_key' => 'c',
        'api_secret' => 'a',
        'secret' => 'a',
        'to' => $request['to'],
        'from' => $request['msisdn'],
        'text' => $request['text']
    ]);

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
Show less
So the complete setup would be as follow:

  1. in nexmo set the call back url to point to your script
  2. In your script add the above code to send the message onto platform
    In theory that should work but would need to be tested
Ushbot
@ushbot
Apr 18 2016 17:22
[Will, Ushahidi] @Jason I'll send a mail to the email address for Mary
Ushbot
@ushbot
Apr 18 2016 17:45
[David Braun, Ushahidi] Thanks a lot guys--really appreciate it.
Ushbot
@ushbot
Apr 18 2016 18:34
[Jason Mule, Ushahidi] Thanks @Will