Picasa with how to know album id and user id? - api

I have got picasa hot-link like this.
https://redirector.googlevideo.com/videoplayback?requiressl=yes&shardbypass=yes&cmbypass=yes&id=ddd4d19a3f2920752&itag=18&source=picasa&cmo=secure_transport%3Dyes&ip=0.0.0.0&ipbits=0&expire=1411973660&sparams=requiressl,shardbypass,cmbypass,id,itag,source,ip,ipbits,expire&signature=A4C2BADEBFC590D4DEF3349AE2F849B91F1CF0FE.9797B66270D813953D04F061BE68B963F03528FD&key=lh1
and I have an expire date !
expire=1411973660
and when I convert to time is that expire on
Mon, 29 Sep 2014 06:54:20 GMT
That mean at 30 Sep 2014 I can't view the video with this hot-link right?
So question is how can I find the real userid albumid from the picasa id like
id=ddd4d19a3f2920752
or is there have a way to create a new expire date?
Thanks you for help.

Related

Profit and Loss Raw time series data for a specified period with Xero APIs

I want to get the raw time series data for all the charts for Profit and Loss and Balance Sheet. I went through the API documentation and could only find report/summary data for P&L and BS. Is there a way I can fetch all the data for all the charts/categories.
For example: If I request the ProfitAndLoss data then I should get the data shown below in json format.
https://api.xero.com/api.xro/2.0/Reports/ProfitAndLoss?fromDate=2020-08-01&toDate=2021-07-31&periods=11&timeframe=MONTH
should return JSON that gets what you want.
From Xero ProfitAndLoss endpoint docs
Edit to modify API query:
Should be:
https://api.xero.com/api.xro/2.0/Reports/ProfitAndLoss?fromDate=2021-08-01&toDate=2021-08-31&periods=11&timeframe=MONTH
Xero has quirky way to retrieve data. The modified query basically says get Aug 2021 and compare it to the previous 11 monthly periods eg all the way back to Sep 2020. This is the way the Xero UI reporting works too. The result is a table with columns for Aug 2021, Jul 2021, Jun 2021, May 2021, Apr 2021, Mar 2021, Feb 2021, Jan 2021, Dec 2020, Nov 2020, Oct 2020, Sep 2020, and rows for each account values by month.
Also note that you should choose a month with 31 days as the first month to compare to, else another Xero quirk will truncate all compared periods to how ever many days your start month has eg 30 days if you choose Sep to start.
The first query retrieves a not quite cumulative, read forward result, which to my mind is not useful at all.

Bigcommerce Product API update preorder_release_date

What is the proper syntax for updating a product's pre-order release date through the API?
I've tried it this way:
{"preorder_release_date":"Wed, 05 Oct 2016 05:00:00 +0000"}
And while that passes through validation, all it ends up doing is clearing out whatever value was formerly in the field without actually setting it to the correct date.

Getting time of tweet

I want to use twitter data for temporal database, but I need the time that the tweet was created.
CreatedAt() only giving the details of account creation date.
Is there any API for getting tweet's time?
You might want to look at created_at. See the twitter dev page:
created_at
String
UTC time when this Tweet was created.
Example:
"created_at":"Wed Aug 27 13:08:45 +0000 2008"

Jawbone API results not as expected

I am querying Jawbone API for up with following HTTP request :
https://jawbone.com/nudge/api/v.1.0/users/#me/moves?start_time=1368392836&end_time=1399928836
I started using UP24 in March, 2014 and with above request, I get data for March and April (till April 18, 2014) but not after that. The data is continuously synced with the app by my UP24 device which I can also see on the app. I am not sure why I am not getting data after April 18, 2014.
The epoch start time stamp corresponds to Sun, 12 May 2013 21:07:16 GMT
The epoch end time stamp corresponds to Mon, 12 May 2014 21:07:16 GMT
The results are paginated and the next link is supplied at end of each response to get the next data

Timezone-affected rails 3 app

UPDATE:
Copied from comment made below:
I thought about using a web service against IP address for each visitor to the site but then I wondered about users looking at meetings in locations that span timezones so the timezone has to be associated with the location of the meeting being viewed, not where the user themselves are at that moment in time. I need a user to be able to see a list of meetings (with times and locations) and the times shown are the actual meeting times but the WHERE clause of the SELECT to list the meetings needs to take into account the timezone of each meeting location.
I've looked around and there are plenty of questions asked about using timezones with a rails app.
The issue lies in the fact that the app needs to know which timezone a user is in for it to properly be able to run queries against the database to check for datetimes in the future, for instance.
I don't want regular visitors to my site to need to login for it to work correctly for them so I'm thinking along the following lines:
Admin users login to post an item for a particular location and datetime
When saving the item it uses the [lat,lng] of the location to call the Timezone gem to capture the timezone for the location
I think I need this timezone to be added to an extra field on the same model as the [lat,lng] and the datetime (which rails saves as UTC) ( https://stackoverflow.com/a/2533323 )
I need my model to combine the UTC datetime with its respective timezone so that when a regular user comes to the site the webpage selects items where the UTC+timezone datetimes are in the future
Does that sound possible/correct?
If it sounds confusing just say in a comment and I'll try to reword it a bit better if I can.
Can someone offer any code for the model to create a virtual attribute (I think) that combines UTC datetime with a timezone field?
Thanks
Won't it be better to have the list of countries and their timezones? When user comes to site determine from what country he is and than trying to use native rails timezone methods.
For example I have User and Table models that have created_at params:
Time.zone => (GMT+00:00) UTC
User.last.created_at => Mon, 25 Jun 2012 21:17:25 UTC +00:00
Table.last.created_at => Mon, 16 Jul 2012 14:08:17 UTC +00:00
Time.zone = 'Moscow' => "Moscow"
Time.zone => (GMT+04:00) Moscow
User.last.created_at => Tue, 26 Jun 2012 01:17:25 MSK +04:00
Table.last.created_at => Mon, 16 Jul 2012 18:08:17 MSK +04:00
How to determine the country you should look for gems or some services. I think it will be the service that determine the user country by his IP address.