{"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":2,"created_at":"2016-12-09T18:47:49Z","updated_at":"2016-12-09T18:52:44Z","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/266091533","html_url":"https://github.com/WP-API/WP-API/issues/2958#issuecomment-266091533","issue_url":"https://api.github.com/repos/WP-API/WP-API/issues/2958","id":266091533,"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},"created_at":"2016-12-09T18:52:44Z","updated_at":"2016-12-09T18:52:44Z","body":"The same issue occurs with curl: \r\n#+BEGIN_SRC \r\n```\r\ncurl -g 'http://humstaging.byu.edu/humanities/wp-json/wp/v2/people?filter[posts_per_page]=-1&filter[taxonomy]=persondepartments&filter[term]=spanish'\r\n\r\n[]\r\n```\r\n#+END_SRC"}}
{"actor":{"display_login":"WorldsEndless"}}