I have a nodejs based application that I'm running on azure. It's basically a CRUD app for video files. I'm currently able to upload and create jobs with Azure Media Services via the REST api (https://app-name.restv2.westus2-2.media.azure.net/api/Jobs). However I am unable to get any job status or resulting metadata. Ideally I will create a thumbnail and then send the assetID back to my servers along with the sources metadata and from there I can determine which other output types I'd like to create.
I've attempted setting up an Event Subscription via a webhook endpoint in the "Events" blade of my instance of media services on the azure portal website. The way I understand it I should be getting https POST requests whenever there is a status update?
I know that I need to validate the endpoint as per the instructions here: https://learn.microsoft.com/en-us/azure/event-grid/security-authentication#validation-details
And have done so successfully.
Am I missing something? I can see and successfully log the initial validation query from Events but never get another event of any type.
Any info you can toss my way is MUCH appreciated.
If you want to use webhooks, please follow the steps in this document. The Event (Grid) notifications work only with our v3 APIs which are currently in preview. And in v3, we have not completed the work to return Job details - you would only get notified of the final state of the Job.
Related
Ive been trying to create a form where users can provide a name and location then create a tracker, to be used alongside Location Services Maps. I fee like i am close but am not sure why its not working nor rendering.
A few initial thoughts based on the code snippet you shared:
I don't know enough about your use case, you wouldn't need to have more than one tracker per asset type when tracking moving objects. If that's the case for you, create trackers using AWS CLI or AWS Console.
If you'd like to create trackers using the JavaScript SDK, first, you need to authenticate your request. See Prerequisites for using Amazon Location Service and Geofencing and Tracking to get more information.
Check your input parameters (params) against the CreateTracker API requirements and make sure you're using the right parameters and passing the right values.
Check your browser's console and post the errors you're getting here to help me better understand the issue.
Note that createTracker creates a new tracker that does not have any data - this means that there is nothing to render yet. To track your assets, you'll need to send position updates to the tracker. See Start Tracking for an example.
Share a bit more about your use case, i.e., what is it you're trying to do. That'll help me better understand the problem.
UPDATE: here is what I'd do for your use case:
Create a tracker using AWS Console or AWS CLI.
Use AWS Amplify to push position updates to the tracker when building iOS or Android apps.
Use AWS IoT Core to send position updates to the tracker when building something else like a web app. See Tracking using MQTT with Amazon Location Service for an example. I'd consider AWS Amplify PubSub to send/receive messages to AWS IoT Core when building on the web.
Send metadata like the name of the food truck, food type, etc. along with position updates using PositionProperties - see Update your tracker with a device position. This would help me attach more information for data visualization or analysis purposes.
Hope this helps.
I created a Chrome extension which is just HTML/CSS/JavaScript. When the user clicks on a button, I have it send a message to me. But the problem is I don't want to include any API keys or server information where the app can POST to as it can be used for abuse if someone was to extract this information from my Chrome app. Is there a method of getting a response from a web app with a public service where anyone can post to? I was thinking pastebin, but even that requires an API key.
You could ask the user to create their own key. For example, many GitHub extensions require an API key to make requests to the GitHub API, so what they do is they send you to a GitHub settings page where you can create a personal API key.
I'm creating a app that has a database of users who stream there computer game play from YouTube, is there a way to get a notification from YouTube API that will tell me when the gamer is live so I can randomly broadcast each live video for 2 minutes each?
I think it requires a websocket connection with your api endpoint by using ws:// protocole at some point. Websocket listen to a server, and enable your browser to handle it's changes like events. So it's exacly what u need for notifications.
In RoR 5 you can do it using ActionCable.
I've used Rails 5's ActionCable to handle notifications. But sinds I've only used it to listening to changes inside the server of my own Rails app's and not an API endpoint so I won't be able to give you a step by step guide.
You should checkout how to make an action cable connection with an API end point.
Here is a documentaion that might help u out:
RoR doc on ActionCable
MDN docs on Websocket
The way you looking for is YouTube Live Streaming API.
the documentation of the API can be read from this link
It appears the GET https://www.googleapis.com/youtube/v3/liveBroadcasts endpoint is what you want.
Returns a list of YouTube broadcasts that match the API request parameters.
However, getting a notification will require some work. It will probably require polling the endpoint for changes to determine if a new broadcast has been started. I'm not aware of a PUSH API from YouTube to send a request to an endpoint of your choice to create a notification.
More info in the Youtube docs.
I'm working on a co-project for college for my final year and am making a data visualization web app using stocks. I'm hoping to use PubNub to stream my data but have been reading through the documentation on how to hook up an external API in javascript for the data such as yahoo finance or openexchangerate.org. Maybe I'm just being clueless but I cant see it anywhere but is there anyway to do it? and if so being pointed in the right direction to an example or documentation on it would be much appreciated.
PubNub Data Feed Use Case
High level steps to implement this:
get the data from the data feed service (not PubNub) on your server. You will need to register for an account for that service (Twitter feed, stock price feed, Wikipedia changes, etc).
publish that data to channels of your choosing using PubNub.
your client apps will subscribe to those channels via a UI that you create for them.
See PubNub Realtime Data Streams Examples for more details.
Let me know where you get stuck and need more details.
We're developing an application, based on the open graph API. In our application the user will read news and after 15 seconds of reading an action will appear on the reader's wall.
I need a way, using the open graph API, to get the last actions, posted on the reader's wall. I need it in order to give the users the ability to delete those actions. I found in the facebook documentation how to delete an action, using the action's id.
However I could not find how to get the latest actions ids that came from my App.
Is there a way to get them or I must store them on my server after a successful action post?
P.S I am using the javascript API.
Just issue a GET request to the API asking for /userid/app_namespace:action_name, and it will return the actions of that type published for that user.