I have a problem with OpenTok and Nexmo API - laravel

I have a problem with OpenTok and Nexmo API. I am trying to connect to Nexmo phone conference using OpenTok. In order to connect to correct conference I need to pass the conference session id somehow. And here is where problem begins. I am tryting to pass custom header with session id in it using OpenTok's dial() function. But once OpenTok sends a request to Nexmo the custom header is not present on the server holding a call. Is it possible to make Nexmo pass my custom header with its data?
Kind regards

Related

How do I get apple receipt from app store events in laravel

I am using imdhemy/laravel-in-app-purchases plugin to manage mobile purchases from Google and Apple. I configured Google ok and I'm handling purchase events correctly.
But with apple subscriptions (renewable subscriptions) I can verify purchases, but I can't make the events listeners to work.
This is what I have working so far:
I can get a purchase from the mobile device and verify the receipt.
I can store the purchase identifier in my database.
I configured apple's push notification endpoint both for production and sandbox
My specific problem is:
the route /purchases/subscriptions/apple is expecting unified_receipt, unified_receipt.latest_receipt, unified_receipt.latest_receipt_info and notification_type.
but apple is sending Post: "{\x22signedPayload\x22:\x22eyJhbGciOiJFUzI1N...., if I'm not wrong, that is a JWT token, but in the library documentation, there is no information regarding JWT token.
That produces a 422 error from laravel's side, as it expects fields not sent by Apple.
Is there some extra configuration or step that I'm missing?
Thanks!
If you are switch to Notification version 1 you will find all data. Version 2 send only jwt token
If someone comes across this issue, the solution I found was to decrypt the JWT manually and skip all the custom events.

Azure bot responses to webhook

Is there a way for bot to send responses to my webhook?
Direct-line channel works fine but communication is done via websockets or via polling. I would like to have an option where bot sends responses to my rest api endpoint.
I've tried to create an adapter but in that case I have to manage all the conversations logic and incoming/outgoing messages.
What would be the best solution for this?
ps. I'm using bot composer to create bot.
There is no out-of-box way to additionally send responses to your endpoint with Composer. You can use the Send an HTTP action in composer, but that is for specific and isolated calls.
What would be the best solution for this?
Are you wanting to send all responses to your webhook? or just make calls to your webhook under certain scenarios?
I'm not sure i'm understanding the ask entirely, but if you are just wanting to send responses additionally to your endpoint (not changing the response back to the channel connector and client, etc), you could create middleware. Depending on your specific needs, you might even be able to utilize/inherit/customize the inspection middleware.

Google API – send email with default signature

I'm working on mobile app that works as a simple gmail client. Is there any way how to add user's default signature (that you can set in gmail settings) when sending a message using google API?
As of April 2017, GMail API supports manipulating the signature via SendAs API: https://developers.google.com/gmail/api/v1/reference/users/settings/sendAs
The workflow would be:
get the default signature
add it to the email body when sending message.

Twilio sms and call system and track the sms and call using codeigniter

I want to use twilio sms and call system and track the sms and call using codeigniter. When calling or sending sms want a response that will be stored in database. Is it possible to test using free(trial) account ?
Yes it is possible with free account, but you need to verify the number in your account before sending SMS/Call. I have implemented before.

Activate tropo application via email

I'm trying to link Backback and Tropo to send reminders to groups.
Backpack can send reminders via email or SMS, and Tropo can receive messages via a custom SMS number; the problem is that Backback sends the SMS via email, and needs a provider. It can also be activated with a specific url and receives REST or JSON data.
Is there any way to activate a Tropo application using email or find out what provider setting I should use for Tropo?
ON TROPO:
Phone Numbers:
Voice & Messaging: (705) xxx-xxxx
Outbound Tokens:
Voice: ...
Messaging: ...
Tropo does not have an email gateway for receiving SMS. Applications that send SMS by email won't be able to send to Tropo.
One thing you could do is built a small catcher application that receives the REST call from backpack and then makes a REST call to Tropo to send the SMS. It would be sort of like a translator from Backpack's REST api to Tropo's.

Resources