Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
angrycuban13 authored May 1, 2024
1 parent 9cdb97b commit 7c9fe30
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Send-ReadarrBooksToKindle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,12 @@ I have only tested this script with sending to a Kindle, but if you have a diffe
#### API Endpoint

1. Navigate to APIs > Endpoints
1. Click on `Create New Endpoint`.
2. Click on `Create New Endpoint`.
1. On the `URL` field, give it an URL of your choice (e.g. `readarr`).
1. On the `Method` field, make sure to add `POST`.
1. I recommend you leave `GET` enabled as well so you can debug as needed.
1. After the endpoint has been created, click on the `Edit` button and copy/paste the following into the code editor
3. After the endpoint has been created, click on the `Edit` button and copy/paste the following into the code editor

> [!IMPORTANT]
> Make sure to update `YOUR-SCRIPT-NAME-HERE` with the name of the script from the [previous step](#script)

```powershell
$readarrWebhookData = ConvertFrom-Json -InputObject $body
Expand All @@ -54,7 +52,10 @@ I have only tested this script with sending to a Kindle, but if you have a diffe
Invoke-PSUScript -Name 'YOUR-SCRIPT-NAME-HERE' -Author $bookAuthor -BookTitle $bookTitle -BookFilePath $bookFilePath -Wait
```
1. Click `Save`
> [!IMPORTANT]
> Make sure to update `YOUR-SCRIPT-NAME-HERE` with the name of the script from the [previous step](#script)
4. Click `Save`
#### Variables
Expand Down

0 comments on commit 7c9fe30

Please sign in to comment.