{"action":"created","issue":{"url":"https://api.github.com/repos/pixelandtonic/AppleNews/issues/3","repository_url":"https://api.github.com/repos/pixelandtonic/AppleNews","labels_url":"https://api.github.com/repos/pixelandtonic/AppleNews/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/pixelandtonic/AppleNews/issues/3/comments","events_url":"https://api.github.com/repos/pixelandtonic/AppleNews/issues/3/events","html_url":"https://github.com/pixelandtonic/AppleNews/issues/3","id":274320765,"number":3,"title":"Unable to publish to Apple News","user":{"login":"whoisgina","id":2815123,"avatar_url":"https://avatars2.githubusercontent.com/u/2815123?v=4","gravatar_id":"","url":"https://api.github.com/users/whoisgina","html_url":"https://github.com/whoisgina","followers_url":"https://api.github.com/users/whoisgina/followers","following_url":"https://api.github.com/users/whoisgina/following{/other_user}","gists_url":"https://api.github.com/users/whoisgina/gists{/gist_id}","starred_url":"https://api.github.com/users/whoisgina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whoisgina/subscriptions","organizations_url":"https://api.github.com/users/whoisgina/orgs","repos_url":"https://api.github.com/users/whoisgina/repos","events_url":"https://api.github.com/users/whoisgina/events{/privacy}","received_events_url":"https://api.github.com/users/whoisgina/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-15T22:04:13Z","updated_at":"2017-11-20T19:10:19Z","closed_at":"2017-11-20T19:10:19Z","author_association":"NONE","body":"I'm unable to publish articles to Apple News. My API keys and secret are correct, as I am able to view correctly-named sections set within News Publisher in the CP. I'm not able to see the Apple News pane on the right side of entries while editing, but the option to publish is visible in the gear menu on the entries index. However, this option is available for all entries, not just the ones specified in the channel class.\r\n\r\nI'm using the included example templates, `MyNewsArticle.php`and `MyNewsChannel.php`, both tailored to fit my section/entry handles and news entry matrix structure where necessary. \r\n\r\nMaybe relevant: when I follow the link from inside the plugin, I get a `{\"errors\":[{\"code\":\"UNAUTHORIZED\"}]}` response. "},"comment":{"url":"https://api.github.com/repos/pixelandtonic/AppleNews/issues/comments/345796708","html_url":"https://github.com/pixelandtonic/AppleNews/issues/3#issuecomment-345796708","issue_url":"https://api.github.com/repos/pixelandtonic/AppleNews/issues/3","id":345796708,"user":{"login":"whoisgina","id":2815123,"avatar_url":"https://avatars2.githubusercontent.com/u/2815123?v=4","gravatar_id":"","url":"https://api.github.com/users/whoisgina","html_url":"https://github.com/whoisgina","followers_url":"https://api.github.com/users/whoisgina/followers","following_url":"https://api.github.com/users/whoisgina/following{/other_user}","gists_url":"https://api.github.com/users/whoisgina/gists{/gist_id}","starred_url":"https://api.github.com/users/whoisgina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whoisgina/subscriptions","organizations_url":"https://api.github.com/users/whoisgina/orgs","repos_url":"https://api.github.com/users/whoisgina/repos","events_url":"https://api.github.com/users/whoisgina/events{/privacy}","received_events_url":"https://api.github.com/users/whoisgina/received_events","type":"User","site_admin":false},"created_at":"2017-11-20T19:10:19Z","updated_at":"2017-11-20T19:10:19Z","author_association":"NONE","body":"Aha! The section handles were correct, but the check for locale was tripping it up. \r\n```\r\nif ($entry->locale != 'en') {\r\nreturn false;\r\n}\r\n```\r\n\r\nMy locale is set to `en_us`. I changed the value in that if statement to `en_us` and now it is working more or less as expected. Thank you! "}}
{"actor":{"display_login":"whoisgina"}}