Title: Example papi file, On A Windows PC
Last modified: August 19, 2021

---

# Example papi file, On A Windows PC

 *  Resolved [cm3solutions](https://wordpress.org/support/users/cm3solutions/)
 * (@cm3solutions)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/example-papi-file-on-a-windows-pc/)
 * “Enter the contents of your .papi file manually.” What does the file look like?
   I am on a Windows PC so installing the Apple-News-API-CLI won’t work.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [ultravibe](https://wordpress.org/support/users/ultravibe/)
 * (@ultravibe)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/example-papi-file-on-a-windows-pc/#post-14789439)
 * Having the same issue –
 * Why did the plugin do away with simply entering the values?
    -  This reply was modified 5 years, 1 month ago by [ultravibe](https://wordpress.org/support/users/ultravibe/).
 *  [ultravibe](https://wordpress.org/support/users/ultravibe/)
 * (@ultravibe)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/example-papi-file-on-a-windows-pc/#post-14789452)
 * Should point out I entered the values as shown in the README.md in the Apple 
   News API-CLI, but the plugin wouldn’t accept it as valid.
 * `#XXXXXXX
    endpoint: [https://news-api.apple.com](https://news-api.apple.com)
   channel_id: XXXXXXX key: XXXXXXX secret: XXXXXXXXXXX
 *  [ultravibe](https://wordpress.org/support/users/ultravibe/)
 * (@ultravibe)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/example-papi-file-on-a-windows-pc/#post-14789479)
 * I believe it is taking the values if you create a simple text file and use the
   above format – but there’s no notification within the plugin that it has been
   kind of accepted… However, using the above format, saving as XXX.papi, then going
   to sections, the plugin is pulling in the sections properly.
 *  Plugin Author [Kevin Fodness](https://wordpress.org/support/users/kevinfodness/)
 * (@kevinfodness)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/example-papi-file-on-a-windows-pc/#post-14793700)
 * I released version 2.2.2 of the plugin on Friday, which includes a success message
   if the channel ID, key, and secret were successfully saved.
 * You are correct about the format, which can be found in the README in the CLI.
 * The CLI was written to work with Ruby, which theoretically will work on Windows
   also. At a minimum, you can download the tool and read the README on how to create
   the .papi file in order to upload it or paste the contents in to configure the
   plugin. If you are able to successfully pull a list of sections in Apple News
   > Sections, then you know Apple accepted the credentials.
 *  Thread Starter [cm3solutions](https://wordpress.org/support/users/cm3solutions/)
 * (@cm3solutions)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/example-papi-file-on-a-windows-pc/#post-14801016)
 * This is what worked for me – #Website endpoint: [https://news-api.apple.com](https://news-api.apple.com)
   channel_id: xxxxxx key: xxxxx secret: xxxxxx
 *  Plugin Author [Kevin Fodness](https://wordpress.org/support/users/kevinfodness/)
 * (@kevinfodness)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/example-papi-file-on-a-windows-pc/#post-14801047)
 * Thanks, [@cm3solutions](https://wordpress.org/support/users/cm3solutions/) – 
   I think the line breaks got eaten by the editor, but yes, that is the correct
   format. At an absolute minimum, it needs:
 *     ```
       channel_id: xxxx
       key: xxxx
       secret: xxxx
       ```
   
 * The comment at the top and the endpoint field aren’t used by the Publish to Apple
   News plugin, although I believe the endpoint field is used by the CLI utility,
   so should be present if you’re testing it locally via CLI.

Viewing 6 replies - 1 through 6 (of 6 total)

 The topic ‘Example papi file, On A Windows PC’ is closed to new replies.

 * ![](https://ps.w.org/publish-to-apple-news/assets/icon-256x256.png?rev=3017580)
 * [Publish To Apple News](https://wordpress.org/plugins/publish-to-apple-news/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/publish-to-apple-news/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/publish-to-apple-news/)
 * [Active Topics](https://wordpress.org/support/plugin/publish-to-apple-news/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/publish-to-apple-news/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/publish-to-apple-news/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Kevin Fodness](https://wordpress.org/support/users/kevinfodness/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/example-papi-file-on-a-windows-pc/#post-14801047)
 * Status: resolved