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

fix: knockapi to knock in readme examples #14

Merged
merged 1 commit into from
Jun 15, 2023
Merged
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
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Knock.key = 'sk_12345'
### Identifying users

```ruby
require "knockapi"
require "knock"

Knock.key = "sk_12345"

Expand All @@ -50,7 +50,7 @@ Knock::Users.identify(
### Sending notifies (triggering workflows)

```ruby
require "knockapi"
require "knock"

Knock.key = "sk_12345"

Expand All @@ -74,7 +74,7 @@ Knock::Workflows.trigger(
### Retrieving users

```ruby
require "knockapi"
require "knock"

Knock.key = "sk_12345"

Expand All @@ -84,7 +84,7 @@ Knock::Users.get(id: "jhammond")
### Deleting users

```ruby
require "knockapi"
require "knock"

Knock.key = "sk_12345"

Expand All @@ -94,7 +94,7 @@ Knock::Users.delete(id: "jhammond")
### Preferences

```ruby
require "knockapi"
require "knock"
Knock.key = "sk_12345"

# Set an entire preference set
Expand All @@ -115,7 +115,7 @@ Knock::Users.get_preferences(user_id: "jhammond")
### Getting and setting channel data

```ruby
require "knockapi"
require "knock"
Knock.key = "sk_12345"

# Set channel data for an APNS
Expand All @@ -134,7 +134,7 @@ Knock::Users.get_channel_data(user_id: "jhammond", channel_id: KNOCK_APNS_CHANNE
### Cancelling workflows

```ruby
require "knockapi"
require "knock"
Knock.key = "sk_12345"

Knock::Workflows.cancel(
Expand Down