You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-7Lines changed: 14 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,17 +30,24 @@ Or install it yourself as:
30
30
31
31
## Usage
32
32
33
-
The library needs to be configured with your account's API key which is
34
-
available in your [Emailable Dashboard](https://app.emailable.com/api). Set
35
-
`Emailable.api_key` to its value:
33
+
### Authentication
36
34
37
-
### Setup
35
+
The Emailable API can be authenticated with in a few ways. You will need an API key or an Access Token to authenticate. API keys are available in your [Emailable Dashboard](https://app.emailable.com/api).
36
+
37
+
The library can be configured globally with your account's API key
38
+
39
+
```ruby
40
+
Emailable.api_key ='your_api_key
41
+
```
42
+
43
+
Alternatively, you can pass an `api_key` or an `access_token` at request time to any of the endpoint methods.
0 commit comments