Get date of a live event using the Vimeo API - vimeo

I have a project that involves live events which are hosted using Vimeo.
I know we can grab the videos on Vimeo along with their details using:
$response = $vimeo->request('/me/videos', array('name' => 'video_name'), 'GET');
This works great and returns all our videos, both videos and future events.
However, I can not find the date that the event is set to take place within the payload returned by Vimeo. It returns the following dates, none of which is the date the event will take place (which is 3 months from now):
"created_time" => "2019-12-10T11:03:13+00:00"
"modified_time" => "2019-12-10T12:08:11+00:00"
"release_time" => "2019-12-10T11:03:13+00:00"
The date the event is set to take place is included within the iframe that is returned in the payload, however it does not include the year and therefore it is essentially useless for what we need.
I was wondering if anyone with more experience using the Vimeo API would be able to point me in the right direction with this?
Thanks in advance.

The public Vimeo API doesn't currently support Vimeo Live events, so the API won't return any metadata specific to Live events, such as the scheduled broadcast date/time.

Related

Youtube Api As3 getCurrentTime

I am using the Youtube Api for AS3 and i used the function player.getCurrentTime so that I can get the current time of the video. I have been running into this error https://code.google.com/p/gdata-issues/issues/detail?id=6215 and I really need to get this fixed is there any solutions to this problem or a way around it. I am just trying to save the current video progress to a variable and access that variable later here is my code used for this function
mis_player = new my_players(vidSource, mis_players.my_play.getCurrentTime());
and here is the code used for using the var both work fine at first then display the second value as the end of the video
my_play.seekTo(currTime1)
I figured it out, by sending the variable through the function I was able to pass the variable through to the function.

Vimeo API Delete a video

I'm a little bit confused how to delete a video with the new API from Vimeo. I'm succeeded to create an application that uploads with the post function $vimeo->request().
But I have no clue how to delete a video.
The Vimeo API Docs are good but I need some example or a hint. I'm developing in PHP right now so if someone could help me it would be awesome.
To delete a video, you need the Video URI (It will look something like /videos/12345).
Then you make an authenticated DELETE request against that URI. In the PHP library, it would look like this:
$vimeo = new Vimeo(YOUR_APPLICATION_ID, YOUR_APPLICATION_SECRET, ACCESS_TOKEN);
$vimeo->request($uri, array(), 'DELETE');

GetOwnedGames from SteamAPI Not Working?

I'm trying to get the hours of TF2 played from Steam profiles for an application I'm developing. I'm not very experienced at manipulating JSON, so I'm not sure if the API is bad or if I'm bad.
According to this: https://developer.valvesoftware.com/wiki/Steam_Web_API#GetOwnedGames_.28v0001.29 I can call include_played_free_games to show TF2. However when I make a web request using this: http://api.steampowered.com/IPlayerService/GetOwnedGames/v1/?key=XXXXXXXXXXXXXXXXXXXXXXX&include_played_free_games=true&format=json&steamid=XXXXXXXXXXXXXXXXXXXXXXX
The request is valid, however TF2, appid 440, doesn't show up. So am I going crazy, or should this be working?
The user has to have played the game at some point for it to be returned when specifying 'include_played_free_games'.
From the API Documentation:
include_played_free_games: By default, free games like Team Fortress 2
are excluded (as technically everyone owns them). If
include_played_free_games is set, they will be returned if the player
has played them at some point. This is the same behavior as the games
list on the Steam Community.
The url requires a numeric value '1' for the parameters and will not work if you use 'true'. The following url worked for me when using my own steam id and web key:
http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key=XXXXXXXXXXXXXXXX&include_played_free_games=1&include_appinfo=1&format=json&steamid=XXXXXXXXXXX

Access token for Facebook Graph API

I've been looking for an exact explanation of how to get and use access tokens for public pages.
I'm trying to list the events for a public page, then grab all the event IDs and make another call to each ID, then send the complete list somewhere (I will handle that, I just need access to the JSON information for each event, which I can't). The following works for me:
https://graph.facebook.com/pages/PAGEID/events?accesstoken=ACCESSTOKEN
And gives me a list of all the events - when, title, where etc. But if I try to do:
https://graph.facebook.com/events/EVENTID/?accesstoken=ACCESSTOKEN
I get an error 100 - why is this? Shouldn't this work? All the events are public, and since fetching the page's events works, it shouldn't be because of a restriction (alcohol, location etc) I assume?
The ID should be used directly after the facebook URL, like:
https://graph.facebook.com/EVENTID?access_token=ACCESSTOKEN

Geolocation implementation in Opera

I'm testing HTML5 geolocation.
I have some weird results in Opera and Opera Mobile.
When I visit the site after some time (for example 25 minutes) after the last visit position timestamp is from some time in the past. But I pass options telling that I want position not older then 5 seconds. After page refresh I get position timestamp close to 'now'. I think it should return position timestamp close to 'now' on every visit.
Example:
First visit: position time stamp 23:23:13
close browser:
return to site at 23:45:20: position timestamp 23:25:21
refresh: position timestamp 23:45:11
Here is my API call:
navigator.geolocation.getCurrentPosition(geoSuccess, geoError, { maximumAge: 5000, timeout: 10000, enableHighAccuracy: true });
You can observe this on azure website I created for test
geotest.apphb.com
Edit:
Few minutes ago I learned that opera:config gives me access to geolocation settings among wich I found Send location request only on change.
When I turn it off geolocation api works as it's supposed to. But I don't understand this setting. What has to change in order to send location request?
With this setting turned on geolocation api gives me location from few hours ago. Even though I'm in different city already.
According to Opera's config website for Windows, the Send location request only on change means the following:
Only send location request if some of the data providers (Wi-Fi, cell, etc) actually changed.
So I am assuming that when you changed cities, you didn't change data providers as mentioned above. If you were to find a Wi-Fi access point or use another technology to access the internet, it would probably send a location request and would be updated.
As the page already loaded, getCurrentPosition assumes that the position you want is the position when the page has been loaded(the users current position on page load).
Use watchPosition to update the position continuously(without page reload).