How to use Web USB API in Odoo? - odoo

I found this Web USB API and I think I want to try it in Odoo by implementing it in a button on click in a form.
How to achieve such task in Odoo?

Related

RingCentral two way communication

I am building a React Native application for calling using RingCentral APIs.First of all I tried using the webphone RTC via web browser: https://github.com/ringcentral/ringcentral-web-phone. It works perfectly fine in web browsers. But the thing I need is to call via react-native application I am building.
I tried calling via RingCentral using 'ring out call' POST API and 'call control- make callout' post api(beta version).But the problem i am facing is when i integrate these apis to react-native applications : To have a two way communication I need to be online in the web phone .Then when i call from react native it goes to the web phone first.And then when I dial 'answer' it redirects to the number i want to call to.Then only I can have a two-way communication.
So, what do I do if I want to directly call via react-native application to the recipient directly?
P.s. If I am not online in the web phone from browser the call automatically goes to the voicemail.
So hard to understand your question from the title and the detailed description.
I guessed that you want to implement a functional phone using react native where you want to use the RingCentral WebRTC SDK to handle incoming and outgoing phone calls.
First of all, please mind the browser compatibility supported by the WebPhone SDK. Secondly, it is not trivial and I cannot support you on the react-native part. However, RingCentral provides an easy way to embed a RingCentral embeddable phone to any webpage and that app is an open source project. You can use the embeddable as such or clone the project and learn from the code or modify it to meet your requirements.
Click on the links above to find further information.

how to make a call using SIP protocol or WebRTC technology in React-Native?

Considering the development of an application in React-Native or Flutter that allows the user to click a button and make a call (that goes through service like Twilio) and this redirects it by calling to another person.
I've been looking for examples with SIP or WebRTC integration but hasn't found a lot of guides so far.
is it possible to develop something like that?

Create external link to BIM360 document

I am researching to see if this is possible. I am new to the Forge API and Revit/Bim360 in general so my apologies if I am not using the correct terminology. I have successfully made API calls using Postman to BIM360 to pull back project information.
What I would like to do is construct a URL from within our ERP application that passes the external project id and the sheet name into a web application and to have that web application take the user to the bim360 markup viewer of that item.
So user would be looking at a work order in our manufacturing system, click the link for "View Production Ticket" and a screen would pop up, ask the user to login to BIM360 if they haven't already, and open the bim360 viewer.
To do so, I would like to advise you to integrate the following Forge APIs instead in your ERP system, not embed BIM360 to the ERP system directly:
Forge OAuth API to fetch 3 legged-token with user login (their Autodesk account)
Forge Data Management API to obtain hubs, project, items, version, and derivative file links of the model file of your BIM360 account.
View your model (derivative urn) via Forge Viewer
Here is a tutorial for you http://learnforge.autodesk.io/ and hope it helps!

Create custom chat control for bot framework

I'm using Microsoft Bot emulator to test or debug the chat API developed via Bot framework.
Now, i'm going to host the service in my IIS server, but i would like to know how to write client application to this?. We cant use emulator in realtime, we need to provide user a chat window & enter button.
I'm not getting any example projects on how to create chat window for bot API. Is there a way to do it?
Have you registered your bot on Microsoft Bot Framework website yet?
When you are done with this process, there are plenty of channels (Facebook,Skype, etc.) to use in order to talk to your bot. One of them is a simple web client.
How to register a bot: Register a bot
How to connect your bot to channels: Connect a bot to channels
If you would like a custom chat control please see the WebChat control. It is an open source project you can customize and modify to suit your needs. You can embed it anywhere you like.

How to display external API Oauth Dialog for Google Sheets AddOn

I'm playing around with building an app to integrate a 3rd party API into google sheets using app script and the new AddOn API's for google docs. I've got the Oauth2.0 flow working by adapting this code here. This works, but I don't want this app to be a standalone web app - I just want to add another menu with a few select functions - one of which will be authenticate to the spreadsheet. I have this working in parts (1. new menu with authenticate button that runs a function when clicked. 2. Url that starts Oauth process when I hit that specific URL in a another window), I just am not sure how to connect them.
My problem is that I'm not sure how to display the 3rd party API's Oauth dialog in a way that is integrated with Google Docs. I've tried loading it into a sidebar, but that doesn't seem to be working. Is there a way to open a 3rd party Oauth2.0 dialog with app script?
This is my first interaction with app script but It'e been pretty easy and painless so far. I'm just wondering what the best way to approach this problem would be.
Thanks!
There is no built-in way to do a 3rd party OAuth2 flow using Google Apps Script. However it is possible to write an OAuth2 flow on top of Apps Script, and this library is one such implementation:
https://github.com/googlesamples/apps-script-oauth2