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-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
-
# Sent Dm Ruby API library
1
+
# Sent Ruby API library
2
2
3
-
The Sent Dm Ruby library provides convenient access to the Sent Dm REST API from any Ruby 3.2.0+ application. It ships with comprehensive types & docstrings in Yard, RBS, and RBI – [see below](https://github.com/sentdm/sent-dm-ruby#Sorbet) for usage with Sorbet. The standard library's `net/http` is used as the HTTP transport, with connection pooling via the `connection_pool` gem.
3
+
The Sent Ruby library provides convenient access to the Sent REST API from any Ruby 3.2.0+ application. It ships with comprehensive types & docstrings in Yard, RBS, and RBI – [see below](https://github.com/sentdm/sent-dm-ruby#Sorbet) for usage with Sorbet. The standard library's `net/http` is used as the HTTP transport, with connection pooling via the `connection_pool` gem.
4
4
5
5
It is generated with [Stainless](https://www.stainless.com/).
6
6
7
7
## MCP Server
8
8
9
-
Use the Sent Dm MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
9
+
Use the Sent MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
10
10
11
11
[](https://cursor.com/en-US/install-mcp?name=%40sentdm%2Fsentdm-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBzZW50ZG0vc2VudGRtLW1jcCJdLCJlbnYiOnsiU0VOVF9ETV9BUElfS0VZIjoiTXkgQVBJIEtleSJ9fQ)
12
12
[](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40sentdm%2Fsentdm-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40sentdm%2Fsentdm-mcp%22%5D%2C%22env%22%3A%7B%22SENT_DM_API_KEY%22%3A%22My%20API%20Key%22%7D%7D)
@@ -37,11 +37,11 @@ gem "sentdm", "~> 0.11.1"
37
37
require"bundler/setup"
38
38
require"sentdm"
39
39
40
-
sent_dm=Sentdm::Client.new(
40
+
sent=Sentdm::Client.new(
41
41
api_key:ENV["SENT_DM_API_KEY"] # This is the default and can be omitted
42
42
)
43
43
44
-
response =sent_dm.messages.send_(
44
+
response =sent.messages.send_(
45
45
channel: ["sms", "whatsapp"],
46
46
template: {
47
47
id:"7ba7b820-9dad-11d1-80b4-00c04fd430c8",
@@ -60,7 +60,7 @@ When the library is unable to connect to the API, or if the API returns a non-su
60
60
61
61
```ruby
62
62
begin
63
-
message =sent_dm.messages.send_(
63
+
message =sent.messages.send_(
64
64
channel: ["sms"],
65
65
template: {
66
66
id:"7ba7b820-9dad-11d1-80b4-00c04fd430c8",
@@ -106,12 +106,12 @@ You can use the `max_retries` option to configure or disable this:
106
106
107
107
```ruby
108
108
# Configure the default for all requests:
109
-
sent_dm=Sentdm::Client.new(
109
+
sent=Sentdm::Client.new(
110
110
max_retries:0# default is 2
111
111
)
112
112
113
113
# Or, configure per-request:
114
-
sent_dm.messages.send_(
114
+
sent.messages.send_(
115
115
channel: ["sms"],
116
116
template: {
117
117
id:"7ba7b820-9dad-11d1-80b4-00c04fd430c8",
@@ -129,12 +129,12 @@ By default, requests will time out after 60 seconds. You can use the timeout opt
129
129
130
130
```ruby
131
131
# Configure the default for all requests:
132
-
sent_dm=Sentdm::Client.new(
132
+
sent=Sentdm::Client.new(
133
133
timeout:nil# default is 60
134
134
)
135
135
136
136
# Or, configure per-request:
137
-
sent_dm.messages.send_(
137
+
sent.messages.send_(
138
138
channel: ["sms"],
139
139
template: {
140
140
id:"7ba7b820-9dad-11d1-80b4-00c04fd430c8",
@@ -174,7 +174,7 @@ Note: the `extra_` parameters of the same name overrides the documented paramete
174
174
175
175
```ruby
176
176
response =
177
-
sent_dm.messages.send_(
177
+
sent.messages.send_(
178
178
channel: ["sms"],
179
179
template: {
180
180
id:"7ba7b820-9dad-11d1-80b4-00c04fd430c8",
@@ -227,7 +227,7 @@ This library provides comprehensive [RBI](https://sorbet.org/docs/rbi) definitio
227
227
You can provide typesafe request parameters like so:
0 commit comments