{"id":22258420,"url":"https://github.com/t1gor/disquscommentpagesiterator","last_synced_at":"2025-03-25T13:14:19.126Z","repository":{"id":16521546,"uuid":"19274690","full_name":"t1gor/DisqusCommentPagesIterator","owner":"t1gor","description":"Iterate DISQUS site comments (25 items per page)","archived":false,"fork":false,"pushed_at":"2014-04-29T12:10:36.000Z","size":132,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T12:13:50.781Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/t1gor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-29T11:52:49.000Z","updated_at":"2014-04-29T12:10:36.000Z","dependencies_parsed_at":"2022-09-06T09:51:16.359Z","dependency_job_id":null,"html_url":"https://github.com/t1gor/DisqusCommentPagesIterator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1gor%2FDisqusCommentPagesIterator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1gor%2FDisqusCommentPagesIterator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1gor%2FDisqusCommentPagesIterator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1gor%2FDisqusCommentPagesIterator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t1gor","download_url":"https://codeload.github.com/t1gor/DisqusCommentPagesIterator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245467614,"owners_count":20620216,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-03T08:16:23.212Z","updated_at":"2025-03-25T13:14:19.095Z","avatar_url":"https://github.com/t1gor.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"DisqusCommentPagesIterator\n==========================\n\nIterate DISQUS site comments (100 items per page). The page size can be changed.\n\n**Some stats**\n\n* Average comments page (100 per page) load time is 3.37 seconds\n* That's it! :)\n \n**Links**\n\n* http://disqus.com/api/docs/cursors/\n* http://disqus.com/api/docs/errors/\n* http://www.php.net/manual/ru/class.iterator.php\n\n\n**Usage Example**\n\n```php\n\u003c?php\n    // load classes\n    require_once('DisqusCommentPagesIterator.php');\n    require_once('DisqusCommentsPage.php');\n\n    // init iterator\n    $pages = new DisqusCommentPagesIterator();\n    \n    // loop pages\n    foreach ($pages as $key =\u003e $page)\n\t{\n\t    var_dump($page);\n\t\n\t    // loop pages comments\n\t\tforeach ($page-\u003egetComments() as $comment)\n\t\t{\n\t\t    var_dump($comment);\n\t\t}\n\t}\n?\u003e\n```\n\nThis will display somthing like the following:\n\n```\nobject(DisqusCommentsPage)[4]\n  public 'loadTime' =\u003e float 3.52\n  public 'comments' =\u003e \n    object(stdClass)[5]\n      public 'cursor' =\u003e \n        object(stdClass)[6]\n          public 'prev' =\u003e null\n          public 'hasNext' =\u003e boolean true\n          public 'next' =\u003e string '1398236859000000:0:0' (length=20)\n          public 'hasPrev' =\u003e boolean false\n          public 'total' =\u003e null\n          public 'id' =\u003e string '1398236859000000:0:0' (length=20)\n          public 'more' =\u003e boolean true\n      public 'code' =\u003e int 0\n      public 'response' =\u003e \n        array (size=100)\n          0 =\u003e \n            object(stdClass)[7]\n              ...\n          99 =\u003e \n            object(stdClass)[502]\n              ...\nobject(stdClass)[7]\n  public 'parent' =\u003e int 14564351375\n  public 'likes' =\u003e int 0\n  public 'forum' =\u003e string 'YOUR FORUM NAME' (length=14)\n  public 'thread' =\u003e string '48647584354' (length=10)\n  public 'isApproved' =\u003e boolean true\n  public 'author' =\u003e \n    object(stdClass)[8]\n      public 'username' =\u003e string 'disqus_M9IrLdjenv' (length=17)\n      public 'about' =\u003e string '' (length=0)\n      public 'name' =\u003e string '******' (length=6)\n      public 'url' =\u003e string '' (length=0)\n      public 'isAnonymous' =\u003e boolean false\n      public 'rep' =\u003e float 1.245943\n      public 'profileUrl' =\u003e string 'http://disqus.com/disqus_M9IrLdjenv/' (length=36)\n      public 'reputation' =\u003e float 1.245943\n      public 'location' =\u003e string '' (length=0)\n      public 'isPrivate' =\u003e boolean false\n      public 'isPrimary' =\u003e boolean true\n      public 'joinedAt' =\u003e string '2014-04-03T02:41:29' (length=19)\n      public 'id' =\u003e string '46845165354' (length=9)\n      public 'avatar' =\u003e \n        object(stdClass)[9]\n          public 'small' =\u003e \n            object(stdClass)[10]\n              ...\n          public 'isCustom' =\u003e boolean false\n          public 'permalink' =\u003e string 'https://disqus.com/api/users/avatars/disqus_M6IrLdjenv.jpg' (length=58)\n          public 'cache' =\u003e string '//a.disquscdn.com/uploads/users/10153/8576/avatar92.jpg?8698734818' (length=66)\n          public 'large' =\u003e \n            object(stdClass)[11]\n              ...\n  public 'media' =\u003e \n    array (size=0)\n      empty\n  public 'isFlagged' =\u003e boolean false\n  public 'dislikes' =\u003e int 0\n  public 'raw_message' =\u003e string 'This is some comment message' (length=268)\n  public 'createdAt' =\u003e string '2014-04-29T01:26:57' (length=19)\n  public 'id' =\u003e string '1359973100' (length=10)\n  public 'numReports' =\u003e int 0\n  public 'isDeleted' =\u003e boolean false\n  public 'isEdited' =\u003e boolean false\n  public 'message' =\u003e string '\u003cp\u003eThis is some comment message\u003c/p\u003e' (length=275)\n  public 'isSpam' =\u003e boolean false\n  public 'isHighlighted' =\u003e boolean false\n  public 'points' =\u003e int 0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft1gor%2Fdisquscommentpagesiterator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft1gor%2Fdisquscommentpagesiterator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft1gor%2Fdisquscommentpagesiterator/lists"}