{"action":"created","comment":{"url":"https://api.github.com/repos/relateiq/slate/pulls/comments/61623179","id":61623179,"diff_hunk":"@@ -2,61 +2,480 @@\n \n > Request\n \n+```shell\n+# Retrieve all Accounts in your Organization\n+curl 'https://api.salesforceiq.com/v2/accounts'\n+  -X GET\n+  -u $API_KEY:$API_SECRET\n+  -H 'Accept: application/json'\n+\n+# Retrieve two Accounts by Ids in your Organization\n+curl 'https://api.salesforceiq.com/v2/accounts?_ids=56abd666e4b07f4066b7bcdc, 56b3acf5e4b0a8f6a0711488'\n+  -X GET\n+  -u $API_KEY:$API_SECRET\n+  -H 'Accept: application/json'\n+\n+# Retrieve all Accounts where modifiedDate > 1456874990000\n+curl 'https://api.salesforceiq.com/v2/accounts?modifiedDate=1456874990000'\n+  -X GET\n+  -u $API_KEY:$API_SECRET\n+  -H 'Accept: application/json' \n+\n+# Retrieve two Accounts starting at index 1 \n+curl 'https://api.salesforceiq.com/v2/accounts?_start=1&_limit=2'\n+  -X GET\n+  -u $API_KEY:$API_SECRET\n+  -H 'Accept: application/json' \n+```\n+\n ```ruby\n require 'riq'\n \n-RIQ.init(ENV['API\\_KEY'], ENV['API_SECRET'])\n-RIQ.Accounts.each do |c|\n-    puts c\n+RIQ.init(ENV['API_KEY'], ENV['API_SECRET'])\n+\n+# Retrieve all Accounts in your Organization\n+RIQ.accounts.each do |a|\n+  puts a.data\n+end\n+\n+# Retrieve two Accounts by Ids in your Organization\n+accounts = RIQ.accounts({:_ids = > ['56abd666e4b07f4066b7bcdc', '56b3acf5e4b0a8f6a0711488']})\n+accounts.each do |a|\n+  puts a.data\n+end\n+\n+# Retrieve all Accounts where modifiedDate > 1456874990000\n+accounts = RIQ.accounts({ :modifiedDate => \"1456874990000\" })\n+accounts.each do |a|\n+  puts a.data\n+end\n+\n+# Retrieve two Accounts starting at index 1\n+accounts = RIQ.accounts({ :_start => \"1\", :_limit => \"2\" })\n+accounts.each do |a|\n+  puts a.data\n end\n ```\n \n ```python\n-import kittn\n+from relateiq.client import RelateIQ\n+from relateiq.accounts import Account\n \n-api = kittn.authorize('meowmeowmeow')\n-api.kittens.get()\n-```\n+RelateIQ(\"[API Key]\", \"[API Secret]\")\n \n-```shell\n-curl 'https://api.salesforceiq.com/v2/accounts?_start=0&_limit=5'\n-    -X GET\n-    -u :[API Secret]\n-    -H 'Accept: application/json'\n+# Retrieve all Accounts in your Organization\n+account = Account()\n+print account.fetchPage()\n+\n+# Retrieve two Accounts by Ids in your Organization\n+account = Account()\n+account.setFetchOptions({ '_ids': '56abd666e4b07f4066b7bcdc, 56b3acf5e4b0a8f6a0711488' })\n+print account.fetchPage()\n+\n+# Retrieve all Accounts where modifiedDate > 1456874990000\n+account = Account()\n+account.setFetchOptions({ \"modifiedDate\": \"1456874990000\" })\n+print account.fetchPage()\n+\n+# Retrieve two Accounts starting at index 1\n+account = Account()\n+print account.fetchPage(1, 2)\n ```\n \n > Response\n \n-\n ```shell\n+# All Accounts in your Organization\n HTTP/1.1 200 OK","path":"source/includes/accounts/_fetch_all.md","position":101,"original_position":101,"commit_id":"8fa09492bd23db396d33d7f6afd19649b26c8abf","original_commit_id":"8fa09492bd23db396d33d7f6afd19649b26c8abf","user":{"login":"kterusaki","id":5706515,"avatar_url":"https://avatars.githubusercontent.com/u/5706515?v=3","gravatar_id":"","url":"https://api.github.com/users/kterusaki","html_url":"https://github.com/kterusaki","followers_url":"https://api.github.com/users/kterusaki/followers","following_url":"https://api.github.com/users/kterusaki/following{/other_user}","gists_url":"https://api.github.com/users/kterusaki/gists{/gist_id}","starred_url":"https://api.github.com/users/kterusaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kterusaki/subscriptions","organizations_url":"https://api.github.com/users/kterusaki/orgs","repos_url":"https://api.github.com/users/kterusaki/repos","events_url":"https://api.github.com/users/kterusaki/events{/privacy}","received_events_url":"https://api.github.com/users/kterusaki/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2016-04-29T18:20:31Z","updated_at":"2016-04-29T18:20:31Z","html_url":"https://github.com/relateiq/slate/pull/1#discussion_r61623179","pull_request_url":"https://api.github.com/repos/relateiq/slate/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/relateiq/slate/pulls/comments/61623179"},"html":{"href":"https://github.com/relateiq/slate/pull/1#discussion_r61623179"},"pull_request":{"href":"https://api.github.com/repos/relateiq/slate/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/relateiq/slate/pulls/1","id":64859288,"html_url":"https://github.com/relateiq/slate/pull/1","diff_url":"https://github.com/relateiq/slate/pull/1.diff","patch_url":"https://github.com/relateiq/slate/pull/1.patch","issue_url":"https://api.github.com/repos/relateiq/slate/issues/1","number":1,"state":"open","locked":false,"title":"Updated API Documentation","user":{"login":"kterusaki","id":5706515,"avatar_url":"https://avatars.githubusercontent.com/u/5706515?v=3","gravatar_id":"","url":"https://api.github.com/users/kterusaki","html_url":"https://github.com/kterusaki","followers_url":"https://api.github.com/users/kterusaki/followers","following_url":"https://api.github.com/users/kterusaki/following{/other_user}","gists_url":"https://api.github.com/users/kterusaki/gists{/gist_id}","starred_url":"https://api.github.com/users/kterusaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kterusaki/subscriptions","organizations_url":"https://api.github.com/users/kterusaki/orgs","repos_url":"https://api.github.com/users/kterusaki/repos","events_url":"https://api.github.com/users/kterusaki/events{/privacy}","received_events_url":"https://api.github.com/users/kterusaki/received_events","type":"User","site_admin":false},"body":"- Migrated current API docs to Slate (markdown). \r\n- Updated endpoint parameters and examples","created_at":"2016-03-31T21:09:45Z","updated_at":"2016-04-29T18:20:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c9ddfb04e26348637a60f16871e60ae6e216377e","assignee":{"login":"goldensun8891","id":2935287,"avatar_url":"https://avatars.githubusercontent.com/u/2935287?v=3","gravatar_id":"","url":"https://api.github.com/users/goldensun8891","html_url":"https://github.com/goldensun8891","followers_url":"https://api.github.com/users/goldensun8891/followers","following_url":"https://api.github.com/users/goldensun8891/following{/other_user}","gists_url":"https://api.github.com/users/goldensun8891/gists{/gist_id}","starred_url":"https://api.github.com/users/goldensun8891/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldensun8891/subscriptions","organizations_url":"https://api.github.com/users/goldensun8891/orgs","repos_url":"https://api.github.com/users/goldensun8891/repos","events_url":"https://api.github.com/users/goldensun8891/events{/privacy}","received_events_url":"https://api.github.com/users/goldensun8891/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/relateiq/slate/pulls/1/commits","review_comments_url":"https://api.github.com/repos/relateiq/slate/pulls/1/comments","review_comment_url":"https://api.github.com/repos/relateiq/slate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/relateiq/slate/issues/1/comments","statuses_url":"https://api.github.com/repos/relateiq/slate/statuses/8fa09492bd23db396d33d7f6afd19649b26c8abf","head":{"label":"kterusaki:master","ref":"master","sha":"8fa09492bd23db396d33d7f6afd19649b26c8abf","user":{"login":"kterusaki","id":5706515,"avatar_url":"https://avatars.githubusercontent.com/u/5706515?v=3","gravatar_id":"","url":"https://api.github.com/users/kterusaki","html_url":"https://github.com/kterusaki","followers_url":"https://api.github.com/users/kterusaki/followers","following_url":"https://api.github.com/users/kterusaki/following{/other_user}","gists_url":"https://api.github.com/users/kterusaki/gists{/gist_id}","starred_url":"https://api.github.com/users/kterusaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kterusaki/subscriptions","organizations_url":"https://api.github.com/users/kterusaki/orgs","repos_url":"https://api.github.com/users/kterusaki/repos","events_url":"https://api.github.com/users/kterusaki/events{/privacy}","received_events_url":"https://api.github.com/users/kterusaki/received_events","type":"User","site_admin":false},"repo":{"id":50680999,"name":"slate","full_name":"kterusaki/slate","owner":{"login":"kterusaki","id":5706515,"avatar_url":"https://avatars.githubusercontent.com/u/5706515?v=3","gravatar_id":"","url":"https://api.github.com/users/kterusaki","html_url":"https://github.com/kterusaki","followers_url":"https://api.github.com/users/kterusaki/followers","following_url":"https://api.github.com/users/kterusaki/following{/other_user}","gists_url":"https://api.github.com/users/kterusaki/gists{/gist_id}","starred_url":"https://api.github.com/users/kterusaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kterusaki/subscriptions","organizations_url":"https://api.github.com/users/kterusaki/orgs","repos_url":"https://api.github.com/users/kterusaki/repos","events_url":"https://api.github.com/users/kterusaki/events{/privacy}","received_events_url":"https://api.github.com/users/kterusaki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kterusaki/slate","description":"Beautiful static documentation for your API","fork":true,"url":"https://api.github.com/repos/kterusaki/slate","forks_url":"https://api.github.com/repos/kterusaki/slate/forks","keys_url":"https://api.github.com/repos/kterusaki/slate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kterusaki/slate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kterusaki/slate/teams","hooks_url":"https://api.github.com/repos/kterusaki/slate/hooks","issue_events_url":"https://api.github.com/repos/kterusaki/slate/issues/events{/number}","events_url":"https://api.github.com/repos/kterusaki/slate/events","assignees_url":"https://api.github.com/repos/kterusaki/slate/assignees{/user}","branches_url":"https://api.github.com/repos/kterusaki/slate/branches{/branch}","tags_url":"https://api.github.com/repos/kterusaki/slate/tags","blobs_url":"https://api.github.com/repos/kterusaki/slate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kterusaki/slate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kterusaki/slate/git/refs{/sha}","trees_url":"https://api.github.com/repos/kterusaki/slate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kterusaki/slate/statuses/{sha}","languages_url":"https://api.github.com/repos/kterusaki/slate/languages","stargazers_url":"https://api.github.com/repos/kterusaki/slate/stargazers","contributors_url":"https://api.github.com/repos/kterusaki/slate/contributors","subscribers_url":"https://api.github.com/repos/kterusaki/slate/subscribers","subscription_url":"https://api.github.com/repos/kterusaki/slate/subscription","commits_url":"https://api.github.com/repos/kterusaki/slate/commits{/sha}","git_commits_url":"https://api.github.com/repos/kterusaki/slate/git/commits{/sha}","comments_url":"https://api.github.com/repos/kterusaki/slate/comments{/number}","issue_comment_url":"https://api.github.com/repos/kterusaki/slate/issues/comments{/number}","contents_url":"https://api.github.com/repos/kterusaki/slate/contents/{+path}","compare_url":"https://api.github.com/repos/kterusaki/slate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kterusaki/slate/merges","archive_url":"https://api.github.com/repos/kterusaki/slate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kterusaki/slate/downloads","issues_url":"https://api.github.com/repos/kterusaki/slate/issues{/number}","pulls_url":"https://api.github.com/repos/kterusaki/slate/pulls{/number}","milestones_url":"https://api.github.com/repos/kterusaki/slate/milestones{/number}","notifications_url":"https://api.github.com/repos/kterusaki/slate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kterusaki/slate/labels{/name}","releases_url":"https://api.github.com/repos/kterusaki/slate/releases{/id}","deployments_url":"https://api.github.com/repos/kterusaki/slate/deployments","created_at":"2016-01-29T18:07:13Z","updated_at":"2016-01-29T18:07:14Z","pushed_at":"2016-04-14T21:25:29Z","git_url":"git://github.com/kterusaki/slate.git","ssh_url":"git@github.com:kterusaki/slate.git","clone_url":"https://github.com/kterusaki/slate.git","svn_url":"https://github.com/kterusaki/slate","homepage":"","size":776,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"relateiq:master","ref":"master","sha":"aef9c3f9b5e1d9cbfd538fd3246db27d1cbc8263","user":{"login":"relateiq","id":1335810,"avatar_url":"https://avatars.githubusercontent.com/u/1335810?v=3","gravatar_id":"","url":"https://api.github.com/users/relateiq","html_url":"https://github.com/relateiq","followers_url":"https://api.github.com/users/relateiq/followers","following_url":"https://api.github.com/users/relateiq/following{/other_user}","gists_url":"https://api.github.com/users/relateiq/gists{/gist_id}","starred_url":"https://api.github.com/users/relateiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relateiq/subscriptions","organizations_url":"https://api.github.com/users/relateiq/orgs","repos_url":"https://api.github.com/users/relateiq/repos","events_url":"https://api.github.com/users/relateiq/events{/privacy}","received_events_url":"https://api.github.com/users/relateiq/received_events","type":"Organization","site_admin":false},"repo":{"id":44363847,"name":"slate","full_name":"relateiq/slate","owner":{"login":"relateiq","id":1335810,"avatar_url":"https://avatars.githubusercontent.com/u/1335810?v=3","gravatar_id":"","url":"https://api.github.com/users/relateiq","html_url":"https://github.com/relateiq","followers_url":"https://api.github.com/users/relateiq/followers","following_url":"https://api.github.com/users/relateiq/following{/other_user}","gists_url":"https://api.github.com/users/relateiq/gists{/gist_id}","starred_url":"https://api.github.com/users/relateiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relateiq/subscriptions","organizations_url":"https://api.github.com/users/relateiq/orgs","repos_url":"https://api.github.com/users/relateiq/repos","events_url":"https://api.github.com/users/relateiq/events{/privacy}","received_events_url":"https://api.github.com/users/relateiq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/relateiq/slate","description":"Beautiful static documentation for your API","fork":true,"url":"https://api.github.com/repos/relateiq/slate","forks_url":"https://api.github.com/repos/relateiq/slate/forks","keys_url":"https://api.github.com/repos/relateiq/slate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/relateiq/slate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/relateiq/slate/teams","hooks_url":"https://api.github.com/repos/relateiq/slate/hooks","issue_events_url":"https://api.github.com/repos/relateiq/slate/issues/events{/number}","events_url":"https://api.github.com/repos/relateiq/slate/events","assignees_url":"https://api.github.com/repos/relateiq/slate/assignees{/user}","branches_url":"https://api.github.com/repos/relateiq/slate/branches{/branch}","tags_url":"https://api.github.com/repos/relateiq/slate/tags","blobs_url":"https://api.github.com/repos/relateiq/slate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/relateiq/slate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/relateiq/slate/git/refs{/sha}","trees_url":"https://api.github.com/repos/relateiq/slate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/relateiq/slate/statuses/{sha}","languages_url":"https://api.github.com/repos/relateiq/slate/languages","stargazers_url":"https://api.github.com/repos/relateiq/slate/stargazers","contributors_url":"https://api.github.com/repos/relateiq/slate/contributors","subscribers_url":"https://api.github.com/repos/relateiq/slate/subscribers","subscription_url":"https://api.github.com/repos/relateiq/slate/subscription","commits_url":"https://api.github.com/repos/relateiq/slate/commits{/sha}","git_commits_url":"https://api.github.com/repos/relateiq/slate/git/commits{/sha}","comments_url":"https://api.github.com/repos/relateiq/slate/comments{/number}","issue_comment_url":"https://api.github.com/repos/relateiq/slate/issues/comments{/number}","contents_url":"https://api.github.com/repos/relateiq/slate/contents/{+path}","compare_url":"https://api.github.com/repos/relateiq/slate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/relateiq/slate/merges","archive_url":"https://api.github.com/repos/relateiq/slate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/relateiq/slate/downloads","issues_url":"https://api.github.com/repos/relateiq/slate/issues{/number}","pulls_url":"https://api.github.com/repos/relateiq/slate/pulls{/number}","milestones_url":"https://api.github.com/repos/relateiq/slate/milestones{/number}","notifications_url":"https://api.github.com/repos/relateiq/slate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/relateiq/slate/labels{/name}","releases_url":"https://api.github.com/repos/relateiq/slate/releases{/id}","deployments_url":"https://api.github.com/repos/relateiq/slate/deployments","created_at":"2015-10-16T05:19:52Z","updated_at":"2016-04-04T17:52:20Z","pushed_at":"2016-04-14T21:25:30Z","git_url":"git://github.com/relateiq/slate.git","ssh_url":"git@github.com:relateiq/slate.git","clone_url":"https://github.com/relateiq/slate.git","svn_url":"https://github.com/relateiq/slate","homepage":"","size":0,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/relateiq/slate/pulls/1"},"html":{"href":"https://github.com/relateiq/slate/pull/1"},"issue":{"href":"https://api.github.com/repos/relateiq/slate/issues/1"},"comments":{"href":"https://api.github.com/repos/relateiq/slate/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/relateiq/slate/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/relateiq/slate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/relateiq/slate/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/relateiq/slate/statuses/8fa09492bd23db396d33d7f6afd19649b26c8abf"}}}}