I'm building a voice activated AI system for my home. A la Echo, I want to be able to start streaming music on my android host when I say "play some rock". I can handle the ai part, but I need a web API endpoint to start streaming music.
Here's Web API Endpoint Reference. This Web API endpoints gives external applications access to Spotify catalog and user data. And some Web API Code Examples & Libraries and here's Working With Playlists.
Also have a look at this. This repo is a Go wrapper for working with Spotify's Web API which aims to support every task listed in the Web API Endpoint Reference.
Hope this helps!
The Mopidy music server can stream music from spotify and offers lots of API options for clients.
Related
How to play song through spotify web api.
I have build my website using spotify web api node, a library for spotify api.
But I am not able to figure out how to play songs using that library.
I know that i need to use the SDK, but I am not able to figure out how to implement the SDK, I have tried reading the documentation of Spoitfy, but still no progress.
I am new to this, so I don't have much idea. Can someone please explain me how to make it work, or show an example.
You can find an example of how to authenticate, connect and play songs via the Web Playback SDK in this Glitch
The Web Playback SDK is client-side JavaScript library which allows you to create a new player in Spotify Connect and play any audio track from Spotify in the browser.
I have recently strated learning about Alexa skills. I was wondering if we could access different websites using alexa. For example, "Alexa, show me my facebook notifications"
So far I have seen examples of how we can create WebAPIs using Amazon API Gateway. But can we access a different website or a blog with GET or POST method that is not using Amazon API Gateway.
Also, what authorizations will be needed to do this?
For example, "Alexa, show me my facebook notifications"
Yes, it is possible to have that kind of functionality.
Currently, I'm developing with nodejs and use the request-promise module for making HTTP request to my server.
Also, there is a nice tutorial using the request npm module.
For testing/debugging purposes, I would create a web app that emulates the functionality of one of the 3rd party actors in our system. It should be able to publish and subscribe to messages sent on the AWS SNS service.
I was planning to make a ReactJS web app that calls an API made in AWS Lambda. Sending messages should be fine, with some buttons in the app, calling a Lambda that publishes SNS messages to a topic.
But what about monitoring the messages sent to the relevant topics that I want to watch? I was thinking about using a websocket that could receive messages. I know I can trigger a Lambda with SNS messages, but how do I make the lambda deliver these messages to the websocket? is that possible at all without having a permanent server session running? Should I combine with other things in the AWS toolbox?
When I originally wrote this answer websocket support for Lambda was not available, but it is now: https://aws.amazon.com/blogs/compute/announcing-websocket-apis-in-amazon-api-gateway/
I was also looking for exact same thing but unfortunately aws sns doesn't have websocket support.
But I came across a very interesting blog. So what he has done is using AWS IoT which supports websockets and pub-sub. You can take a look here
Edit :
AWS API Gateway gives the functionality to manage Websockets in serverless way. Here is a quick starter guide API Gateway Websockets
I have a little background with Google Cloud Endpoints on App Engine and the Web Application, iOS and Android Client Id's. However we are now building a custom piece of hardware. It will be a gateway that is connected directly to a modem, accepts some data from various sources (sensors) and relays that information to App Engine.
Since this is not a web application, nor a iOS or Android app, would I use the "other" client ID option in the Credentials for my GCE project? And if so, could someone explain how to communicate with this "other" client id to a generic cloud endpoint address (a curl command would be great since I could follow that easily).
Thanks for any help!!
I have an AppEngine application which uses Google Accounts as authentication. What is the approach or idea on seeing if someone is online or using the application? And able to chat to online users.
Thanks.
The official way to implement chat on App Engine is using the Channel API. However, the quotas are strange, and it's fairly expensive at $0.01/100 connections.
I would recommend using a hosted web socket service like Pusher, or running your own nodejs server on another host.
You can use the XMPP API to get users status, and send them messages that appear in Google Chat.
https://developers.google.com/appengine/docs/python/xmpp/