Skip to content

Commit

Permalink
Changing "API token" to "OAuth access token" in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
soxtoby committed Mar 8, 2020
1 parent a94d0b8 commit 9298e24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ There are three NuGet packages available to install, depending on your use case.
### SlackNet
To use the Web API:
```c#
var api = new SlackApiClient("<your API token here>");
var api = new SlackApiClient("<your OAuth access token here>");
```
then start calling methods:
```c#
Expand All @@ -19,7 +19,7 @@ var channels = await api.Channels.List();

To use the RTM API:
```c#
var rtm = new SlackRtmClient("<your API token here>");
var rtm = new SlackRtmClient("<your OAuth access token here>");
await rtm.Connect();
rtm.Events.Subscribe(/* handle every event */);
rtm.Messages.Subscribe(/* handle message events */);
Expand Down Expand Up @@ -72,7 +72,7 @@ In your Startup class:
```c#
public void ConfigureServices(IServiceCollection services)
{
services.AddSlackNet(c => c.UseApiToken("<your API token here>"));
services.AddSlackNet(c => c.UseApiToken("<your OAuth access token here>"));
}

public void Configure(IApplicationBuilder app, IHostingEnvironment env)
Expand Down

0 comments on commit 9298e24

Please sign in to comment.