Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add PowerShell push message instructions #85

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

eternal-flame-AD
Copy link
Member

Ref: gotify/server#674

Added instructions for pushing messages on a PowerShell environment without cURL.

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>

```bash
$ curl "https://push.example.de/message?token=<apptoken>" -F "title=my title" -F "message=my message" -F "priority=5"
$ http -f POST "https://push.example.de/message?token=<apptoken>" title="my title" message="my message" priority="5"
```

On Microsoft PowerShell, you could alternatively use the built-in `Invoke-RestMethod` or `Invoke-WebRequest` cmdlets.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for adding it here instead of https://gotify.net/docs/more-pushmsg?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My thought was to cover most systems in the main page (and most systems either have curl or powershell), but I'm okay with putting it in the more pages too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍, just wanted to make sure it was a conscious decision. I'm okay with both, your choice (:.

@eternal-flame-AD eternal-flame-AD merged commit 50753f6 into master Jul 30, 2024
2 checks passed
@eternal-flame-AD eternal-flame-AD deleted the pwsh-push-messages branch July 30, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants