I want to integrate pubnub with zendesk - javascript

is it possible to integrate zendesk to pubnub? I want to create a pubnub channel for each zendesk ticket, and when I respond to a ticket with some message I want to send pubnub api request to record that message at pubnub server.
basically, I want an user interface to handle customer queries, and this chat between user and me I want to save it at pubnub servers. Any idea?

Zendesk Custom App Using PubNub
You don't need Zendesk's source code (and you can't get it anyway). The right thing to do is to create a Zendesk app by using their REST API.
Within that custom app, you use PubNub's REST API or a PubNub SDK that is compatible with whatever Zendesk offers as languages to use for add-ons (Ruby, Node, whatever they offer).
This is a cool use case (Zendesk, Desk Freshdesk, etc) with add-ons because you can do things within Zendesk that use PubNub to react to actions and trigger other things to happen or notify other agents in Zendesk.
You can also create a standalone app (web, server or mobile) that can subscribe to channels that the Zendesk is publishing to and you can go the other way around. The standalone app can publish on a channel that the Zendesk add-on is subscribed to and react to that message as required. The what to do is limitless.
And the standalone app could just be some other product/service/platform that allows you to create a custom app: Salesforce.com, Hipchat, Slack, Flowdock, Socialcast, Jive, Yammer, Workday, Zenefits, Zuora, whatever!
Here is a Zendesk custom app example to get you started.
Since you were referencing PHP, you might be creating a server side process that will interact with your Zendesk custom app so you will need PubNub PHP SDK. But you might be able to use PubNub JavaScript SDK within the Zendesk custom app.
Let us know if you need help taking the next step here after you get familiar with how to get started with a Zendesk app.

Related

MFA Client for Microsoft Graph without AAD Registration

Using a simple C#/WPF application and the SharePointPnPCoreOnline I can call the GetWebLoginClientContext() method which opens up a window for the user to authenticate via MFA to a given SharePoint site. From that point on I can query the SP site based on the users level of access. The convenient thing about this approach is that I don't have to register my WPF application with Azure AD, give it permissions, get a client ID, client secret, yadda yadda yadda.
Is there a library that will similarly allow me to authenticate a user via MFA so that I can access the Graph API based on their permissions without the AAD app registration requirement from a C# client application? How about a JavaScript application?
This is not possible, to access the graph api, (for a work or student account) there must be an app registration to give you permissions to those endpoints. even the "graph explorer" has a registered application.
Even with your sharepointpnpcoreonline, that likely authenticates against an app registration/service principal, its just that its microsoft trusted app registrations, so it's hiding it in the background from you. if you were to check in your azure ad enterprise applications under microsoft applications, there are various service principals for sharepoint online for example.
Long and short of it is that you need to have an app registration/service principal to access graph api endpoints. you don't necessarily need a client secret though, as that depends on your specific application and the authentication flow you choose to use in your app registration.

Laravel and Flutter Notifications System

I Want to Build a Web App with Mobile App in one platform. So, Both of Them will use the Same Database which is MySQL.
I want to use Laravel as backend and flutter for mobile app
Also, I want to build notifications system "when the user does something he will get pop up notification"
and that is the problem.
I searched a lot about this but I found nothing.
for Laravel, I can use Pusher and it's pretty easy.
but I didn't found anything to integrate it to flutter.
NOTE:
I'm beginner at flutter. But i'm good at laravel.
UPDATE
it's okey if there is any other method to do this
For flutter there is package called flutter_local_notifications,
link: https://pub.dev/packages/flutter_local_notifications
also there is pusher package
https://pub.dev/packages/pusher
so you can use these 2 together, so when a user trigger an event with API, a listener will send notification to pusher, so the other user would listen to it using pusher package.
At this moment you got the notification on your mobile using pusher package, only then you can trigger local notification using the other package instantly.

How to Receive Push Notification on website using Parse JS SDK?

I have configured push notifications on Parse-Server & in Android app. But I am not able receive push notifications in a website using Parse JS SDK. They don't provide any method to subscribe for push notifications in ther JS APIs. There Documentation (JS) only talks about subscribing to mobile devices not browsers.
SUBSCRIBING TO CHANNELS
The JavaScript SDK does not currently support subscribing iOS and Android devices for pushes. Take a look at the iOS, Android or REST Push guide using the platform toggle at the top.
So, I concluded that web browsers can't subscribe just by using Parse JS SDK? So, how should I subscribe & receive Push notifications on a web browser from Parse Backend?
Update:
I haven't test but If I use ServiceWorker to get subscription & subscribe user to some channel, can I use the default Parse Class Installation for saving subscription & then use that (web) Installation in Cloud Code to send Push?
Parse-Server only supports iOS and Android push notifications. It doesn't even handle web sessions conveniently. There are no Installations for web, because you don't install things for web. There are Sessions, but those don't do anything for Push.
I have tested it and got achieved desired results via following. As Jake said, for web there are no Installations in Parse. So, in order to receive push notifications on the web, you have to
Register a Service worker to get pushSubscription and hande push, click events etc.
Save pushSubscription to server. It will be used to send pushes to Web.
Integrate Push notifications on Parse-Server (FCM etc) or web-push if you want.
Send push via Client SDK or Cloud Code, it must be received.
Further, the Installation class cannot be used for web pushes.

Looking for an azure service to manage web push notifications

I'm implementing a notifications feature in an html5 web app I'm working on.
The feature requirements is to receive push notifications (strings) from the server and display them immediately on the user interface (to all clients), without saving them anywhere else.
I'm looking for a managed service on Azure cloud that allows send/onMessage functionalities very similar to WebSockets, that can be accessed directly by the browser.
I've tried using event-hubs, but that solution requires a node.js/SignalR wrapper which I can't use for this specific feature.
Thanks in advance!
It sounds like you want to implement a real-time notification feature for HTML5 App without any middleware like WebApp in Node/SignalR to connect a message queue like EventHubs. However, there seems to be not any solution for the needs without any backend services as HTTP middleware for browser if using EventHubs or other services like PubSub in Redis.
Per my experience, a only available solution is that using pouchdb within browser to synchronize with CouchDb on Azure to implement a PubSub service as notification service.
There is a opensource project on GitHub which you can refer to, please move to https://github.com/MattCollins84/couch-pubsub.
Hope it helps. Any concern, please feel free to let me know.
Chrome M52 and beyond started supporting the VAPID protocol, refer to https://chromestatus.com/feature/5573539073622016.
It seems that Azure does not yet provide VAPID support. As an alternative you can look into Firebase Cloud Messaging (FCM) which you can connect with Azure Notification Hub.
More on Firebase Cloud Messaging and web push html client: https://firebase.google.com/docs/cloud-messaging/js/client
More on Azure Notification Hub and connecting it with FCM:
https://learn.microsoft.com/en-us/azure/notification-hubs/notification-hubs-android-push-notification-google-fcm-get-started
VAPID stands for: Voluntary Application server Identification for web Push. Refer to https://datatracker.ietf.org/doc/html/rfc8292

Meteor - Facebook Graph Api

I am creating a meteor app. I successfully implemented the facebook login but now the last feature I should implement is to create a chat (involving facebook messenger) between the page(admin) and the user. It should happen through the app. Could I do that with meteor or I should use javascript. The second question, if it is not possible with meteor is how to initialize the messenger conversation, if I by using the facebook user Id which I already know from the registration. I know that there are a lot of discussions about the graph-api but I could not find anything which includes meteor.
You can utilize in app deep linking to direct a user to the messenger.
fb-messenger://user/%s
the %s represents the user-id of the user who will receive the message!
Android as well as iOS will handle these requests properly.

Categories

Resources