{"action":"created","issue":{"url":"https://api.github.com/repos/adcpm/steem/issues/6","repository_url":"https://api.github.com/repos/adcpm/steem","labels_url":"https://api.github.com/repos/adcpm/steem/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/adcpm/steem/issues/6/comments","events_url":"https://api.github.com/repos/adcpm/steem/issues/6/events","html_url":"https://github.com/adcpm/steem/issues/6","id":170507172,"number":6,"title":"API call only returns 10 results","user":{"login":"FlashGordon95","id":11082710,"avatar_url":"https://avatars.githubusercontent.com/u/11082710?v=3","gravatar_id":"","url":"https://api.github.com/users/FlashGordon95","html_url":"https://github.com/FlashGordon95","followers_url":"https://api.github.com/users/FlashGordon95/followers","following_url":"https://api.github.com/users/FlashGordon95/following{/other_user}","gists_url":"https://api.github.com/users/FlashGordon95/gists{/gist_id}","starred_url":"https://api.github.com/users/FlashGordon95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlashGordon95/subscriptions","organizations_url":"https://api.github.com/users/FlashGordon95/orgs","repos_url":"https://api.github.com/users/FlashGordon95/repos","events_url":"https://api.github.com/users/FlashGordon95/events{/privacy}","received_events_url":"https://api.github.com/users/FlashGordon95/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-10T20:10:25Z","updated_at":"2016-08-11T00:03:47Z","closed_at":null,"body":"When calling the API via http only 10 post objects are returned. Sequential calls to the api via http also return the same results from the previous call"},"comment":{"url":"https://api.github.com/repos/adcpm/steem/issues/comments/239041285","html_url":"https://github.com/adcpm/steem/issues/6#issuecomment-239041285","issue_url":"https://api.github.com/repos/adcpm/steem/issues/6","id":239041285,"user":{"login":"FlashGordon95","id":11082710,"avatar_url":"https://avatars.githubusercontent.com/u/11082710?v=3","gravatar_id":"","url":"https://api.github.com/users/FlashGordon95","html_url":"https://github.com/FlashGordon95","followers_url":"https://api.github.com/users/FlashGordon95/followers","following_url":"https://api.github.com/users/FlashGordon95/following{/other_user}","gists_url":"https://api.github.com/users/FlashGordon95/gists{/gist_id}","starred_url":"https://api.github.com/users/FlashGordon95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlashGordon95/subscriptions","organizations_url":"https://api.github.com/users/FlashGordon95/orgs","repos_url":"https://api.github.com/users/FlashGordon95/repos","events_url":"https://api.github.com/users/FlashGordon95/events{/privacy}","received_events_url":"https://api.github.com/users/FlashGordon95/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T00:03:47Z","updated_at":"2016-08-11T00:03:47Z","body":"Sure thing :) I'm not sure if you want the full code but here is the relevant code. I should point out I am using the steem rest api link atm\r\nHTTP request as a service \r\n```\r\n`load() {\r\n\r\n        // don't have the data yet\r\n        console.log(\"Starting Promise\");\r\n        return new Promise(resolve => {\r\n          // We're using Angular HTTP provider to request the data,\r\n          // then on the response, it'll map the JSON data to a parsed JS object.\r\n          // Next, we process the data and resolve the promise with the new data.\r\n          this.http.get('https://api.steemjs.com/getState?path=/trending&scope=content')\r\n            .map(res => res.json())\r\n            .subscribe(data => {\r\n              // we've got back the raw data, now generate the core schedule data\r\n              // and save the data for later reference\r\n\r\n\r\n              this.data = data;\r\n              console.log(\"Currently inside the service \");\r\n              resolve(this.data);\r\n              console.log(\"Leaving the service \\n\\n \");\r\n            });\r\n        });\r\n\r\n```\r\n\r\nFunction where I am calling the Http request\r\n```\r\nloadnewPosts(){\r\n    this.newPosts.load()\r\n      .then(data => {\r\n        this.posts = data;\r\n        //console.log(JSON.stringify(this.posts));\r\n        this.arrayIndex = 0;\r\n        for (var key in data) {\r\n\r\n          console.log(key + \" -> \" + data[key]);\r\n          console.log(\"Post: Author -> \" + data[key].author);\r\n          console.log(\"Post: title -> \" + JSON.stringify(data[key].root_title));\r\n          console.log(\"Post: Votes -> \" + JSON.stringify(data[key].net_votes));\r\n          console.log(\"Post: url -> \" + JSON.stringify(data[key].url));\r\n          console.log(\"Post: url -> \"+JSON.stringify(data[key].json_metadata));\r\n          console.log(\"Post: url -> \"+JSON.stringify(data[key].total_pending_payout_value));\r\n\r\n\r\n```"}}
{"actor":{"display_login":"FlashGordon95"}}