Dailymotion API - set publication date and end date of video - upload

is there any possibility to set the release date and the end date of a video?
I cannot find any request to do this (start_date and end_date is not what I am searching for, because it is only for live-streams).
I know that it is possible to set those two parameters when you are accepted as official.
http://s14.directupload.net/images/141029/3msfkrvc.png
I want to set the three values in the second box which is possible if the video is marked as private and the account is official. Is it possible to set those values with a normal Request (e. g. something like https://api.dailymotion.com/video/VIDEOID?private=1&publication_start=...) or was this not implemented?

I mailed a bit with their support.
It is currently not possible / only possible for few people with special contracts but there is a chance that they will implement it soon.

Related

Swift In App Subscription How to check active status?

This question might have been asked but I did not find a good solution for me.
So: If I want to check if a user is subscribed in my app for a week or month, is there a specific value that says "active" true / false OR do I have to calculate it in code by checking the current timestamp with the start of subscription?
Like: `currentDate - dateSubscribed = daysRemaining
I saw codesampes but I could not determine it from the samples.
Almost. You should check against the expiration_date field and compare that against the current date.
Ideally, you compare the date against a server time instead of the device time which the user can easily change.
If you want a deeper read of checking subscription status for users check out: iOS Subscriptions are Hard

Is there a site that allows timezone conversion on a given date easily by URL

I am looking for a timezone converter site which accepts arguments of a time, city, and date on the command line and opens up a page showing the equivalent time/date in my current locale. (Needing to specify my current locale would be acceptable.) I do need it to be a little smart about searching for the cities - I don't want to have to enter an exact timezone syntax but rather a substring which results in a unique search.
Unfortunately spending money is not an option - I've got to find a free service.
More detail:
I use DTRT extensively and would love to be able to do an instant time zone conversion straight from my address bar.
I would like to type this:
3pm Dallas 2015-03-20
and get a page telling me what time that will be in my current location (and perhaps in certain other locations I would set up).
The DTRT is designed to simply convert the query string in the URL to a different URL so I'm looking for a site that might accept GET parameters like this in the URL. I've done quite a bit of googling, but so far everything I have found either (1) requires me to go through their interface to convert the cities to codes or (2) doesn't do GET parameters at all.
Any time zone converters you know that do this? The closest I've found is this and it uses those codes...
Here is another option which works just by naming the city in the URL, but it has no capability of doing it for another date. When I am setting up meetings when one city changes to DST one week and another city 3 weeks later I absolutely have to have the date capability.
Have you tried wolfram alpha?
https://www.wolframalpha.com/input/?i=3pm+Dallas+2015-03-20

Need a specific operation to be performed on Fogbugz api

I need to get some very specific information from the FogBugz API. Although I can spend time with the API documentation but I was just wondering if folks here had experience with it and might offer some help.
I need this information - for a given date range and a given person I want to know how much time he spent on the tickets.
So, we use the 'working on' feature a lot and I think we can get this info using this feature somehow. Not sure.
So what command/query should I be looking at?
Any suggestions/pointers would be helpful!
Thanks a bunch!
The FogBugz XML API can get you what you're looking for via the listIntervals command in the Time Tracking section:
cmd=listIntervals - returns all TimeIntervals for a user. Any of the optional arguments serve to filter the results.
Arguments
ixPerson (optional) - Specifies which user's intervals should be returned. If omitted, list intervals for the logged on user. If set
to 1, list intervals for all users. Note that you must be an
administrator to see time interval information for users other than
the logged on user.
ixBug (optional) - Specifies that only intervals associated with this bug should be returned.
dtStart, dtEnd (optional) - If dtStart and/or dtEnd are supplied, listIntervals will return intervals whose start date falls
between dtStart and dtEnd.
So the query you'd be using would look something like this:
[your FogBugz url]/api.asp?token=[your XML API token]&cmd=listIntervals&ixPerson=[ixPerson you're interested in]&dtStart=[start date]&dtEnd=[end date]
For future reference, there is a FogBugz-specific Q&A site: http://fogbugz.stackexchange.com

time_start scope time_end helper

hi im new in ruby on rails
here is my scenario i have two timers time_star and time_end
im just wondering if there is a validator or helper that will change the time of the end time based on the time of the start time in order not to get a negative value upon getting the difference of the two time it is yes possible in jquery but i want to know if rails can also do this
example if i choose 1pm on time_start then time_end will only show 2pm onwards
im also researching it now im just hopping there may be many possible answer here
You can use two different approaches to achieve different goals.
You can write custom validator to prevent time_end that lower than time_start to be stored to the database. Or you can pay attention on standart numericality validator, maybe it will be enough for you.
You can write some helpers, JS or other view related code to allow user choose time_end value only greater than time_start in the html widget.
In my opinion, it's quite a specific task and unlikely you will find something in rails for it, but it can be realized in a few lines of code according to your wishes.

Find WorkItems that were assigned to X in the last 30 days

I'm trying to find all WorkItems that were assigned to a person X in the last 30 days.
The big problem I have is the "in the last 30 days"-part.
I thought about using the "ever" or "asof" keywords, but couldn't find a good answer yet.. something like WHERE [Assigned To] = 'X' AND (([Assigned To] != 'X') asof '<30daysago>').
But this is still not a bulletproof solution.
Any better ideas?
Thanks & kind regards
Simon
It appears that this is not possible using just WIQL, but you can get close.
The keyword #Today will give you today's date, then just subtract your range from it. The EVER keyword applied to [Status]='AssignedTo' and a comparison against a date 30 days in the past to [StateChangeDate] is what you'll need to accomplish this.
As close as you can get with WIQL and existing fields:
This says, from all revisions (status changes) return records where the user 'X' has ever been AssignedTo and the State has changed in the last 30 days. This will basically give you a slightly fuzzy picture of what your User has been working on in the last month.
WHERE [Microsoft.VSTS.Common.StateChangeDate] >= #today - 30
AND [System.AssignedTo] EVER 'Bennett Aaron'
ORDER BY [System.State]
Add the missing field:
You could add a custom field called AssignedDate that is captured during the New->AssignedTo workflow transition that you create in the Work Item Definition XML. You can accomplish this using the Team Foundation Server Power Tools extension to Visual Studio. This would give you exactly what you need as well as additional reporting options going forward.
TFS API
I cannot help you with this one, but I believe you could query using the TFS API.
A couple of quick gotchas I've experienced to save you time on ASOF and EVER:
AsOf won't help you by itself with this as it does not support a range of dates. It allows you to query as if it were another date. In other words, if you forgot to capture the results of a query yesterday, you can use an AsOf query to get the results that you would have gotten had it run yesterday. What I understand is that you want to query a basic date range.
EVER might not work as you expect against dates as I believe it uses the exact value of the field (timestamp portion of the date field would be included) it tests with. Just make sure the EVER keyword is used against the status field rather than a date.

Resources