How to use alexa Alexa Voice Service in an Android App Like Amazon Shopping App - amazon

Can anyone explain how to integrate alexa in my app just like amazon shopping app have integrated so that i can use my custom skill

You must use the Alexa Voice Service (AVS) API from your Android app to achieve that. This is a sample project that directly accesses the AVS API from Android: https://github.com/willblaschko/AlexaAndroid

Related

Implementing Spotify Web API into my Android App

I am trying to access music information such as playlists, songs, artists, etc. from Spotify's API but do not know how to go about it. I was reading into Spotify's Android SDK but it requires the Spotify app to be downloaded on the device.
Would it be possible to access Spotify's Web API from my Android App? If so, what would I need to import/add to my project and what language will I need to know.
I'm just looking for some direction so any information would be appreciated.
Thanks
If you want to use the Spotify Web API specifically, you can authorize your custom app following this guide.
Not knowing about your Android knowledge, I suggest being familiar with the basic principles that can be learned here before starting the development of your app.

Using Azure Bot Service with non-Channel-Configurable Chat Service

When I create a bot in Slack, I can use channel configuration on Azure Bot Service to receive event/message from Slack and communicate with my Web App Bot which handles various functions.
However, when I create a bot in a chat service which is not supported in channel configuration (e.g., Discord), I need to set up a client in my Web App Bot (e.g., Discord.Net) to communicate with the service.
Then, although I guess the Direct Line channel (REST API) will handle communication between the Web App Bot and Bot Service, but am not sure if it's correct. Is my assumption right?
Also, it is not clear for me if there's an advantage of using Bot Service in this situation, because simply I may host an individual web app on Azure or another location and let it communicate with the chat service. Why do I need to add one more service to handle?
I suppose that one possible advantage could be that I can easily access various features (e.g., LUIS) via the Bot Service. Also, the bot can handle various platform like Skype or Cortana with one code.
But still I don't really understand this topic. Could anyone give me a suggestion and best practice?
Below is my current understanding, it could be wrong though.
Directline API isn't the easiest to work with, and making a Bot Framework bot work with Discord is going to take a good amount of work. But the purpose of the Directline is to be the connection between your bot (Azure Bot Service/Web App Bot) and Discord. To use the Directline API, you're going to:
1) Get your directline secret by registering your bot on Azure (Azure Bot Services)
2) Create your directline object, using above secret (this is the line of communication between ABS and Discord)
3) Use your directline object to POST activities to the bot from the user and Listen for activities from the bot
4) Additional purposes not related to conversation: your directline object will monitor connection status of your websockets, and keep the token refreshed for the conversations
The Directline-js repo has a good README and code samples, but bear in mind that the framework is constantly being improved. As of this writing, there are 8 pull requests waiting for review for the repo.
The AI Help Website wrote a preview back in July 2018 (before the release of v4) on how to use the Directline API with C#
And finally, the official documentation for the Directline API is here
As for connecting your bot with Discord, the Discord API reference has instructions on how to get your authorization token here.

Which Google Oauth 2.0 Client ID type choose for cordova hybrid mobile apps?

I am developing cordova based hybrid mobile apps targeted for android and iOS smartphones.
Usecase: The application authenticate user and then would be accessing Google Calendar API's, and finally display user events on the app.
Note: I will be Using 3-legged OAuth and Google Data APIs without the client libraries.
Question
The Cordova-enabled WebView provides the application with its entire user interface, so what should be the application type in this case?
Since everything is going inside webview, so Shall I choose "Web Application"?
OR
Do I need to create seperate Applications type for Android and iOS
seperately?
Or can iOS Application Type work for both Android and iOS?
Please suggest what should be the proper approach to choose application type in this case.
Thanks!
It depends on how your app is setup. If you plan on handling all of the OAUTH processing on a backend server then you can use the Web application type, and you can have all the OAUTH work offloaded to the backend server.
If you do not have a backend server and will do all OAUTH processing on the user's device, then you should create both an iOS and Android client ID. For example:
https://github.com/EddyVerbruggen/cordova-plugin-googleplus
This plugin's documentation shows the creation of both an iOS and Android client ID to enable Google Sign In on a Cordova app.

How is BotFramework Emulator talking to locally hosted bot without BotConnector registration?

As far as I understand, the Emulator is using the DirectLine API to talk to the locally hosted bot, i.e. with http://localhost:3978/api/messages.
How is this possible? To use DirectLine API one needs to
register its bot in the BotConnector
provide the Messaging endpoint
enable DirectLine API and generate DirectLine API secret
The emulator fulfills only the messaging endpoint requirement (http://localhost:3978/api/messages) but still it works perfectly. Why do other channels require BotConnector registration?
So, based on the podcast linked in the GitHub issue provided by #Ezequiel Jadib, the emulator is emulating BotConnector services and as such can directly communicate to the locally hosted bot.
Dan Driscoll explains it would be possible to avoid DiretLine API and talk directly to the bot, though this would mean operating outside the BotFramework ecosystem and you would need your way to deal with security (and probably other things as well)

How to configure Node.js v3 bot on directline in a web app?

I built my bot using Node.js. It is working fine on web chat and Skype.
Now I want to use direct line to communicate my web app with my bot. I am confused on how I can maintain the URL in my node.js app.
I am trying something like that:
https://directline.botframework.com/api/conversations/abc123/how%20are%20you/BotConnector/NsNT2RG8oNA.cwA.Emk.8yB_FdFCy18b4iTcxBscDRxQVAB
Here you will find a DirectLine Node.js sample that implements a client to talk with a Node.js bot.
Remember that you also need to enable DirectLine in the Bot Developer portal in order to get the DirectLine credentials.

Resources