Live chat on website using QuickBlox API - quickblox

We want to develop website live chat widget using QuickBlox Chaa API.
1) In such widget user need not to login and just start chatting. Can we create one generic user that can be used for all chat sessions ?
2) Second requirement is store chat conversation , is there a way to store chat session there a way to get chat session text. Can we hook into it ?
Please tell us if its possible or not.

1) You have to register on quickblox.com. After that, create your project for an your application. Get tokens and keys to access your application. And you will have one primary user to work with QB and its modules.
2) You do not have to ask the user registration. Just give them names for a chat. If you want to use the source code of the widget ChattAR, just remove the registration code. Allow the user to enter a user name by which he enters.
3) Keep the message history you can in a module "Custom objects". This module is a flexible tool, you can create any number of data fields, and select one for each type of data you need.
Also, you can save any files (text etc.) in "Content" module for getting chat session text.

Related

link my users social media account in my mobile app, allowing native app to open

I've got an app with user profiles. On the users profile, I let them put links to their other social media accounts. I know app linking requires the correct app's schema and I know those schemas depend on the system (iOS, Android). I want the user to be able to just copy the url of their social media profile (http://www.whateversocialmedia.com/userprofile),paste it and save it. I will manipulate the string get the "userprofile" out and put it in the schema. HERE's the problem, Facebook, requires an ID for the schema, but most people don't know how to get their ID, while it's somewhat easy to get, it does require right clicking on a mouse and searching some code to get, Does Facebook have an api I can hit to send a username and get back a user ID? I feel like they would want people to link to their app easily. I've looked all over Graph API

URI/Hyperlink to Bot created using Google Chat API

We would like to add a hyperlink in our intranet which when clicked will open google chat conversation with the specified bot developed using Google Chat API.
When creating a chatbot via https://console.developers.google.com/apis/api/chat.googleapis.com/hangouts-chat?project=xxxxxxxx, the only identifying information about the bot appears to be an App ID (Project Number) and the Bot name.
As of 2020 version of Google Chat, there appears to be no documentation on how to create a direct URI to a user or bot ID) say something like https://chat.google.com/users/XXXXXXXXX where XXXXXXXX is the Bot ID
An inspection of the Google Chat Web Widget (https://chat.google.com) roster/contact list when communicating with the bot suggests that bot identifiers are of the form user/bot/114553095703997684XXX or user/114553095703997684XXX where 114553095703997684XXX is the App Id referenced earlier.
How can we programmatically construct a direct URI to the chat bot given its App ID or Name?
There is currently no method to create a URL that opens a space with a user or bot.
To get a list of spaces you would need to already be part of one.
I would suggest creating a Feature Request if you have not yet. Create an Issue and submit it as a Feature Request.

Project for learning

For my learning project, I want to create an app with:
1.settings menu when I can store 3 values. Email, password, and car number.
1 button ( when I open the app and push that button app connects to a web page, logins with email and password after login it should go to search menu on a website enter their car number and then pushes button "pay" when the car is found.
Basically, this app is for paying for parking with 1 click.
The thing is I have the knowledge to build this simple UI and probably I need some sort of database like SQLite to store the settings but how can I do second part? When I push the button that the app connects to www.parking.com(this is not a real webpage), logins and do other staff...
Can someone give me some pointers, examples of similar apps or links where I can find any related information?
Do I need to create some kind of API to connect to the webpage?
Use expo.io to create the app and to perform authentication. Use fetch or axios to access the web page. Use expo api for firebase to store data.
Here is a link to get you started doing authentication and storing data: https://docs.expo.io/versions/latest/guides/using-firebase/

How to pass user authentication through jitsi-meet external API

I am building chat capability in my web application. I am using jitsi as our chat server. There can be 2-4 user in a video chat session. These session will be locked. Web application will initiate the chat and will control who can join the chat room.
I am trying to embed jitsi meet inside an web page using jitsi-meet
external API listed here
https://github.com/jitsi/jitsi-meet/blob/master/doc/api.md .
Our jitsi-meet is not open to public and protected with XMPP
authentication. How can I pass the authentication information through
jitsi-meet API?
I also want to lock the conference room with password. Does jitsi-meet API
have this option?
I am new to this domain. So if you know a better solution please suggest.
Yes there is:
api.executeCommand('password', 'The Password');
Best way I am using with a php/mysql app is generating a room with a random name (usually complex) from the 1st user (the caller), protecting that room with a password and sending the rest of the users a message through the app so that they can connect to the same room with the first.
This way the first user is the end point and the rest connect to the room the first user made.
You should check the other users are online at the time the room is created. The only parameter is the room name which must at all times be unique. Maybe count participants after you enter. When the last user leaves the room, the room gets destroyed. So the users hold the room.
You can also send a mail instead of an internal message.
You need to add JWT token-based authentication in jitsi then you need to generate JWT token & pass it through Jitsi's external API, in this way:
const options = {
...
jwt: '<jwt_token>',
...
};
const api = new JitsiMeetExternalAPI(domain, options);
for more detail, you should checkout Jitsi's iframe docs

API for "People" contact data

I'm working on a Win8 metro signup flow and would like to be able to seamlessly pull, using the user-provided phone #, a photo and display name from the built-in "People" app. I'm having trouble finding documentation/code outside of ContactPicker (which isn't what I need).
Couple questions:
Is there an API to pull contact data that would be present in the "People" app?
If so, is there a way to configure capabilities to avoid interrupting the user with a modal "Ok for app xyz to access your address book"?
Thanks.
Confirmed that there is no API to pull contacts programmatically.
You can't pull contacts without permission, it's a security feature. You CAN interrogate the contact data users pick via the Contact Picker though.
You therefore have to ask the user to pick contacts relevant to your task, call the single / multiple contact picker then once picked, you can interrogate the contacts as much as you want. They have phone numbers, emails, locations all the data you might want hanging off those.
As far as I can tell, there's no way to maintain a persistent link to them though, so store that data while you can.