appdotnet / api-spec

App.net API Documentation is on the web at https://developers.app.net. Source for these docs is in the new-docs branch here. Please use the issue tracker and submit pull requests! Help us build the real-time social service where users and developers come first, not advertisers.
https://developers.app.net
950 stars 98 forks source link

additional field for client_created_at timestamp #119

Closed tonymillion closed 12 years ago

tonymillion commented 12 years ago

I realise this could be "cheated" but it would be a "nice to have" addition to the API. It would be up to the client to decide if it trusts it over the server defined created_at flag.

Reasoning: I'd like to have a post queue in my app where you can post with no signal once signal is found it will start the post queue and submit posts to the api. Currently those posts would be tagged with the servers created_at date, even if several hours have passed since the user made those posts.

As I stated it would be up to the client to decide to show the "official" created_at timestamp or the apps client_created_at timestamp. Either way posts would be sorted by id.

mthurman commented 12 years ago

I don't foresee this being a part of the core API--one created_at timestamp should be good enough. If this really is an issue for some clients, I think annotations are the solution for this kind of metadata.

koneude commented 12 years ago

I would also like to see this kind of annotation on the posts; I would quite like to have the option to see when a post was written (local to the author). Once this information is also provided by the client app, I can see whether, for instance, the author wrote their post in the middle of the night and then went to bed aftwards, so I don't have to expect a reply within the next ten hours or so. Also, it's much more likely that people who travel keep their devices set to displaying their local time, whereas they'll probably not update their timezone information in the app.net profile ever so often.

mattflaschen commented 12 years ago

Here's a draft for a core annotation:

{
    "type": "net.app.core.client_created_at",
    "value": "2013-07-16T19:20:30+01:00"
}

It's ISO 8601 (same currently used for UTC), but with a time zone designator.

ghost commented 12 years ago

+1

Harold http://hxf148.com

On Thu, Nov 15, 2012 at 4:11 AM, Matt Flaschen notifications@github.comwrote:

Here's a draft for a core annotation:

{ "type": "net.app.core.client_created_at", "value": "2013-07-16T19:20:30+01:00"}

It's ISO 8601 (same currently used for UTC), but with a time zone designator.

— Reply to this email directly or view it on GitHubhttps://github.com/appdotnet/api-spec/issues/119#issuecomment-10401720.