{"action":"created","comment":{"url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/pulls/comments/27001194","id":27001194,"diff_hunk":"@@ -110,6 +110,41 @@ For a full list of the supported requests for a service visit the [service\n documentation\n page](https://github.com/spiceworks/spiceworks-js-sdk/blob/master/docs/apis/helpdesk.md).\n \n+### Date Time Filtering\n+\n+The date time filter allows you to filter the objects returned based on the value of their timestamp in a single field.\n+\n+All filters that accept a datetime range take a JSON object with at least one of the following keys:\n+\n+Name | Type | Description\n+-----|------|--------------\n+`after` (optional)|`string`| Match all objects whose datetime field is `>=` the timestamp, provided in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.\n+`before` (optional)|`string`| Match all objects whose datetime field is `<=` the timestamp, provided in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.\n+  \n+For example, if you want to find all tickets\n+that were created before March 1st, 2015 at 12:00pm, you would write:\n+\n+```js\n+var card = new SW.Card();\n+card.services('helpdesk').request('tickets', {created_at: {before: '2015-03-01T12:00:00Z'}})\n+```\n+\n+Some more examples:\n+\n+All devices that were `last_scanned` after January 5th, 2015:","path":"docs/CanvasAppApis.md","position":25,"original_position":25,"commit_id":"4e6024c146b9107819b4fcb3ebbdb1e37c2fd8cd","original_commit_id":"4e6024c146b9107819b4fcb3ebbdb1e37c2fd8cd","user":{"login":"atxmemo","id":7886031,"avatar_url":"https://avatars.githubusercontent.com/u/7886031?v=3","gravatar_id":"","url":"https://api.github.com/users/atxmemo","html_url":"https://github.com/atxmemo","followers_url":"https://api.github.com/users/atxmemo/followers","following_url":"https://api.github.com/users/atxmemo/following{/other_user}","gists_url":"https://api.github.com/users/atxmemo/gists{/gist_id}","starred_url":"https://api.github.com/users/atxmemo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atxmemo/subscriptions","organizations_url":"https://api.github.com/users/atxmemo/orgs","repos_url":"https://api.github.com/users/atxmemo/repos","events_url":"https://api.github.com/users/atxmemo/events{/privacy}","received_events_url":"https://api.github.com/users/atxmemo/received_events","type":"User","site_admin":false},"body":"I'm having trouble wording it. Should it just read \"All devices that were `last_scanned` after January 4th, 2015\" then?","created_at":"2015-03-24T03:34:15Z","updated_at":"2015-03-24T03:34:15Z","html_url":"https://github.com/spiceworks/spiceworks-js-sdk/pull/19#discussion_r27001194","pull_request_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/pulls/comments/27001194"},"html":{"href":"https://github.com/spiceworks/spiceworks-js-sdk/pull/19#discussion_r27001194"},"pull_request":{"href":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/pulls/19","id":31373390,"html_url":"https://github.com/spiceworks/spiceworks-js-sdk/pull/19","diff_url":"https://github.com/spiceworks/spiceworks-js-sdk/pull/19.diff","patch_url":"https://github.com/spiceworks/spiceworks-js-sdk/pull/19.patch","issue_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/issues/19","number":19,"state":"open","locked":false,"title":"Feature/abstract datetime range","user":{"login":"atxmemo","id":7886031,"avatar_url":"https://avatars.githubusercontent.com/u/7886031?v=3","gravatar_id":"","url":"https://api.github.com/users/atxmemo","html_url":"https://github.com/atxmemo","followers_url":"https://api.github.com/users/atxmemo/followers","following_url":"https://api.github.com/users/atxmemo/following{/other_user}","gists_url":"https://api.github.com/users/atxmemo/gists{/gist_id}","starred_url":"https://api.github.com/users/atxmemo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atxmemo/subscriptions","organizations_url":"https://api.github.com/users/atxmemo/orgs","repos_url":"https://api.github.com/users/atxmemo/repos","events_url":"https://api.github.com/users/atxmemo/events{/privacy}","received_events_url":"https://api.github.com/users/atxmemo/received_events","type":"User","site_admin":false},"body":"@msgerbush abstracted the 'datetime' range docs. i'm sure you'll want to reword and or change the formatting but this is a start. Let me know what you think. ","created_at":"2015-03-17T20:15:39Z","updated_at":"2015-03-24T03:34:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b1d9611d804a4f8c7a78b8eef49b9ad7afccc28c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/pulls/19/commits","review_comments_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/pulls/19/comments","review_comment_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/issues/19/comments","statuses_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/statuses/4e6024c146b9107819b4fcb3ebbdb1e37c2fd8cd","head":{"label":"spiceworks:feature/abstract_datetime_range","ref":"feature/abstract_datetime_range","sha":"4e6024c146b9107819b4fcb3ebbdb1e37c2fd8cd","user":{"login":"spiceworks","id":60843,"avatar_url":"https://avatars.githubusercontent.com/u/60843?v=3","gravatar_id":"","url":"https://api.github.com/users/spiceworks","html_url":"https://github.com/spiceworks","followers_url":"https://api.github.com/users/spiceworks/followers","following_url":"https://api.github.com/users/spiceworks/following{/other_user}","gists_url":"https://api.github.com/users/spiceworks/gists{/gist_id}","starred_url":"https://api.github.com/users/spiceworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spiceworks/subscriptions","organizations_url":"https://api.github.com/users/spiceworks/orgs","repos_url":"https://api.github.com/users/spiceworks/repos","events_url":"https://api.github.com/users/spiceworks/events{/privacy}","received_events_url":"https://api.github.com/users/spiceworks/received_events","type":"Organization","site_admin":false},"repo":{"id":30376720,"name":"spiceworks-js-sdk","full_name":"spiceworks/spiceworks-js-sdk","owner":{"login":"spiceworks","id":60843,"avatar_url":"https://avatars.githubusercontent.com/u/60843?v=3","gravatar_id":"","url":"https://api.github.com/users/spiceworks","html_url":"https://github.com/spiceworks","followers_url":"https://api.github.com/users/spiceworks/followers","following_url":"https://api.github.com/users/spiceworks/following{/other_user}","gists_url":"https://api.github.com/users/spiceworks/gists{/gist_id}","starred_url":"https://api.github.com/users/spiceworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spiceworks/subscriptions","organizations_url":"https://api.github.com/users/spiceworks/orgs","repos_url":"https://api.github.com/users/spiceworks/repos","events_url":"https://api.github.com/users/spiceworks/events{/privacy}","received_events_url":"https://api.github.com/users/spiceworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spiceworks/spiceworks-js-sdk","description":"A JS SDK for building platform apps on Spiceworks","fork":false,"url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk","forks_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/forks","keys_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/teams","hooks_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/hooks","issue_events_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/events","assignees_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/tags","blobs_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/languages","stargazers_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/stargazers","contributors_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/contributors","subscribers_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/subscribers","subscription_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/subscription","commits_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/merges","archive_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/downloads","issues_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/labels{/name}","releases_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/releases{/id}","created_at":"2015-02-05T20:28:40Z","updated_at":"2015-03-22T03:41:45Z","pushed_at":"2015-03-23T21:59:33Z","git_url":"git://github.com/spiceworks/spiceworks-js-sdk.git","ssh_url":"git@github.com:spiceworks/spiceworks-js-sdk.git","clone_url":"https://github.com/spiceworks/spiceworks-js-sdk.git","svn_url":"https://github.com/spiceworks/spiceworks-js-sdk","homepage":null,"size":1157,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":5,"forks":5,"open_issues":5,"watchers":4,"default_branch":"master"}},"base":{"label":"spiceworks:master","ref":"master","sha":"c597be184fff38a47bc9f2964dfa2918f8cac501","user":{"login":"spiceworks","id":60843,"avatar_url":"https://avatars.githubusercontent.com/u/60843?v=3","gravatar_id":"","url":"https://api.github.com/users/spiceworks","html_url":"https://github.com/spiceworks","followers_url":"https://api.github.com/users/spiceworks/followers","following_url":"https://api.github.com/users/spiceworks/following{/other_user}","gists_url":"https://api.github.com/users/spiceworks/gists{/gist_id}","starred_url":"https://api.github.com/users/spiceworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spiceworks/subscriptions","organizations_url":"https://api.github.com/users/spiceworks/orgs","repos_url":"https://api.github.com/users/spiceworks/repos","events_url":"https://api.github.com/users/spiceworks/events{/privacy}","received_events_url":"https://api.github.com/users/spiceworks/received_events","type":"Organization","site_admin":false},"repo":{"id":30376720,"name":"spiceworks-js-sdk","full_name":"spiceworks/spiceworks-js-sdk","owner":{"login":"spiceworks","id":60843,"avatar_url":"https://avatars.githubusercontent.com/u/60843?v=3","gravatar_id":"","url":"https://api.github.com/users/spiceworks","html_url":"https://github.com/spiceworks","followers_url":"https://api.github.com/users/spiceworks/followers","following_url":"https://api.github.com/users/spiceworks/following{/other_user}","gists_url":"https://api.github.com/users/spiceworks/gists{/gist_id}","starred_url":"https://api.github.com/users/spiceworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spiceworks/subscriptions","organizations_url":"https://api.github.com/users/spiceworks/orgs","repos_url":"https://api.github.com/users/spiceworks/repos","events_url":"https://api.github.com/users/spiceworks/events{/privacy}","received_events_url":"https://api.github.com/users/spiceworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spiceworks/spiceworks-js-sdk","description":"A JS SDK for building platform apps on Spiceworks","fork":false,"url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk","forks_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/forks","keys_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/teams","hooks_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/hooks","issue_events_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/events","assignees_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/tags","blobs_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/languages","stargazers_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/stargazers","contributors_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/contributors","subscribers_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/subscribers","subscription_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/subscription","commits_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/merges","archive_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/downloads","issues_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/labels{/name}","releases_url":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/releases{/id}","created_at":"2015-02-05T20:28:40Z","updated_at":"2015-03-22T03:41:45Z","pushed_at":"2015-03-23T21:59:33Z","git_url":"git://github.com/spiceworks/spiceworks-js-sdk.git","ssh_url":"git@github.com:spiceworks/spiceworks-js-sdk.git","clone_url":"https://github.com/spiceworks/spiceworks-js-sdk.git","svn_url":"https://github.com/spiceworks/spiceworks-js-sdk","homepage":null,"size":1157,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":5,"forks":5,"open_issues":5,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/pulls/19"},"html":{"href":"https://github.com/spiceworks/spiceworks-js-sdk/pull/19"},"issue":{"href":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/issues/19"},"comments":{"href":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/spiceworks/spiceworks-js-sdk/statuses/4e6024c146b9107819b4fcb3ebbdb1e37c2fd8cd"}}}}