{"action":"created","issue":{"url":"https://api.github.com/repos/WP-API/WP-API/issues/2958","repository_url":"https://api.github.com/repos/WP-API/WP-API","labels_url":"https://api.github.com/repos/WP-API/WP-API/issues/2958/labels{/name}","comments_url":"https://api.github.com/repos/WP-API/WP-API/issues/2958/comments","events_url":"https://api.github.com/repos/WP-API/WP-API/issues/2958/events","html_url":"https://github.com/WP-API/WP-API/issues/2958","id":194668693,"number":2958,"title":"Wordpress JSON API failing to provide results to file_get_contents","user":{"login":"WorldsEndless","id":5042778,"avatar_url":"https://avatars.githubusercontent.com/u/5042778?v=3","gravatar_id":"","url":"https://api.github.com/users/WorldsEndless","html_url":"https://github.com/WorldsEndless","followers_url":"https://api.github.com/users/WorldsEndless/followers","following_url":"https://api.github.com/users/WorldsEndless/following{/other_user}","gists_url":"https://api.github.com/users/WorldsEndless/gists{/gist_id}","starred_url":"https://api.github.com/users/WorldsEndless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WorldsEndless/subscriptions","organizations_url":"https://api.github.com/users/WorldsEndless/orgs","repos_url":"https://api.github.com/users/WorldsEndless/repos","events_url":"https://api.github.com/users/WorldsEndless/events{/privacy}","received_events_url":"https://api.github.com/users/WorldsEndless/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-12-09T18:47:49Z","updated_at":"2016-12-09T19:00:45Z","closed_at":null,"body":"Trying json_addr in the browser works and gives me the results I want; however, file_get_contents is returning only an empty array. Why is this? \r\n\r\n#+BEGIN_SRC php\r\n```\r\n$json_addr = 'http://humstaging.byu.edu/humanities/wp-json/wp/v2/people?filter[posts_per_page]=-1&filter[taxonomy]=persondepartments&filter[term]=spanish';\r\n$json = file_get_contents($json_addr);\r\necho \"Contents of <a href='$json_addr'>json</a> are:<br><br>\";\r\necho $json;\r\n```\r\n#+END_SRC"},"comment":{"url":"https://api.github.com/repos/WP-API/WP-API/issues/comments/266093582","html_url":"https://github.com/WP-API/WP-API/issues/2958#issuecomment-266093582","issue_url":"https://api.github.com/repos/WP-API/WP-API/issues/2958","id":266093582,"user":{"login":"BE-Webdesign","id":16389612,"avatar_url":"https://avatars.githubusercontent.com/u/16389612?v=3","gravatar_id":"","url":"https://api.github.com/users/BE-Webdesign","html_url":"https://github.com/BE-Webdesign","followers_url":"https://api.github.com/users/BE-Webdesign/followers","following_url":"https://api.github.com/users/BE-Webdesign/following{/other_user}","gists_url":"https://api.github.com/users/BE-Webdesign/gists{/gist_id}","starred_url":"https://api.github.com/users/BE-Webdesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BE-Webdesign/subscriptions","organizations_url":"https://api.github.com/users/BE-Webdesign/orgs","repos_url":"https://api.github.com/users/BE-Webdesign/repos","events_url":"https://api.github.com/users/BE-Webdesign/events{/privacy}","received_events_url":"https://api.github.com/users/BE-Webdesign/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T19:00:45Z","updated_at":"2016-12-09T19:00:45Z","body":"@WorldsEndless \r\n\r\nIt is possible that your site has been configured to require some sort of authentication when accessing endpoints.  Do you have any extra plugins using any of the REST API hooks?"}}
{"actor":{"display_login":"BE-Webdesign"}}