Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions streamerbot/1.get-started/5.examples/http-post.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Read more about the `Execute C# Code` sub-action

```cs [Basic Setup]
using System;
using System.Text;
using System.Text;
using System.Threading.Tasks;
using System.Net.Http;
using System.Net.Http.Headers;
Expand All @@ -60,7 +60,6 @@ Read more about the `Execute C# Code` sub-action
// ...
return true;
}
}
```

::tip{color=amber}
Expand All @@ -71,7 +70,7 @@ Read more about the `Execute C# Code` sub-action

- We are going to send a `%userName%` and `%userId%` pair (from common triggers) as `PUT` request to our fictional logging website.

```cs [Send PUT payload in Execute method]
```cs [Send PUT payload in Execute method]
public bool Execute() {
// Get the arguments - or abort if it does not exist
if(!CPH.TryGetArg("userName", out string userName)) return false;
Expand Down
Loading