Support » Plugin: Publish To Apple News » Unable to connect to Apple News

  • Resolved lafillelifestyle

    (@lafillelifestyle)


    I have tried every way possible to connect my blog to Apple News and it still doesn’t work. I just got an email saying invalid API but it’s the correct one. I am really lost on how to connect this thing.

    I am getting this message: THERE HAS BEEN AN ERROR WITH THE APPLE NEWS API: INVALID_API_KEY_FORMAT

    [body] => {“errors”:[{“code”:”INVALID_API_KEY_FORMAT”}]}
    [raw] => HTTP/1.1 401 Unauthorized
    Server: AppleHttpServer/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Kevin Fodness

    (@kevinfodness)

    Please make sure you are using the latest version of the plugin. There was a bugfix in a recent version that addresses a problem with API credentials. Once you have ensured you are on the latest version (upgrading if necessary) re-upload your .papi file on the settings page and save. You should be able to ensure that the connection is working properly by going to Apple News > Sections and having it fetch a list of sections from the API.

    Thread Starter lafillelifestyle

    (@lafillelifestyle)

    I did, but still nothing. Maybe I did the papi file wrong

    Plugin Author Kevin Fodness

    (@kevinfodness)

    On the Apple News > Settings screen, there is a link to the Apple News API documentation. If you click on that link (which takes you here: https://developer.apple.com/documentation/apple_news/apple_news_api/getting_ready_to_publish_and_manage_your_articles) there is a link to download the Apple News API Client Utility. You should be able to follow the instructions in the README included with the utility, which includes a command to run to verify your .papi file. If the CLI utility is able to confirm your .papi file is created correctly, then it should work in the plugin when you upload it.

    Thread Starter lafillelifestyle

    (@lafillelifestyle)

    I tried everything, but now I am getting the error that it can’t find a value to the endpoint. I have to .papi file but I don’t know if it’s configured correctly. I know it in the home dictory.

    Plugin Author Kevin Fodness

    (@kevinfodness)

    There is an example of the .papi file’s contents in the README file contained in the Apple News API Client Utility ZIP archive. If you follow that example, and you correctly enter your channel ID, key, and secret, it should be able to connect. There were a few other threads asking for help with .papi files, which you may find useful:

    https://github.com/alleyinteractive/apple-news/issues/875

    https://github.com/alleyinteractive/apple-news/issues/609

    If you’re still having trouble getting the client utility to work, please reach out to Apple support for help. Once you are able to successfully connect via the client utility, you can upload your .papi file to the Publish to Apple News settings screen on your WordPress site, and it will be able to successfully connect to Apple.

    Plugin Author Kevin Fodness

    (@kevinfodness)

    I also added a detailed explanation of how to work with .papi files on our wiki: https://github.com/alleyinteractive/apple-news/wiki/Configuration#api-settings

    Let me know if you are still having trouble connecting.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.