Slack API - User details last updated date - slack-api

I am using https://api.slack.com/methods/users.lookupByEmail Slack Web API to get user details. Does the 'updated' property in the response represent the last updated date, if so what format is it in? Or is there any other way to get last updated date of user details/profile.

Yes, updated property in the response represent the last updated date.
It is in epoch time,
you can find more details about epoch time here:
https://www.epochconverter.com/
you can also get the same data by using users.info api method:
https://api.slack.com/methods/users.info

Thank you #Suyash Gaur I tried it and it works. Marking this as the answer.

Related

LAST_TIME_CONTACTED has unexpected value

When I try to get the last time that I contacted some contacts, the results has the value converted to "01/01/1970" but I know the real date and time of the last call (for example, it is 14/02/2016). I noted that in my logs the last saved call is that was at one and half year ago, but the call I try to find was in 2 years ago.
So, am I correct in understanding that after some long time the log loses the older calls and in the contacts2.db the last_time_contacted field updates to incorrect values?
LAST_TIME_CONTACTED is not somehow linked to the call log, it's just a timestamp value that is set on the contact.
01/01/1970 means a value of 0 for that field, i.e. that contact never had its LAST_TIME_CONTACTED value set, this can happen if that contact was recreated (re-synced, merged, split, etc.) since it was last contacted, erasing the previously set value.
Also note that LAST_TIME_CONTACTED can be updated not just by calls - sms, whatsapp, email apps, even social apps can and do update this value for a contact that was contacted via the app.
LAST_TIME_CONTACTED has been deprecated and not updated from Android.Q and later.
Reference

Microsoft Graph's Calendar API doesn't return recurring calendar events

I am using the CalendarView API of Microsoft Graph. Based on the offical documentation: https://graph.microsoft.io/en-us/docs/api-reference/beta/api/user_list_calendarview
I did this:
GET https://graph.microsoft.com/beta/me/calendarview?startDateTime=2016-9-07&endDateTime=2016-10-02
However I don't see any recurring events. I can see other events happens before and after the recurring ones.
More information after the initial posting:
The problem occurs if the date range goes over the week border. For example, I have an recurring event on 2016-09-08, If I set the start date to 2016-09-07 and end date to 2016-09-10, it would work, but if I set the end date to 2016-09-11, the events won't show up.
#Michael Mainer helped to identify the root cause:
The calendar API has a default page size of 10. One should follow the "#odata.nextLink" property to obtain all results. The paged results is not sorted by start date unless "OrderBy" is specifically added.
As Miaosen Wang mention the default page size is 10.
As a workaround you can increase the page size adding the parameters "orderby" and "top" to you query.
params:
$orderby=start/dateTime DESC
$top=100
e.g.
GET https://graph.microsoft.com/beta/me/calendarview?startDateTime=2016-9-07&endDateTime=2016-10-02&%24$orderby=start/dateTime%20DESC"&%24top=100

How do I set the last updated time to dateSignedTabs in docusign, thru API

I have a date field in my document and I would like to set the last updated time of the document, or the time on which a particular event had occurred in the document. My document will have both signers and counter signers as well.
I am developing my application using Rails and I am using the Docusign REST GEM.
You can retrieve the envelope's history and audit events through the audit events API, then once you have your date you can simply set the value of your dateTab using the tab's value property.
NOTE: Make sure you use dateTabs and not dateSignedTabs. Date signed tabs are populated by the platform, based on the date that recipient signs the document.

Get Response Date with get_responses

We know we can query for responses between dates using get_respondent_list, however, how can we retrieve the actual response date that corresponds to when the survey was taken? Is this exposed through the API?
When you call get_respondent_list you can request the date_start and date_modified fields. These contain when the survey response was started and when it was last modified by the user, i.e. when they finished the survey or last updated it. You can't get any more detailed information than that (e.g. a full list of dates that the survey response was updated by the user).

Getting only the most recent tweet - Monkeh Tweets

I'm using ColdFusion MonkehTweets component. But actually, all I'm trying to do is get the single most recent tweet for #allblacks.
Here is the URL MonkehTweets generates. I have blanked out the keys etc for the purposes of this post:
https://api.twitter.com/1.1/search/tweets.json?checkheader=false&count=1&include_entities=true&lang=en&oauth_consumer_key=blah123&oauth_nonce=blah123&oauth_signature=blah123&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1378795729&oauth_token=blah123&oauth_version=1.0&q=from%253Aallblacks
This constantly returns the first Tweet on 7th September at https://twitter.com/allblacks
instead of the latest tweet.
Not sure what's going on and would appreciate some help please.
According to documentation: https://dev.twitter.com/docs/api/1.1/get/search/tweets you could use the optional parameter result_type with value recent. That should return only the most recent results in the response.
And I'd use #allblacks for the q parameter.

Resources