{"action":"created","comment":{"url":"https://api.github.com/repos/elemenohq/docs/pulls/comments/92508495","pull_request_review_id":13025838,"id":92508495,"diff_hunk":"@@ -552,22 +1338,120 @@ elemeno.getCollections(function(err, response) {\n \t},\n \t\"meta\": {\n \t\t\"totalRecords\": 4,\n-\t\t\"pageSize\": 50\n+\t\t\"pageSize\": 20\n \t}\n }\n ```\n \n-Retrieve an array of all Collections.\n+```php\n+<?\n+stdClass Object\n+(\n+\t[\"status\"] => \"success\"\n+\t[\"data\"] => Array\n+\t\t(\n+\t\t\t[0] => stdClass Object\n+\t\t\t\t(\n+\t\t\t\t\t[\"id\"] => \"fe4f04c2-1b6a-11e6-9883-ab6703adb701\"\n+\t\t\t\t\t[\"slug\"] => \"books\"\n+\t\t\t\t\t[\"title\"] => \"Books\"\n+\t\t\t\t\t[\"projectId\"] => \"98ce44d2-2985-11e5-8329-93cb1bd92cc3\"\n+\t\t\t\t\t[\"dateCreated\"] => \"2016-05-12T14:10:00.162Z\"\n+\t\t\t\t\t[\"dateUpdated\"] => \"2016-05-12T14:10:00.162Z\"\n+\t\t\t\t\t[\"links\"] => stdClass Object\n+\t\t\t\t\t\t(\n+\t\t\t\t\t\t\t\"self\" => \"https://api.elemeno.io/v1/collections/books\"\n+\t\t\t\t\t\t\t\"items\" => \"https://api.elemeno.io/v1/collections/books/items\"\n+\t\t\t\t\t\t)\n+\t\t\t\t)\n+\t\t\t...\n+\t\t)\n+\t[\"links\"] => stdClass Object\n+\t\t(\n+\t\t\t[\"self\"] => \"https://api.elemeno.io/v1/collections?page=1&size=50\"\n+\t\t\t[\"first\"] => \"https://api.elemeno.io/v1/collections?page=1&size=50\"\n+\t\t\t[\"last\"] => \"https://api.elemeno.io/v1/collections?page=1&size=50\"\n+\t\t\t[\"next\"] => null\n+\t\t\t[\"prev\"] => null\n+\t\t)\n+\t}\n+\t[\"meta\"] => stdClass Object\n+\t\t(\n+\t\t\t\"totalRecords\" => 4\n+\t\t\t\"pageSize\" => 20\n+\t\t)\n+)\n+?>\n+```\n \n-## Specific Collection\n+```ruby\n+{\n+\t\"status\" => \"success\",\n+\t\"data=> [","path":"source/index.html.md","position":1155,"original_position":1155,"commit_id":"56654d11dd6131ea0d57a6f7f25dc53eaadd98f6","original_commit_id":"56654d11dd6131ea0d57a6f7f25dc53eaadd98f6","user":{"login":"chriserwin","id":51482,"avatar_url":"https://avatars.githubusercontent.com/u/51482?v=3","gravatar_id":"","url":"https://api.github.com/users/chriserwin","html_url":"https://github.com/chriserwin","followers_url":"https://api.github.com/users/chriserwin/followers","following_url":"https://api.github.com/users/chriserwin/following{/other_user}","gists_url":"https://api.github.com/users/chriserwin/gists{/gist_id}","starred_url":"https://api.github.com/users/chriserwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriserwin/subscriptions","organizations_url":"https://api.github.com/users/chriserwin/orgs","repos_url":"https://api.github.com/users/chriserwin/repos","events_url":"https://api.github.com/users/chriserwin/events{/privacy}","received_events_url":"https://api.github.com/users/chriserwin/received_events","type":"User","site_admin":false},"body":"missing a \" after data. Should be `\"data\"=> [`","created_at":"2016-12-14T22:51:12Z","updated_at":"2016-12-14T22:59:35Z","html_url":"https://github.com/elemenohq/docs/pull/16#discussion_r92508495","pull_request_url":"https://api.github.com/repos/elemenohq/docs/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/elemenohq/docs/pulls/comments/92508495"},"html":{"href":"https://github.com/elemenohq/docs/pull/16#discussion_r92508495"},"pull_request":{"href":"https://api.github.com/repos/elemenohq/docs/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/elemenohq/docs/pulls/16","id":98002514,"html_url":"https://github.com/elemenohq/docs/pull/16","diff_url":"https://github.com/elemenohq/docs/pull/16.diff","patch_url":"https://github.com/elemenohq/docs/pull/16.patch","issue_url":"https://api.github.com/repos/elemenohq/docs/issues/16","number":16,"state":"open","locked":false,"title":"Restructuring and adding docs for all current libraries","user":{"login":"davebobak","id":274835,"avatar_url":"https://avatars.githubusercontent.com/u/274835?v=3","gravatar_id":"","url":"https://api.github.com/users/davebobak","html_url":"https://github.com/davebobak","followers_url":"https://api.github.com/users/davebobak/followers","following_url":"https://api.github.com/users/davebobak/following{/other_user}","gists_url":"https://api.github.com/users/davebobak/gists{/gist_id}","starred_url":"https://api.github.com/users/davebobak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davebobak/subscriptions","organizations_url":"https://api.github.com/users/davebobak/orgs","repos_url":"https://api.github.com/users/davebobak/repos","events_url":"https://api.github.com/users/davebobak/events{/privacy}","received_events_url":"https://api.github.com/users/davebobak/received_events","type":"User","site_admin":false},"body":"This definitely requires a thorough look.\r\n\r\nDo not hesitate to point out anything, even the \"small stuff\", like extra commas, weird indenting, etc. Nothing is too small.\r\n\r\nKeep in mind each PHP section should be wrapped with `<?` and `?>` tags. PHP output is also a little weird. There should be no commas delimiting each property/key, and ensure that each key is enclosed in square brackets. Here is an example `print_r` from a PHP request: \r\n```\r\nstdClass Object\r\n(\r\n    [status] => success\r\n    [data] => Array\r\n        (\r\n        )\r\n\r\n    [links] => stdClass Object\r\n        (\r\n            [self] => https://api.elemeno.io/v1/collections/recipes/items?filters={\"$title\":{\"$contains\":\"PIIII\"}}&page=1&size=20\r\n            [first] => https://api.elemeno.io/v1/collections/recipes/items?filters={\"$title\":{\"$contains\":\"PIIII\"}}&page=1&size=20\r\n            [last] => https://api.elemeno.io/v1/collections/recipes/items?filters={\"$title\":{\"$contains\":\"PIIII\"}}&page=0&size=20\r\n            [next] => \r\n            [prev] => \r\n        )\r\n\r\n    [meta] => stdClass Object\r\n        (\r\n            [totalRecords] => 0\r\n            [totalPages] => 0\r\n            [pageSize] => 20\r\n        )\r\n\r\n)\r\n```\r\n\r\nYou can see in the example above, each key is wrapped in square brackets, but is not wrapped in double quotes. I have specifically added those in the example responses, because if I didn't, formatting was messed up. \r\n\r\nYou will also notice in the PHP response, I use double quotes, but in the requests, I use single quotes. If you use double quotes to wrap our filtering operators like `\"$title\"`, PHP interprets that as the variable `$title`... \r\n\r\nHave fun, bud! Let me know if you have any questions or if there is anything I can do to help.","created_at":"2016-12-14T17:52:56Z","updated_at":"2016-12-14T22:59:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cb7902366d6e7cfcdc8ed1a0a7ebbcfff11da4a5","assignee":{"login":"chriserwin","id":51482,"avatar_url":"https://avatars.githubusercontent.com/u/51482?v=3","gravatar_id":"","url":"https://api.github.com/users/chriserwin","html_url":"https://github.com/chriserwin","followers_url":"https://api.github.com/users/chriserwin/followers","following_url":"https://api.github.com/users/chriserwin/following{/other_user}","gists_url":"https://api.github.com/users/chriserwin/gists{/gist_id}","starred_url":"https://api.github.com/users/chriserwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriserwin/subscriptions","organizations_url":"https://api.github.com/users/chriserwin/orgs","repos_url":"https://api.github.com/users/chriserwin/repos","events_url":"https://api.github.com/users/chriserwin/events{/privacy}","received_events_url":"https://api.github.com/users/chriserwin/received_events","type":"User","site_admin":false},"assignees":[{"login":"chriserwin","id":51482,"avatar_url":"https://avatars.githubusercontent.com/u/51482?v=3","gravatar_id":"","url":"https://api.github.com/users/chriserwin","html_url":"https://github.com/chriserwin","followers_url":"https://api.github.com/users/chriserwin/followers","following_url":"https://api.github.com/users/chriserwin/following{/other_user}","gists_url":"https://api.github.com/users/chriserwin/gists{/gist_id}","starred_url":"https://api.github.com/users/chriserwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriserwin/subscriptions","organizations_url":"https://api.github.com/users/chriserwin/orgs","repos_url":"https://api.github.com/users/chriserwin/repos","events_url":"https://api.github.com/users/chriserwin/events{/privacy}","received_events_url":"https://api.github.com/users/chriserwin/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/elemenohq/docs/pulls/16/commits","review_comments_url":"https://api.github.com/repos/elemenohq/docs/pulls/16/comments","review_comment_url":"https://api.github.com/repos/elemenohq/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elemenohq/docs/issues/16/comments","statuses_url":"https://api.github.com/repos/elemenohq/docs/statuses/56654d11dd6131ea0d57a6f7f25dc53eaadd98f6","head":{"label":"elemenohq:add-libraries","ref":"add-libraries","sha":"56654d11dd6131ea0d57a6f7f25dc53eaadd98f6","user":{"login":"elemenohq","id":16886634,"avatar_url":"https://avatars.githubusercontent.com/u/16886634?v=3","gravatar_id":"","url":"https://api.github.com/users/elemenohq","html_url":"https://github.com/elemenohq","followers_url":"https://api.github.com/users/elemenohq/followers","following_url":"https://api.github.com/users/elemenohq/following{/other_user}","gists_url":"https://api.github.com/users/elemenohq/gists{/gist_id}","starred_url":"https://api.github.com/users/elemenohq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elemenohq/subscriptions","organizations_url":"https://api.github.com/users/elemenohq/orgs","repos_url":"https://api.github.com/users/elemenohq/repos","events_url":"https://api.github.com/users/elemenohq/events{/privacy}","received_events_url":"https://api.github.com/users/elemenohq/received_events","type":"User","site_admin":false},"repo":{"id":58056448,"name":"docs","full_name":"elemenohq/docs","owner":{"login":"elemenohq","id":16886634,"avatar_url":"https://avatars.githubusercontent.com/u/16886634?v=3","gravatar_id":"","url":"https://api.github.com/users/elemenohq","html_url":"https://github.com/elemenohq","followers_url":"https://api.github.com/users/elemenohq/followers","following_url":"https://api.github.com/users/elemenohq/following{/other_user}","gists_url":"https://api.github.com/users/elemenohq/gists{/gist_id}","starred_url":"https://api.github.com/users/elemenohq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elemenohq/subscriptions","organizations_url":"https://api.github.com/users/elemenohq/orgs","repos_url":"https://api.github.com/users/elemenohq/repos","events_url":"https://api.github.com/users/elemenohq/events{/privacy}","received_events_url":"https://api.github.com/users/elemenohq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elemenohq/docs","description":"Documentation for Elemeno and the Elemeno API","fork":true,"url":"https://api.github.com/repos/elemenohq/docs","forks_url":"https://api.github.com/repos/elemenohq/docs/forks","keys_url":"https://api.github.com/repos/elemenohq/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elemenohq/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elemenohq/docs/teams","hooks_url":"https://api.github.com/repos/elemenohq/docs/hooks","issue_events_url":"https://api.github.com/repos/elemenohq/docs/issues/events{/number}","events_url":"https://api.github.com/repos/elemenohq/docs/events","assignees_url":"https://api.github.com/repos/elemenohq/docs/assignees{/user}","branches_url":"https://api.github.com/repos/elemenohq/docs/branches{/branch}","tags_url":"https://api.github.com/repos/elemenohq/docs/tags","blobs_url":"https://api.github.com/repos/elemenohq/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elemenohq/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elemenohq/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/elemenohq/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elemenohq/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/elemenohq/docs/languages","stargazers_url":"https://api.github.com/repos/elemenohq/docs/stargazers","contributors_url":"https://api.github.com/repos/elemenohq/docs/contributors","subscribers_url":"https://api.github.com/repos/elemenohq/docs/subscribers","subscription_url":"https://api.github.com/repos/elemenohq/docs/subscription","commits_url":"https://api.github.com/repos/elemenohq/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/elemenohq/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/elemenohq/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/elemenohq/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/elemenohq/docs/contents/{+path}","compare_url":"https://api.github.com/repos/elemenohq/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elemenohq/docs/merges","archive_url":"https://api.github.com/repos/elemenohq/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elemenohq/docs/downloads","issues_url":"https://api.github.com/repos/elemenohq/docs/issues{/number}","pulls_url":"https://api.github.com/repos/elemenohq/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/elemenohq/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/elemenohq/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elemenohq/docs/labels{/name}","releases_url":"https://api.github.com/repos/elemenohq/docs/releases{/id}","deployments_url":"https://api.github.com/repos/elemenohq/docs/deployments","created_at":"2016-05-04T13:59:52Z","updated_at":"2016-10-26T15:24:25Z","pushed_at":"2016-12-14T17:52:57Z","git_url":"git://github.com/elemenohq/docs.git","ssh_url":"git@github.com:elemenohq/docs.git","clone_url":"https://github.com/elemenohq/docs.git","svn_url":"https://github.com/elemenohq/docs","homepage":"http://docs.elemeno.io","size":869,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"elemenohq:master","ref":"master","sha":"01d140abd65d86fd410761fde86d74b161b7b36c","user":{"login":"elemenohq","id":16886634,"avatar_url":"https://avatars.githubusercontent.com/u/16886634?v=3","gravatar_id":"","url":"https://api.github.com/users/elemenohq","html_url":"https://github.com/elemenohq","followers_url":"https://api.github.com/users/elemenohq/followers","following_url":"https://api.github.com/users/elemenohq/following{/other_user}","gists_url":"https://api.github.com/users/elemenohq/gists{/gist_id}","starred_url":"https://api.github.com/users/elemenohq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elemenohq/subscriptions","organizations_url":"https://api.github.com/users/elemenohq/orgs","repos_url":"https://api.github.com/users/elemenohq/repos","events_url":"https://api.github.com/users/elemenohq/events{/privacy}","received_events_url":"https://api.github.com/users/elemenohq/received_events","type":"User","site_admin":false},"repo":{"id":58056448,"name":"docs","full_name":"elemenohq/docs","owner":{"login":"elemenohq","id":16886634,"avatar_url":"https://avatars.githubusercontent.com/u/16886634?v=3","gravatar_id":"","url":"https://api.github.com/users/elemenohq","html_url":"https://github.com/elemenohq","followers_url":"https://api.github.com/users/elemenohq/followers","following_url":"https://api.github.com/users/elemenohq/following{/other_user}","gists_url":"https://api.github.com/users/elemenohq/gists{/gist_id}","starred_url":"https://api.github.com/users/elemenohq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elemenohq/subscriptions","organizations_url":"https://api.github.com/users/elemenohq/orgs","repos_url":"https://api.github.com/users/elemenohq/repos","events_url":"https://api.github.com/users/elemenohq/events{/privacy}","received_events_url":"https://api.github.com/users/elemenohq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elemenohq/docs","description":"Documentation for Elemeno and the Elemeno API","fork":true,"url":"https://api.github.com/repos/elemenohq/docs","forks_url":"https://api.github.com/repos/elemenohq/docs/forks","keys_url":"https://api.github.com/repos/elemenohq/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elemenohq/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elemenohq/docs/teams","hooks_url":"https://api.github.com/repos/elemenohq/docs/hooks","issue_events_url":"https://api.github.com/repos/elemenohq/docs/issues/events{/number}","events_url":"https://api.github.com/repos/elemenohq/docs/events","assignees_url":"https://api.github.com/repos/elemenohq/docs/assignees{/user}","branches_url":"https://api.github.com/repos/elemenohq/docs/branches{/branch}","tags_url":"https://api.github.com/repos/elemenohq/docs/tags","blobs_url":"https://api.github.com/repos/elemenohq/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elemenohq/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elemenohq/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/elemenohq/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elemenohq/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/elemenohq/docs/languages","stargazers_url":"https://api.github.com/repos/elemenohq/docs/stargazers","contributors_url":"https://api.github.com/repos/elemenohq/docs/contributors","subscribers_url":"https://api.github.com/repos/elemenohq/docs/subscribers","subscription_url":"https://api.github.com/repos/elemenohq/docs/subscription","commits_url":"https://api.github.com/repos/elemenohq/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/elemenohq/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/elemenohq/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/elemenohq/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/elemenohq/docs/contents/{+path}","compare_url":"https://api.github.com/repos/elemenohq/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elemenohq/docs/merges","archive_url":"https://api.github.com/repos/elemenohq/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elemenohq/docs/downloads","issues_url":"https://api.github.com/repos/elemenohq/docs/issues{/number}","pulls_url":"https://api.github.com/repos/elemenohq/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/elemenohq/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/elemenohq/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elemenohq/docs/labels{/name}","releases_url":"https://api.github.com/repos/elemenohq/docs/releases{/id}","deployments_url":"https://api.github.com/repos/elemenohq/docs/deployments","created_at":"2016-05-04T13:59:52Z","updated_at":"2016-10-26T15:24:25Z","pushed_at":"2016-12-14T17:52:57Z","git_url":"git://github.com/elemenohq/docs.git","ssh_url":"git@github.com:elemenohq/docs.git","clone_url":"https://github.com/elemenohq/docs.git","svn_url":"https://github.com/elemenohq/docs","homepage":"http://docs.elemeno.io","size":869,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elemenohq/docs/pulls/16"},"html":{"href":"https://github.com/elemenohq/docs/pull/16"},"issue":{"href":"https://api.github.com/repos/elemenohq/docs/issues/16"},"comments":{"href":"https://api.github.com/repos/elemenohq/docs/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/elemenohq/docs/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/elemenohq/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elemenohq/docs/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/elemenohq/docs/statuses/56654d11dd6131ea0d57a6f7f25dc53eaadd98f6"}}}}
{"actor":{"display_login":"chriserwin"}}