{"action":"created","issue":{"url":"https://api.github.com/repos/dropbox/dropbox-sdk-obj-c/issues/30","repository_url":"https://api.github.com/repos/dropbox/dropbox-sdk-obj-c","labels_url":"https://api.github.com/repos/dropbox/dropbox-sdk-obj-c/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/dropbox/dropbox-sdk-obj-c/issues/30/comments","events_url":"https://api.github.com/repos/dropbox/dropbox-sdk-obj-c/issues/30/events","html_url":"https://github.com/dropbox/dropbox-sdk-obj-c/issues/30","id":176135361,"number":30,"title":"Migrating from v1 to v2 API","user":{"login":"Dejal","id":1318849,"avatar_url":"https://avatars.githubusercontent.com/u/1318849?v=3","gravatar_id":"","url":"https://api.github.com/users/Dejal","html_url":"https://github.com/Dejal","followers_url":"https://api.github.com/users/Dejal/followers","following_url":"https://api.github.com/users/Dejal/following{/other_user}","gists_url":"https://api.github.com/users/Dejal/gists{/gist_id}","starred_url":"https://api.github.com/users/Dejal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dejal/subscriptions","organizations_url":"https://api.github.com/users/Dejal/orgs","repos_url":"https://api.github.com/users/Dejal/repos","events_url":"https://api.github.com/users/Dejal/events{/privacy}","received_events_url":"https://api.github.com/users/Dejal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-09T23:18:57Z","updated_at":"2016-09-12T18:01:10Z","closed_at":"2016-09-12T17:22:34Z","body":"I'm working on migrating a Mac project from the v1 to v2 API, and finding it slow going.  The API has changed significantly, with the v2 more complex and hard to find documentation and examples.\r\n\r\nThese are issues I have currently; I'd appreciate advice (and enhancements if missing functionality):\r\n\r\n1. With the v1 API, I used the following call to load metadata only for files that had changed since the previous invocation, using a hash.  I don't see any option for that in v2?\r\n\r\n    `[delegate.restClient loadMetadata:dropboxFolderPath withHash:hash];`\r\n\r\n2. The response from the above included a `lastModifiedDate` property for each item.  I see that is available in the debug description of `DBFILESMetadata`, but I don't see a property for it (either as a string or `NSDate`).\r\n\r\n3. With v1 I used the following call to get a sharing link, with a flag for a short URL or full URL.  I don't see an option for a short URL when calling `createSharedLinkWithSettings`, or any other way to get one?\r\n\r\n    `[delegate.restClient loadSharableLinkForFile:dropboxFilePath shortUrl:shortURL];`\r\n\r\n4. With v1 I used the following to get a direct link to a document.  I don't see an equivalent method in v2, unless that is `getTemporaryLink`?\r\n\r\n    `[delegate.restClient loadStreamableURLForFile:dropboxFilePath];`\r\n\r\nI'd appreciate assistance with these!\r\n"},"comment":{"url":"https://api.github.com/repos/dropbox/dropbox-sdk-obj-c/issues/comments/246435567","html_url":"https://github.com/dropbox/dropbox-sdk-obj-c/issues/30#issuecomment-246435567","issue_url":"https://api.github.com/repos/dropbox/dropbox-sdk-obj-c/issues/30","id":246435567,"user":{"login":"rodionovd","id":5719520,"avatar_url":"https://avatars.githubusercontent.com/u/5719520?v=3","gravatar_id":"","url":"https://api.github.com/users/rodionovd","html_url":"https://github.com/rodionovd","followers_url":"https://api.github.com/users/rodionovd/followers","following_url":"https://api.github.com/users/rodionovd/following{/other_user}","gists_url":"https://api.github.com/users/rodionovd/gists{/gist_id}","starred_url":"https://api.github.com/users/rodionovd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodionovd/subscriptions","organizations_url":"https://api.github.com/users/rodionovd/orgs","repos_url":"https://api.github.com/users/rodionovd/repos","events_url":"https://api.github.com/users/rodionovd/events{/privacy}","received_events_url":"https://api.github.com/users/rodionovd/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T18:01:10Z","updated_at":"2016-09-12T18:01:10Z","body":"@greg-db you're right: there's a section in the docs about this, but \"unions\" and \"structs\" are very uncommon in Objective-C, so I find it hard to wrap my head around them.\r\n\r\nTake, for instance, this sentence:\r\n\r\n> Struct types are \"traditional\" object types"}}
{"actor":{"display_login":"rodionovd"}}