agentmail 0.2.21 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wrapper/Client.d.ts +29 -0
- package/dist/cjs/wrapper/Client.js +111 -0
- package/dist/cjs/wrapper/WebsocketsClient.d.ts +8 -0
- package/dist/cjs/wrapper/WebsocketsClient.js +74 -0
- package/dist/cjs/wrapper/index.d.ts +1 -0
- package/dist/cjs/wrapper/index.js +5 -0
- package/dist/cjs/wrapper/mpp.d.ts +2 -0
- package/dist/cjs/wrapper/mpp.js +25 -0
- package/dist/cjs/wrapper/probe402.d.ts +1 -0
- package/dist/cjs/wrapper/probe402.js +22 -0
- package/dist/cjs/wrapper/x402.d.ts +2 -0
- package/dist/cjs/wrapper/x402.js +64 -0
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/index.d.mts +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/esm/wrapper/Client.d.mts +29 -0
- package/dist/esm/wrapper/Client.mjs +74 -0
- package/dist/esm/wrapper/WebsocketsClient.d.mts +8 -0
- package/dist/esm/wrapper/WebsocketsClient.mjs +37 -0
- package/dist/esm/wrapper/index.d.mts +1 -0
- package/dist/esm/wrapper/index.mjs +1 -0
- package/dist/esm/wrapper/mpp.d.mts +2 -0
- package/dist/esm/wrapper/mpp.mjs +22 -0
- package/dist/esm/wrapper/probe402.d.mts +1 -0
- package/dist/esm/wrapper/probe402.mjs +19 -0
- package/dist/esm/wrapper/x402.d.mts +2 -0
- package/dist/esm/wrapper/x402.mjs +28 -0
- package/dist/llms-full.txt +52 -361
- package/package.json +1 -1
package/dist/llms-full.txt
CHANGED
|
@@ -8686,7 +8686,6 @@ package main
|
|
|
8686
8686
|
|
|
8687
8687
|
import (
|
|
8688
8688
|
"fmt"
|
|
8689
|
-
"strings"
|
|
8690
8689
|
"net/http"
|
|
8691
8690
|
"io"
|
|
8692
8691
|
)
|
|
@@ -8695,12 +8694,9 @@ func main() {
|
|
|
8695
8694
|
|
|
8696
8695
|
url := "https://api.agentmail.to/v0/inboxes"
|
|
8697
8696
|
|
|
8698
|
-
|
|
8699
|
-
|
|
8700
|
-
req, _ := http.NewRequest("GET", url, payload)
|
|
8697
|
+
req, _ := http.NewRequest("GET", url, nil)
|
|
8701
8698
|
|
|
8702
8699
|
req.Header.Add("Authorization", "Bearer <api_key>")
|
|
8703
|
-
req.Header.Add("Content-Type", "application/json")
|
|
8704
8700
|
|
|
8705
8701
|
res, _ := http.DefaultClient.Do(req)
|
|
8706
8702
|
|
|
@@ -8724,8 +8720,6 @@ http.use_ssl = true
|
|
|
8724
8720
|
|
|
8725
8721
|
request = Net::HTTP::Get.new(url)
|
|
8726
8722
|
request["Authorization"] = 'Bearer <api_key>'
|
|
8727
|
-
request["Content-Type"] = 'application/json'
|
|
8728
|
-
request.body = "{}"
|
|
8729
8723
|
|
|
8730
8724
|
response = http.request(request)
|
|
8731
8725
|
puts response.read_body
|
|
@@ -8737,8 +8731,6 @@ import com.mashape.unirest.http.Unirest;
|
|
|
8737
8731
|
|
|
8738
8732
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes")
|
|
8739
8733
|
.header("Authorization", "Bearer <api_key>")
|
|
8740
|
-
.header("Content-Type", "application/json")
|
|
8741
|
-
.body("{}")
|
|
8742
8734
|
.asString();
|
|
8743
8735
|
```
|
|
8744
8736
|
|
|
@@ -8749,10 +8741,8 @@ require_once('vendor/autoload.php');
|
|
|
8749
8741
|
$client = new \GuzzleHttp\Client();
|
|
8750
8742
|
|
|
8751
8743
|
$response = $client->request('GET', 'https://api.agentmail.to/v0/inboxes', [
|
|
8752
|
-
'body' => '{}',
|
|
8753
8744
|
'headers' => [
|
|
8754
8745
|
'Authorization' => 'Bearer <api_key>',
|
|
8755
|
-
'Content-Type' => 'application/json',
|
|
8756
8746
|
],
|
|
8757
8747
|
]);
|
|
8758
8748
|
|
|
@@ -8765,28 +8755,19 @@ using RestSharp;
|
|
|
8765
8755
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes");
|
|
8766
8756
|
var request = new RestRequest(Method.GET);
|
|
8767
8757
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
8768
|
-
request.AddHeader("Content-Type", "application/json");
|
|
8769
|
-
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
|
|
8770
8758
|
IRestResponse response = client.Execute(request);
|
|
8771
8759
|
```
|
|
8772
8760
|
|
|
8773
8761
|
```swift
|
|
8774
8762
|
import Foundation
|
|
8775
8763
|
|
|
8776
|
-
let headers = [
|
|
8777
|
-
"Authorization": "Bearer <api_key>",
|
|
8778
|
-
"Content-Type": "application/json"
|
|
8779
|
-
]
|
|
8780
|
-
let parameters = [] as [String : Any]
|
|
8781
|
-
|
|
8782
|
-
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
|
|
8764
|
+
let headers = ["Authorization": "Bearer <api_key>"]
|
|
8783
8765
|
|
|
8784
8766
|
let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes")! as URL,
|
|
8785
8767
|
cachePolicy: .useProtocolCachePolicy,
|
|
8786
8768
|
timeoutInterval: 10.0)
|
|
8787
8769
|
request.httpMethod = "GET"
|
|
8788
8770
|
request.allHTTPHeaderFields = headers
|
|
8789
|
-
request.httpBody = postData as Data
|
|
8790
8771
|
|
|
8791
8772
|
let session = URLSession.shared
|
|
8792
8773
|
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
|
|
@@ -8915,7 +8896,6 @@ package main
|
|
|
8915
8896
|
|
|
8916
8897
|
import (
|
|
8917
8898
|
"fmt"
|
|
8918
|
-
"strings"
|
|
8919
8899
|
"net/http"
|
|
8920
8900
|
"io"
|
|
8921
8901
|
)
|
|
@@ -8924,12 +8904,9 @@ func main() {
|
|
|
8924
8904
|
|
|
8925
8905
|
url := "https://api.agentmail.to/v0/inboxes/inbox_id"
|
|
8926
8906
|
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
req, _ := http.NewRequest("GET", url, payload)
|
|
8907
|
+
req, _ := http.NewRequest("GET", url, nil)
|
|
8930
8908
|
|
|
8931
8909
|
req.Header.Add("Authorization", "Bearer <api_key>")
|
|
8932
|
-
req.Header.Add("Content-Type", "application/json")
|
|
8933
8910
|
|
|
8934
8911
|
res, _ := http.DefaultClient.Do(req)
|
|
8935
8912
|
|
|
@@ -8953,8 +8930,6 @@ http.use_ssl = true
|
|
|
8953
8930
|
|
|
8954
8931
|
request = Net::HTTP::Get.new(url)
|
|
8955
8932
|
request["Authorization"] = 'Bearer <api_key>'
|
|
8956
|
-
request["Content-Type"] = 'application/json'
|
|
8957
|
-
request.body = "{}"
|
|
8958
8933
|
|
|
8959
8934
|
response = http.request(request)
|
|
8960
8935
|
puts response.read_body
|
|
@@ -8966,8 +8941,6 @@ import com.mashape.unirest.http.Unirest;
|
|
|
8966
8941
|
|
|
8967
8942
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/inbox_id")
|
|
8968
8943
|
.header("Authorization", "Bearer <api_key>")
|
|
8969
|
-
.header("Content-Type", "application/json")
|
|
8970
|
-
.body("{}")
|
|
8971
8944
|
.asString();
|
|
8972
8945
|
```
|
|
8973
8946
|
|
|
@@ -8978,10 +8951,8 @@ require_once('vendor/autoload.php');
|
|
|
8978
8951
|
$client = new \GuzzleHttp\Client();
|
|
8979
8952
|
|
|
8980
8953
|
$response = $client->request('GET', 'https://api.agentmail.to/v0/inboxes/inbox_id', [
|
|
8981
|
-
'body' => '{}',
|
|
8982
8954
|
'headers' => [
|
|
8983
8955
|
'Authorization' => 'Bearer <api_key>',
|
|
8984
|
-
'Content-Type' => 'application/json',
|
|
8985
8956
|
],
|
|
8986
8957
|
]);
|
|
8987
8958
|
|
|
@@ -8994,28 +8965,19 @@ using RestSharp;
|
|
|
8994
8965
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id");
|
|
8995
8966
|
var request = new RestRequest(Method.GET);
|
|
8996
8967
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
8997
|
-
request.AddHeader("Content-Type", "application/json");
|
|
8998
|
-
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
|
|
8999
8968
|
IRestResponse response = client.Execute(request);
|
|
9000
8969
|
```
|
|
9001
8970
|
|
|
9002
8971
|
```swift
|
|
9003
8972
|
import Foundation
|
|
9004
8973
|
|
|
9005
|
-
let headers = [
|
|
9006
|
-
"Authorization": "Bearer <api_key>",
|
|
9007
|
-
"Content-Type": "application/json"
|
|
9008
|
-
]
|
|
9009
|
-
let parameters = [] as [String : Any]
|
|
9010
|
-
|
|
9011
|
-
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
|
|
8974
|
+
let headers = ["Authorization": "Bearer <api_key>"]
|
|
9012
8975
|
|
|
9013
8976
|
let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/inbox_id")! as URL,
|
|
9014
8977
|
cachePolicy: .useProtocolCachePolicy,
|
|
9015
8978
|
timeoutInterval: 10.0)
|
|
9016
8979
|
request.httpMethod = "GET"
|
|
9017
8980
|
request.allHTTPHeaderFields = headers
|
|
9018
|
-
request.httpBody = postData as Data
|
|
9019
8981
|
|
|
9020
8982
|
let session = URLSession.shared
|
|
9021
8983
|
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
|
|
@@ -9136,10 +9098,7 @@ async function main() {
|
|
|
9136
9098
|
const client = new AgentMailClient({
|
|
9137
9099
|
apiKey: "YOUR_TOKEN_HERE",
|
|
9138
9100
|
});
|
|
9139
|
-
await client.inboxes.create(
|
|
9140
|
-
displayName: "Customer Support Inbox",
|
|
9141
|
-
clientId: "1c6e9f4a-8b2d-4f3a-9d7e-2a1b3c4d5e6f",
|
|
9142
|
-
});
|
|
9101
|
+
await client.inboxes.create();
|
|
9143
9102
|
}
|
|
9144
9103
|
main();
|
|
9145
9104
|
|
|
@@ -9152,10 +9111,7 @@ client = AgentMail(
|
|
|
9152
9111
|
api_key="YOUR_TOKEN_HERE"
|
|
9153
9112
|
)
|
|
9154
9113
|
|
|
9155
|
-
client.inboxes.create(
|
|
9156
|
-
display_name="Customer Support Inbox",
|
|
9157
|
-
client_id="1c6e9f4a-8b2d-4f3a-9d7e-2a1b3c4d5e6f"
|
|
9158
|
-
)
|
|
9114
|
+
client.inboxes.create()
|
|
9159
9115
|
|
|
9160
9116
|
```
|
|
9161
9117
|
|
|
@@ -9164,7 +9120,6 @@ package main
|
|
|
9164
9120
|
|
|
9165
9121
|
import (
|
|
9166
9122
|
"fmt"
|
|
9167
|
-
"strings"
|
|
9168
9123
|
"net/http"
|
|
9169
9124
|
"io"
|
|
9170
9125
|
)
|
|
@@ -9173,9 +9128,7 @@ func main() {
|
|
|
9173
9128
|
|
|
9174
9129
|
url := "https://api.agentmail.to/v0/inboxes"
|
|
9175
9130
|
|
|
9176
|
-
|
|
9177
|
-
|
|
9178
|
-
req, _ := http.NewRequest("POST", url, payload)
|
|
9131
|
+
req, _ := http.NewRequest("POST", url, nil)
|
|
9179
9132
|
|
|
9180
9133
|
req.Header.Add("Authorization", "Bearer <api_key>")
|
|
9181
9134
|
req.Header.Add("Content-Type", "application/json")
|
|
@@ -9203,7 +9156,6 @@ http.use_ssl = true
|
|
|
9203
9156
|
request = Net::HTTP::Post.new(url)
|
|
9204
9157
|
request["Authorization"] = 'Bearer <api_key>'
|
|
9205
9158
|
request["Content-Type"] = 'application/json'
|
|
9206
|
-
request.body = "{\n \"display_name\": \"Customer Support Inbox\",\n \"client_id\": \"1c6e9f4a-8b2d-4f3a-9d7e-2a1b3c4d5e6f\",\n \"pod_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"inbox_id\": \"support@example.com\"\n}"
|
|
9207
9159
|
|
|
9208
9160
|
response = http.request(request)
|
|
9209
9161
|
puts response.read_body
|
|
@@ -9216,7 +9168,6 @@ import com.mashape.unirest.http.Unirest;
|
|
|
9216
9168
|
HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/inboxes")
|
|
9217
9169
|
.header("Authorization", "Bearer <api_key>")
|
|
9218
9170
|
.header("Content-Type", "application/json")
|
|
9219
|
-
.body("{\n \"display_name\": \"Customer Support Inbox\",\n \"client_id\": \"1c6e9f4a-8b2d-4f3a-9d7e-2a1b3c4d5e6f\",\n \"pod_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"inbox_id\": \"support@example.com\"\n}")
|
|
9220
9171
|
.asString();
|
|
9221
9172
|
```
|
|
9222
9173
|
|
|
@@ -9227,12 +9178,6 @@ require_once('vendor/autoload.php');
|
|
|
9227
9178
|
$client = new \GuzzleHttp\Client();
|
|
9228
9179
|
|
|
9229
9180
|
$response = $client->request('POST', 'https://api.agentmail.to/v0/inboxes', [
|
|
9230
|
-
'body' => '{
|
|
9231
|
-
"display_name": "Customer Support Inbox",
|
|
9232
|
-
"client_id": "1c6e9f4a-8b2d-4f3a-9d7e-2a1b3c4d5e6f",
|
|
9233
|
-
"pod_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
9234
|
-
"inbox_id": "support@example.com"
|
|
9235
|
-
}',
|
|
9236
9181
|
'headers' => [
|
|
9237
9182
|
'Authorization' => 'Bearer <api_key>',
|
|
9238
9183
|
'Content-Type' => 'application/json',
|
|
@@ -9249,7 +9194,6 @@ var client = new RestClient("https://api.agentmail.to/v0/inboxes");
|
|
|
9249
9194
|
var request = new RestRequest(Method.POST);
|
|
9250
9195
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
9251
9196
|
request.AddHeader("Content-Type", "application/json");
|
|
9252
|
-
request.AddParameter("application/json", "{\n \"display_name\": \"Customer Support Inbox\",\n \"client_id\": \"1c6e9f4a-8b2d-4f3a-9d7e-2a1b3c4d5e6f\",\n \"pod_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"inbox_id\": \"support@example.com\"\n}", ParameterType.RequestBody);
|
|
9253
9197
|
IRestResponse response = client.Execute(request);
|
|
9254
9198
|
```
|
|
9255
9199
|
|
|
@@ -9260,21 +9204,12 @@ let headers = [
|
|
|
9260
9204
|
"Authorization": "Bearer <api_key>",
|
|
9261
9205
|
"Content-Type": "application/json"
|
|
9262
9206
|
]
|
|
9263
|
-
let parameters = [
|
|
9264
|
-
"display_name": "Customer Support Inbox",
|
|
9265
|
-
"client_id": "1c6e9f4a-8b2d-4f3a-9d7e-2a1b3c4d5e6f",
|
|
9266
|
-
"pod_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
9267
|
-
"inbox_id": "support@example.com"
|
|
9268
|
-
] as [String : Any]
|
|
9269
|
-
|
|
9270
|
-
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
|
|
9271
9207
|
|
|
9272
9208
|
let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes")! as URL,
|
|
9273
9209
|
cachePolicy: .useProtocolCachePolicy,
|
|
9274
9210
|
timeoutInterval: 10.0)
|
|
9275
9211
|
request.httpMethod = "POST"
|
|
9276
9212
|
request.allHTTPHeaderFields = headers
|
|
9277
|
-
request.httpBody = postData as Data
|
|
9278
9213
|
|
|
9279
9214
|
let session = URLSession.shared
|
|
9280
9215
|
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
|
|
@@ -9992,7 +9927,6 @@ package main
|
|
|
9992
9927
|
|
|
9993
9928
|
import (
|
|
9994
9929
|
"fmt"
|
|
9995
|
-
"strings"
|
|
9996
9930
|
"net/http"
|
|
9997
9931
|
"io"
|
|
9998
9932
|
)
|
|
@@ -10001,12 +9935,9 @@ func main() {
|
|
|
10001
9935
|
|
|
10002
9936
|
url := "https://api.agentmail.to/v0/inboxes/inbox_id/threads"
|
|
10003
9937
|
|
|
10004
|
-
|
|
10005
|
-
|
|
10006
|
-
req, _ := http.NewRequest("GET", url, payload)
|
|
9938
|
+
req, _ := http.NewRequest("GET", url, nil)
|
|
10007
9939
|
|
|
10008
9940
|
req.Header.Add("Authorization", "Bearer <api_key>")
|
|
10009
|
-
req.Header.Add("Content-Type", "application/json")
|
|
10010
9941
|
|
|
10011
9942
|
res, _ := http.DefaultClient.Do(req)
|
|
10012
9943
|
|
|
@@ -10030,8 +9961,6 @@ http.use_ssl = true
|
|
|
10030
9961
|
|
|
10031
9962
|
request = Net::HTTP::Get.new(url)
|
|
10032
9963
|
request["Authorization"] = 'Bearer <api_key>'
|
|
10033
|
-
request["Content-Type"] = 'application/json'
|
|
10034
|
-
request.body = "{}"
|
|
10035
9964
|
|
|
10036
9965
|
response = http.request(request)
|
|
10037
9966
|
puts response.read_body
|
|
@@ -10043,8 +9972,6 @@ import com.mashape.unirest.http.Unirest;
|
|
|
10043
9972
|
|
|
10044
9973
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/inbox_id/threads")
|
|
10045
9974
|
.header("Authorization", "Bearer <api_key>")
|
|
10046
|
-
.header("Content-Type", "application/json")
|
|
10047
|
-
.body("{}")
|
|
10048
9975
|
.asString();
|
|
10049
9976
|
```
|
|
10050
9977
|
|
|
@@ -10055,10 +9982,8 @@ require_once('vendor/autoload.php');
|
|
|
10055
9982
|
$client = new \GuzzleHttp\Client();
|
|
10056
9983
|
|
|
10057
9984
|
$response = $client->request('GET', 'https://api.agentmail.to/v0/inboxes/inbox_id/threads', [
|
|
10058
|
-
'body' => '{}',
|
|
10059
9985
|
'headers' => [
|
|
10060
9986
|
'Authorization' => 'Bearer <api_key>',
|
|
10061
|
-
'Content-Type' => 'application/json',
|
|
10062
9987
|
],
|
|
10063
9988
|
]);
|
|
10064
9989
|
|
|
@@ -10071,28 +9996,19 @@ using RestSharp;
|
|
|
10071
9996
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/threads");
|
|
10072
9997
|
var request = new RestRequest(Method.GET);
|
|
10073
9998
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
10074
|
-
request.AddHeader("Content-Type", "application/json");
|
|
10075
|
-
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
|
|
10076
9999
|
IRestResponse response = client.Execute(request);
|
|
10077
10000
|
```
|
|
10078
10001
|
|
|
10079
10002
|
```swift
|
|
10080
10003
|
import Foundation
|
|
10081
10004
|
|
|
10082
|
-
let headers = [
|
|
10083
|
-
"Authorization": "Bearer <api_key>",
|
|
10084
|
-
"Content-Type": "application/json"
|
|
10085
|
-
]
|
|
10086
|
-
let parameters = [] as [String : Any]
|
|
10087
|
-
|
|
10088
|
-
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
|
|
10005
|
+
let headers = ["Authorization": "Bearer <api_key>"]
|
|
10089
10006
|
|
|
10090
10007
|
let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/inbox_id/threads")! as URL,
|
|
10091
10008
|
cachePolicy: .useProtocolCachePolicy,
|
|
10092
10009
|
timeoutInterval: 10.0)
|
|
10093
10010
|
request.httpMethod = "GET"
|
|
10094
10011
|
request.allHTTPHeaderFields = headers
|
|
10095
|
-
request.httpBody = postData as Data
|
|
10096
10012
|
|
|
10097
10013
|
let session = URLSession.shared
|
|
10098
10014
|
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
|
|
@@ -16032,7 +15948,6 @@ package main
|
|
|
16032
15948
|
|
|
16033
15949
|
import (
|
|
16034
15950
|
"fmt"
|
|
16035
|
-
"strings"
|
|
16036
15951
|
"net/http"
|
|
16037
15952
|
"io"
|
|
16038
15953
|
)
|
|
@@ -16041,12 +15956,9 @@ func main() {
|
|
|
16041
15956
|
|
|
16042
15957
|
url := "https://api.agentmail.to/v0/inboxes/inbox_id/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z"
|
|
16043
15958
|
|
|
16044
|
-
|
|
16045
|
-
|
|
16046
|
-
req, _ := http.NewRequest("GET", url, payload)
|
|
15959
|
+
req, _ := http.NewRequest("GET", url, nil)
|
|
16047
15960
|
|
|
16048
15961
|
req.Header.Add("Authorization", "Bearer <api_key>")
|
|
16049
|
-
req.Header.Add("Content-Type", "application/json")
|
|
16050
15962
|
|
|
16051
15963
|
res, _ := http.DefaultClient.Do(req)
|
|
16052
15964
|
|
|
@@ -16070,8 +15982,6 @@ http.use_ssl = true
|
|
|
16070
15982
|
|
|
16071
15983
|
request = Net::HTTP::Get.new(url)
|
|
16072
15984
|
request["Authorization"] = 'Bearer <api_key>'
|
|
16073
|
-
request["Content-Type"] = 'application/json'
|
|
16074
|
-
request.body = "{}"
|
|
16075
15985
|
|
|
16076
15986
|
response = http.request(request)
|
|
16077
15987
|
puts response.read_body
|
|
@@ -16083,8 +15993,6 @@ import com.mashape.unirest.http.Unirest;
|
|
|
16083
15993
|
|
|
16084
15994
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/inbox_id/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z")
|
|
16085
15995
|
.header("Authorization", "Bearer <api_key>")
|
|
16086
|
-
.header("Content-Type", "application/json")
|
|
16087
|
-
.body("{}")
|
|
16088
15996
|
.asString();
|
|
16089
15997
|
```
|
|
16090
15998
|
|
|
@@ -16095,10 +16003,8 @@ require_once('vendor/autoload.php');
|
|
|
16095
16003
|
$client = new \GuzzleHttp\Client();
|
|
16096
16004
|
|
|
16097
16005
|
$response = $client->request('GET', 'https://api.agentmail.to/v0/inboxes/inbox_id/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z', [
|
|
16098
|
-
'body' => '{}',
|
|
16099
16006
|
'headers' => [
|
|
16100
16007
|
'Authorization' => 'Bearer <api_key>',
|
|
16101
|
-
'Content-Type' => 'application/json',
|
|
16102
16008
|
],
|
|
16103
16009
|
]);
|
|
16104
16010
|
|
|
@@ -16111,28 +16017,19 @@ using RestSharp;
|
|
|
16111
16017
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z");
|
|
16112
16018
|
var request = new RestRequest(Method.GET);
|
|
16113
16019
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
16114
|
-
request.AddHeader("Content-Type", "application/json");
|
|
16115
|
-
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
|
|
16116
16020
|
IRestResponse response = client.Execute(request);
|
|
16117
16021
|
```
|
|
16118
16022
|
|
|
16119
16023
|
```swift
|
|
16120
16024
|
import Foundation
|
|
16121
16025
|
|
|
16122
|
-
let headers = [
|
|
16123
|
-
"Authorization": "Bearer <api_key>",
|
|
16124
|
-
"Content-Type": "application/json"
|
|
16125
|
-
]
|
|
16126
|
-
let parameters = [] as [String : Any]
|
|
16127
|
-
|
|
16128
|
-
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
|
|
16026
|
+
let headers = ["Authorization": "Bearer <api_key>"]
|
|
16129
16027
|
|
|
16130
16028
|
let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/inbox_id/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z")! as URL,
|
|
16131
16029
|
cachePolicy: .useProtocolCachePolicy,
|
|
16132
16030
|
timeoutInterval: 10.0)
|
|
16133
16031
|
request.httpMethod = "GET"
|
|
16134
16032
|
request.allHTTPHeaderFields = headers
|
|
16135
|
-
request.httpBody = postData as Data
|
|
16136
16033
|
|
|
16137
16034
|
let session = URLSession.shared
|
|
16138
16035
|
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
|
|
@@ -16419,7 +16316,6 @@ package main
|
|
|
16419
16316
|
|
|
16420
16317
|
import (
|
|
16421
16318
|
"fmt"
|
|
16422
|
-
"strings"
|
|
16423
16319
|
"net/http"
|
|
16424
16320
|
"io"
|
|
16425
16321
|
)
|
|
@@ -16428,12 +16324,9 @@ func main() {
|
|
|
16428
16324
|
|
|
16429
16325
|
url := "https://api.agentmail.to/v0/threads"
|
|
16430
16326
|
|
|
16431
|
-
|
|
16432
|
-
|
|
16433
|
-
req, _ := http.NewRequest("GET", url, payload)
|
|
16327
|
+
req, _ := http.NewRequest("GET", url, nil)
|
|
16434
16328
|
|
|
16435
16329
|
req.Header.Add("Authorization", "Bearer <api_key>")
|
|
16436
|
-
req.Header.Add("Content-Type", "application/json")
|
|
16437
16330
|
|
|
16438
16331
|
res, _ := http.DefaultClient.Do(req)
|
|
16439
16332
|
|
|
@@ -16457,8 +16350,6 @@ http.use_ssl = true
|
|
|
16457
16350
|
|
|
16458
16351
|
request = Net::HTTP::Get.new(url)
|
|
16459
16352
|
request["Authorization"] = 'Bearer <api_key>'
|
|
16460
|
-
request["Content-Type"] = 'application/json'
|
|
16461
|
-
request.body = "{}"
|
|
16462
16353
|
|
|
16463
16354
|
response = http.request(request)
|
|
16464
16355
|
puts response.read_body
|
|
@@ -16470,8 +16361,6 @@ import com.mashape.unirest.http.Unirest;
|
|
|
16470
16361
|
|
|
16471
16362
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/threads")
|
|
16472
16363
|
.header("Authorization", "Bearer <api_key>")
|
|
16473
|
-
.header("Content-Type", "application/json")
|
|
16474
|
-
.body("{}")
|
|
16475
16364
|
.asString();
|
|
16476
16365
|
```
|
|
16477
16366
|
|
|
@@ -16482,10 +16371,8 @@ require_once('vendor/autoload.php');
|
|
|
16482
16371
|
$client = new \GuzzleHttp\Client();
|
|
16483
16372
|
|
|
16484
16373
|
$response = $client->request('GET', 'https://api.agentmail.to/v0/threads', [
|
|
16485
|
-
'body' => '{}',
|
|
16486
16374
|
'headers' => [
|
|
16487
16375
|
'Authorization' => 'Bearer <api_key>',
|
|
16488
|
-
'Content-Type' => 'application/json',
|
|
16489
16376
|
],
|
|
16490
16377
|
]);
|
|
16491
16378
|
|
|
@@ -16498,28 +16385,19 @@ using RestSharp;
|
|
|
16498
16385
|
var client = new RestClient("https://api.agentmail.to/v0/threads");
|
|
16499
16386
|
var request = new RestRequest(Method.GET);
|
|
16500
16387
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
16501
|
-
request.AddHeader("Content-Type", "application/json");
|
|
16502
|
-
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
|
|
16503
16388
|
IRestResponse response = client.Execute(request);
|
|
16504
16389
|
```
|
|
16505
16390
|
|
|
16506
16391
|
```swift
|
|
16507
16392
|
import Foundation
|
|
16508
16393
|
|
|
16509
|
-
let headers = [
|
|
16510
|
-
"Authorization": "Bearer <api_key>",
|
|
16511
|
-
"Content-Type": "application/json"
|
|
16512
|
-
]
|
|
16513
|
-
let parameters = [] as [String : Any]
|
|
16514
|
-
|
|
16515
|
-
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
|
|
16394
|
+
let headers = ["Authorization": "Bearer <api_key>"]
|
|
16516
16395
|
|
|
16517
16396
|
let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/threads")! as URL,
|
|
16518
16397
|
cachePolicy: .useProtocolCachePolicy,
|
|
16519
16398
|
timeoutInterval: 10.0)
|
|
16520
16399
|
request.httpMethod = "GET"
|
|
16521
16400
|
request.allHTTPHeaderFields = headers
|
|
16522
|
-
request.httpBody = postData as Data
|
|
16523
16401
|
|
|
16524
16402
|
let session = URLSession.shared
|
|
16525
16403
|
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
|
|
@@ -18222,7 +18100,6 @@ package main
|
|
|
18222
18100
|
|
|
18223
18101
|
import (
|
|
18224
18102
|
"fmt"
|
|
18225
|
-
"strings"
|
|
18226
18103
|
"net/http"
|
|
18227
18104
|
"io"
|
|
18228
18105
|
)
|
|
@@ -18231,12 +18108,9 @@ func main() {
|
|
|
18231
18108
|
|
|
18232
18109
|
url := "https://api.agentmail.to/v0/domains"
|
|
18233
18110
|
|
|
18234
|
-
|
|
18235
|
-
|
|
18236
|
-
req, _ := http.NewRequest("GET", url, payload)
|
|
18111
|
+
req, _ := http.NewRequest("GET", url, nil)
|
|
18237
18112
|
|
|
18238
18113
|
req.Header.Add("Authorization", "Bearer <api_key>")
|
|
18239
|
-
req.Header.Add("Content-Type", "application/json")
|
|
18240
18114
|
|
|
18241
18115
|
res, _ := http.DefaultClient.Do(req)
|
|
18242
18116
|
|
|
@@ -18260,8 +18134,6 @@ http.use_ssl = true
|
|
|
18260
18134
|
|
|
18261
18135
|
request = Net::HTTP::Get.new(url)
|
|
18262
18136
|
request["Authorization"] = 'Bearer <api_key>'
|
|
18263
|
-
request["Content-Type"] = 'application/json'
|
|
18264
|
-
request.body = "{}"
|
|
18265
18137
|
|
|
18266
18138
|
response = http.request(request)
|
|
18267
18139
|
puts response.read_body
|
|
@@ -18273,8 +18145,6 @@ import com.mashape.unirest.http.Unirest;
|
|
|
18273
18145
|
|
|
18274
18146
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/domains")
|
|
18275
18147
|
.header("Authorization", "Bearer <api_key>")
|
|
18276
|
-
.header("Content-Type", "application/json")
|
|
18277
|
-
.body("{}")
|
|
18278
18148
|
.asString();
|
|
18279
18149
|
```
|
|
18280
18150
|
|
|
@@ -18285,10 +18155,8 @@ require_once('vendor/autoload.php');
|
|
|
18285
18155
|
$client = new \GuzzleHttp\Client();
|
|
18286
18156
|
|
|
18287
18157
|
$response = $client->request('GET', 'https://api.agentmail.to/v0/domains', [
|
|
18288
|
-
'body' => '{}',
|
|
18289
18158
|
'headers' => [
|
|
18290
18159
|
'Authorization' => 'Bearer <api_key>',
|
|
18291
|
-
'Content-Type' => 'application/json',
|
|
18292
18160
|
],
|
|
18293
18161
|
]);
|
|
18294
18162
|
|
|
@@ -18301,28 +18169,19 @@ using RestSharp;
|
|
|
18301
18169
|
var client = new RestClient("https://api.agentmail.to/v0/domains");
|
|
18302
18170
|
var request = new RestRequest(Method.GET);
|
|
18303
18171
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
18304
|
-
request.AddHeader("Content-Type", "application/json");
|
|
18305
|
-
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
|
|
18306
18172
|
IRestResponse response = client.Execute(request);
|
|
18307
18173
|
```
|
|
18308
18174
|
|
|
18309
18175
|
```swift
|
|
18310
18176
|
import Foundation
|
|
18311
18177
|
|
|
18312
|
-
let headers = [
|
|
18313
|
-
"Authorization": "Bearer <api_key>",
|
|
18314
|
-
"Content-Type": "application/json"
|
|
18315
|
-
]
|
|
18316
|
-
let parameters = [] as [String : Any]
|
|
18317
|
-
|
|
18318
|
-
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
|
|
18178
|
+
let headers = ["Authorization": "Bearer <api_key>"]
|
|
18319
18179
|
|
|
18320
18180
|
let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/domains")! as URL,
|
|
18321
18181
|
cachePolicy: .useProtocolCachePolicy,
|
|
18322
18182
|
timeoutInterval: 10.0)
|
|
18323
18183
|
request.httpMethod = "GET"
|
|
18324
18184
|
request.allHTTPHeaderFields = headers
|
|
18325
|
-
request.httpBody = postData as Data
|
|
18326
18185
|
|
|
18327
18186
|
let session = URLSession.shared
|
|
18328
18187
|
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
|
|
@@ -18940,7 +18799,7 @@ async function main() {
|
|
|
18940
18799
|
apiKey: "YOUR_TOKEN_HERE",
|
|
18941
18800
|
});
|
|
18942
18801
|
await client.domains.create({
|
|
18943
|
-
domain: "
|
|
18802
|
+
domain: "domain",
|
|
18944
18803
|
feedbackEnabled: true,
|
|
18945
18804
|
});
|
|
18946
18805
|
}
|
|
@@ -18956,7 +18815,7 @@ client = AgentMail(
|
|
|
18956
18815
|
)
|
|
18957
18816
|
|
|
18958
18817
|
client.domains.create(
|
|
18959
|
-
domain="
|
|
18818
|
+
domain="domain",
|
|
18960
18819
|
feedback_enabled=True
|
|
18961
18820
|
)
|
|
18962
18821
|
|
|
@@ -18976,7 +18835,7 @@ func main() {
|
|
|
18976
18835
|
|
|
18977
18836
|
url := "https://api.agentmail.to/v0/domains"
|
|
18978
18837
|
|
|
18979
|
-
payload := strings.NewReader("{\n \"domain\": \"
|
|
18838
|
+
payload := strings.NewReader("{\n \"domain\": \"domain\",\n \"feedback_enabled\": true\n}")
|
|
18980
18839
|
|
|
18981
18840
|
req, _ := http.NewRequest("POST", url, payload)
|
|
18982
18841
|
|
|
@@ -19006,7 +18865,7 @@ http.use_ssl = true
|
|
|
19006
18865
|
request = Net::HTTP::Post.new(url)
|
|
19007
18866
|
request["Authorization"] = 'Bearer <api_key>'
|
|
19008
18867
|
request["Content-Type"] = 'application/json'
|
|
19009
|
-
request.body = "{\n \"domain\": \"
|
|
18868
|
+
request.body = "{\n \"domain\": \"domain\",\n \"feedback_enabled\": true\n}"
|
|
19010
18869
|
|
|
19011
18870
|
response = http.request(request)
|
|
19012
18871
|
puts response.read_body
|
|
@@ -19019,7 +18878,7 @@ import com.mashape.unirest.http.Unirest;
|
|
|
19019
18878
|
HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/domains")
|
|
19020
18879
|
.header("Authorization", "Bearer <api_key>")
|
|
19021
18880
|
.header("Content-Type", "application/json")
|
|
19022
|
-
.body("{\n \"domain\": \"
|
|
18881
|
+
.body("{\n \"domain\": \"domain\",\n \"feedback_enabled\": true\n}")
|
|
19023
18882
|
.asString();
|
|
19024
18883
|
```
|
|
19025
18884
|
|
|
@@ -19031,7 +18890,7 @@ $client = new \GuzzleHttp\Client();
|
|
|
19031
18890
|
|
|
19032
18891
|
$response = $client->request('POST', 'https://api.agentmail.to/v0/domains', [
|
|
19033
18892
|
'body' => '{
|
|
19034
|
-
"domain": "
|
|
18893
|
+
"domain": "domain",
|
|
19035
18894
|
"feedback_enabled": true
|
|
19036
18895
|
}',
|
|
19037
18896
|
'headers' => [
|
|
@@ -19050,7 +18909,7 @@ var client = new RestClient("https://api.agentmail.to/v0/domains");
|
|
|
19050
18909
|
var request = new RestRequest(Method.POST);
|
|
19051
18910
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
19052
18911
|
request.AddHeader("Content-Type", "application/json");
|
|
19053
|
-
request.AddParameter("application/json", "{\n \"domain\": \"
|
|
18912
|
+
request.AddParameter("application/json", "{\n \"domain\": \"domain\",\n \"feedback_enabled\": true\n}", ParameterType.RequestBody);
|
|
19054
18913
|
IRestResponse response = client.Execute(request);
|
|
19055
18914
|
```
|
|
19056
18915
|
|
|
@@ -19062,7 +18921,7 @@ let headers = [
|
|
|
19062
18921
|
"Content-Type": "application/json"
|
|
19063
18922
|
]
|
|
19064
18923
|
let parameters = [
|
|
19065
|
-
"domain": "
|
|
18924
|
+
"domain": "domain",
|
|
19066
18925
|
"feedback_enabled": true
|
|
19067
18926
|
] as [String : Any]
|
|
19068
18927
|
|
|
@@ -21840,6 +21699,9 @@ servers:
|
|
|
21840
21699
|
prod-x402:
|
|
21841
21700
|
url: wss://x402.ws.agentmail.to/
|
|
21842
21701
|
protocol: wss
|
|
21702
|
+
prod-mpp:
|
|
21703
|
+
url: wss://mpp.ws.agentmail.to/
|
|
21704
|
+
protocol: wss
|
|
21843
21705
|
eu-prod:
|
|
21844
21706
|
url: wss://ws.agentmail.eu/
|
|
21845
21707
|
protocol: wss
|
|
@@ -22752,7 +22614,6 @@ package main
|
|
|
22752
22614
|
|
|
22753
22615
|
import (
|
|
22754
22616
|
"fmt"
|
|
22755
|
-
"strings"
|
|
22756
22617
|
"net/http"
|
|
22757
22618
|
"io"
|
|
22758
22619
|
)
|
|
@@ -22761,12 +22622,9 @@ func main() {
|
|
|
22761
22622
|
|
|
22762
22623
|
url := "https://api.agentmail.to/v0/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z"
|
|
22763
22624
|
|
|
22764
|
-
|
|
22765
|
-
|
|
22766
|
-
req, _ := http.NewRequest("GET", url, payload)
|
|
22625
|
+
req, _ := http.NewRequest("GET", url, nil)
|
|
22767
22626
|
|
|
22768
22627
|
req.Header.Add("Authorization", "Bearer <api_key>")
|
|
22769
|
-
req.Header.Add("Content-Type", "application/json")
|
|
22770
22628
|
|
|
22771
22629
|
res, _ := http.DefaultClient.Do(req)
|
|
22772
22630
|
|
|
@@ -22790,8 +22648,6 @@ http.use_ssl = true
|
|
|
22790
22648
|
|
|
22791
22649
|
request = Net::HTTP::Get.new(url)
|
|
22792
22650
|
request["Authorization"] = 'Bearer <api_key>'
|
|
22793
|
-
request["Content-Type"] = 'application/json'
|
|
22794
|
-
request.body = "{}"
|
|
22795
22651
|
|
|
22796
22652
|
response = http.request(request)
|
|
22797
22653
|
puts response.read_body
|
|
@@ -22803,8 +22659,6 @@ import com.mashape.unirest.http.Unirest;
|
|
|
22803
22659
|
|
|
22804
22660
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z")
|
|
22805
22661
|
.header("Authorization", "Bearer <api_key>")
|
|
22806
|
-
.header("Content-Type", "application/json")
|
|
22807
|
-
.body("{}")
|
|
22808
22662
|
.asString();
|
|
22809
22663
|
```
|
|
22810
22664
|
|
|
@@ -22815,10 +22669,8 @@ require_once('vendor/autoload.php');
|
|
|
22815
22669
|
$client = new \GuzzleHttp\Client();
|
|
22816
22670
|
|
|
22817
22671
|
$response = $client->request('GET', 'https://api.agentmail.to/v0/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z', [
|
|
22818
|
-
'body' => '{}',
|
|
22819
22672
|
'headers' => [
|
|
22820
22673
|
'Authorization' => 'Bearer <api_key>',
|
|
22821
|
-
'Content-Type' => 'application/json',
|
|
22822
22674
|
],
|
|
22823
22675
|
]);
|
|
22824
22676
|
|
|
@@ -22831,28 +22683,19 @@ using RestSharp;
|
|
|
22831
22683
|
var client = new RestClient("https://api.agentmail.to/v0/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z");
|
|
22832
22684
|
var request = new RestRequest(Method.GET);
|
|
22833
22685
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
22834
|
-
request.AddHeader("Content-Type", "application/json");
|
|
22835
|
-
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
|
|
22836
22686
|
IRestResponse response = client.Execute(request);
|
|
22837
22687
|
```
|
|
22838
22688
|
|
|
22839
22689
|
```swift
|
|
22840
22690
|
import Foundation
|
|
22841
22691
|
|
|
22842
|
-
let headers = [
|
|
22843
|
-
"Authorization": "Bearer <api_key>",
|
|
22844
|
-
"Content-Type": "application/json"
|
|
22845
|
-
]
|
|
22846
|
-
let parameters = [] as [String : Any]
|
|
22847
|
-
|
|
22848
|
-
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
|
|
22692
|
+
let headers = ["Authorization": "Bearer <api_key>"]
|
|
22849
22693
|
|
|
22850
22694
|
let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z")! as URL,
|
|
22851
22695
|
cachePolicy: .useProtocolCachePolicy,
|
|
22852
22696
|
timeoutInterval: 10.0)
|
|
22853
22697
|
request.httpMethod = "GET"
|
|
22854
22698
|
request.allHTTPHeaderFields = headers
|
|
22855
|
-
request.httpBody = postData as Data
|
|
22856
22699
|
|
|
22857
22700
|
let session = URLSession.shared
|
|
22858
22701
|
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
|
|
@@ -22999,7 +22842,6 @@ package main
|
|
|
22999
22842
|
|
|
23000
22843
|
import (
|
|
23001
22844
|
"fmt"
|
|
23002
|
-
"strings"
|
|
23003
22845
|
"net/http"
|
|
23004
22846
|
"io"
|
|
23005
22847
|
)
|
|
@@ -23008,12 +22850,9 @@ func main() {
|
|
|
23008
22850
|
|
|
23009
22851
|
url := "https://api.agentmail.to/v0/api-keys"
|
|
23010
22852
|
|
|
23011
|
-
|
|
23012
|
-
|
|
23013
|
-
req, _ := http.NewRequest("GET", url, payload)
|
|
22853
|
+
req, _ := http.NewRequest("GET", url, nil)
|
|
23014
22854
|
|
|
23015
22855
|
req.Header.Add("Authorization", "Bearer <api_key>")
|
|
23016
|
-
req.Header.Add("Content-Type", "application/json")
|
|
23017
22856
|
|
|
23018
22857
|
res, _ := http.DefaultClient.Do(req)
|
|
23019
22858
|
|
|
@@ -23037,8 +22876,6 @@ http.use_ssl = true
|
|
|
23037
22876
|
|
|
23038
22877
|
request = Net::HTTP::Get.new(url)
|
|
23039
22878
|
request["Authorization"] = 'Bearer <api_key>'
|
|
23040
|
-
request["Content-Type"] = 'application/json'
|
|
23041
|
-
request.body = "{}"
|
|
23042
22879
|
|
|
23043
22880
|
response = http.request(request)
|
|
23044
22881
|
puts response.read_body
|
|
@@ -23050,8 +22887,6 @@ import com.mashape.unirest.http.Unirest;
|
|
|
23050
22887
|
|
|
23051
22888
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/api-keys")
|
|
23052
22889
|
.header("Authorization", "Bearer <api_key>")
|
|
23053
|
-
.header("Content-Type", "application/json")
|
|
23054
|
-
.body("{}")
|
|
23055
22890
|
.asString();
|
|
23056
22891
|
```
|
|
23057
22892
|
|
|
@@ -23062,10 +22897,8 @@ require_once('vendor/autoload.php');
|
|
|
23062
22897
|
$client = new \GuzzleHttp\Client();
|
|
23063
22898
|
|
|
23064
22899
|
$response = $client->request('GET', 'https://api.agentmail.to/v0/api-keys', [
|
|
23065
|
-
'body' => '{}',
|
|
23066
22900
|
'headers' => [
|
|
23067
22901
|
'Authorization' => 'Bearer <api_key>',
|
|
23068
|
-
'Content-Type' => 'application/json',
|
|
23069
22902
|
],
|
|
23070
22903
|
]);
|
|
23071
22904
|
|
|
@@ -23078,28 +22911,19 @@ using RestSharp;
|
|
|
23078
22911
|
var client = new RestClient("https://api.agentmail.to/v0/api-keys");
|
|
23079
22912
|
var request = new RestRequest(Method.GET);
|
|
23080
22913
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
23081
|
-
request.AddHeader("Content-Type", "application/json");
|
|
23082
|
-
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
|
|
23083
22914
|
IRestResponse response = client.Execute(request);
|
|
23084
22915
|
```
|
|
23085
22916
|
|
|
23086
22917
|
```swift
|
|
23087
22918
|
import Foundation
|
|
23088
22919
|
|
|
23089
|
-
let headers = [
|
|
23090
|
-
"Authorization": "Bearer <api_key>",
|
|
23091
|
-
"Content-Type": "application/json"
|
|
23092
|
-
]
|
|
23093
|
-
let parameters = [] as [String : Any]
|
|
23094
|
-
|
|
23095
|
-
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
|
|
22920
|
+
let headers = ["Authorization": "Bearer <api_key>"]
|
|
23096
22921
|
|
|
23097
22922
|
let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/api-keys")! as URL,
|
|
23098
22923
|
cachePolicy: .useProtocolCachePolicy,
|
|
23099
22924
|
timeoutInterval: 10.0)
|
|
23100
22925
|
request.httpMethod = "GET"
|
|
23101
22926
|
request.allHTTPHeaderFields = headers
|
|
23102
|
-
request.httpBody = postData as Data
|
|
23103
22927
|
|
|
23104
22928
|
let session = URLSession.shared
|
|
23105
22929
|
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
|
|
@@ -23661,7 +23485,6 @@ package main
|
|
|
23661
23485
|
|
|
23662
23486
|
import (
|
|
23663
23487
|
"fmt"
|
|
23664
|
-
"strings"
|
|
23665
23488
|
"net/http"
|
|
23666
23489
|
"io"
|
|
23667
23490
|
)
|
|
@@ -23670,12 +23493,9 @@ func main() {
|
|
|
23670
23493
|
|
|
23671
23494
|
url := "https://api.agentmail.to/v0/pods"
|
|
23672
23495
|
|
|
23673
|
-
|
|
23674
|
-
|
|
23675
|
-
req, _ := http.NewRequest("GET", url, payload)
|
|
23496
|
+
req, _ := http.NewRequest("GET", url, nil)
|
|
23676
23497
|
|
|
23677
23498
|
req.Header.Add("Authorization", "Bearer <api_key>")
|
|
23678
|
-
req.Header.Add("Content-Type", "application/json")
|
|
23679
23499
|
|
|
23680
23500
|
res, _ := http.DefaultClient.Do(req)
|
|
23681
23501
|
|
|
@@ -23699,8 +23519,6 @@ http.use_ssl = true
|
|
|
23699
23519
|
|
|
23700
23520
|
request = Net::HTTP::Get.new(url)
|
|
23701
23521
|
request["Authorization"] = 'Bearer <api_key>'
|
|
23702
|
-
request["Content-Type"] = 'application/json'
|
|
23703
|
-
request.body = "{}"
|
|
23704
23522
|
|
|
23705
23523
|
response = http.request(request)
|
|
23706
23524
|
puts response.read_body
|
|
@@ -23712,8 +23530,6 @@ import com.mashape.unirest.http.Unirest;
|
|
|
23712
23530
|
|
|
23713
23531
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods")
|
|
23714
23532
|
.header("Authorization", "Bearer <api_key>")
|
|
23715
|
-
.header("Content-Type", "application/json")
|
|
23716
|
-
.body("{}")
|
|
23717
23533
|
.asString();
|
|
23718
23534
|
```
|
|
23719
23535
|
|
|
@@ -23724,10 +23540,8 @@ require_once('vendor/autoload.php');
|
|
|
23724
23540
|
$client = new \GuzzleHttp\Client();
|
|
23725
23541
|
|
|
23726
23542
|
$response = $client->request('GET', 'https://api.agentmail.to/v0/pods', [
|
|
23727
|
-
'body' => '{}',
|
|
23728
23543
|
'headers' => [
|
|
23729
23544
|
'Authorization' => 'Bearer <api_key>',
|
|
23730
|
-
'Content-Type' => 'application/json',
|
|
23731
23545
|
],
|
|
23732
23546
|
]);
|
|
23733
23547
|
|
|
@@ -23740,28 +23554,19 @@ using RestSharp;
|
|
|
23740
23554
|
var client = new RestClient("https://api.agentmail.to/v0/pods");
|
|
23741
23555
|
var request = new RestRequest(Method.GET);
|
|
23742
23556
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
23743
|
-
request.AddHeader("Content-Type", "application/json");
|
|
23744
|
-
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
|
|
23745
23557
|
IRestResponse response = client.Execute(request);
|
|
23746
23558
|
```
|
|
23747
23559
|
|
|
23748
23560
|
```swift
|
|
23749
23561
|
import Foundation
|
|
23750
23562
|
|
|
23751
|
-
let headers = [
|
|
23752
|
-
"Authorization": "Bearer <api_key>",
|
|
23753
|
-
"Content-Type": "application/json"
|
|
23754
|
-
]
|
|
23755
|
-
let parameters = [] as [String : Any]
|
|
23756
|
-
|
|
23757
|
-
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
|
|
23563
|
+
let headers = ["Authorization": "Bearer <api_key>"]
|
|
23758
23564
|
|
|
23759
23565
|
let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/pods")! as URL,
|
|
23760
23566
|
cachePolicy: .useProtocolCachePolicy,
|
|
23761
23567
|
timeoutInterval: 10.0)
|
|
23762
23568
|
request.httpMethod = "GET"
|
|
23763
23569
|
request.allHTTPHeaderFields = headers
|
|
23764
|
-
request.httpBody = postData as Data
|
|
23765
23570
|
|
|
23766
23571
|
let session = URLSession.shared
|
|
23767
23572
|
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
|
|
@@ -23886,7 +23691,6 @@ package main
|
|
|
23886
23691
|
|
|
23887
23692
|
import (
|
|
23888
23693
|
"fmt"
|
|
23889
|
-
"strings"
|
|
23890
23694
|
"net/http"
|
|
23891
23695
|
"io"
|
|
23892
23696
|
)
|
|
@@ -23895,12 +23699,9 @@ func main() {
|
|
|
23895
23699
|
|
|
23896
23700
|
url := "https://api.agentmail.to/v0/pods/pod_id"
|
|
23897
23701
|
|
|
23898
|
-
|
|
23899
|
-
|
|
23900
|
-
req, _ := http.NewRequest("GET", url, payload)
|
|
23702
|
+
req, _ := http.NewRequest("GET", url, nil)
|
|
23901
23703
|
|
|
23902
23704
|
req.Header.Add("Authorization", "Bearer <api_key>")
|
|
23903
|
-
req.Header.Add("Content-Type", "application/json")
|
|
23904
23705
|
|
|
23905
23706
|
res, _ := http.DefaultClient.Do(req)
|
|
23906
23707
|
|
|
@@ -23924,8 +23725,6 @@ http.use_ssl = true
|
|
|
23924
23725
|
|
|
23925
23726
|
request = Net::HTTP::Get.new(url)
|
|
23926
23727
|
request["Authorization"] = 'Bearer <api_key>'
|
|
23927
|
-
request["Content-Type"] = 'application/json'
|
|
23928
|
-
request.body = "{}"
|
|
23929
23728
|
|
|
23930
23729
|
response = http.request(request)
|
|
23931
23730
|
puts response.read_body
|
|
@@ -23937,8 +23736,6 @@ import com.mashape.unirest.http.Unirest;
|
|
|
23937
23736
|
|
|
23938
23737
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/pod_id")
|
|
23939
23738
|
.header("Authorization", "Bearer <api_key>")
|
|
23940
|
-
.header("Content-Type", "application/json")
|
|
23941
|
-
.body("{}")
|
|
23942
23739
|
.asString();
|
|
23943
23740
|
```
|
|
23944
23741
|
|
|
@@ -23949,10 +23746,8 @@ require_once('vendor/autoload.php');
|
|
|
23949
23746
|
$client = new \GuzzleHttp\Client();
|
|
23950
23747
|
|
|
23951
23748
|
$response = $client->request('GET', 'https://api.agentmail.to/v0/pods/pod_id', [
|
|
23952
|
-
'body' => '{}',
|
|
23953
23749
|
'headers' => [
|
|
23954
23750
|
'Authorization' => 'Bearer <api_key>',
|
|
23955
|
-
'Content-Type' => 'application/json',
|
|
23956
23751
|
],
|
|
23957
23752
|
]);
|
|
23958
23753
|
|
|
@@ -23965,28 +23760,19 @@ using RestSharp;
|
|
|
23965
23760
|
var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id");
|
|
23966
23761
|
var request = new RestRequest(Method.GET);
|
|
23967
23762
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
23968
|
-
request.AddHeader("Content-Type", "application/json");
|
|
23969
|
-
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
|
|
23970
23763
|
IRestResponse response = client.Execute(request);
|
|
23971
23764
|
```
|
|
23972
23765
|
|
|
23973
23766
|
```swift
|
|
23974
23767
|
import Foundation
|
|
23975
23768
|
|
|
23976
|
-
let headers = [
|
|
23977
|
-
"Authorization": "Bearer <api_key>",
|
|
23978
|
-
"Content-Type": "application/json"
|
|
23979
|
-
]
|
|
23980
|
-
let parameters = [] as [String : Any]
|
|
23981
|
-
|
|
23982
|
-
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
|
|
23769
|
+
let headers = ["Authorization": "Bearer <api_key>"]
|
|
23983
23770
|
|
|
23984
23771
|
let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/pods/pod_id")! as URL,
|
|
23985
23772
|
cachePolicy: .useProtocolCachePolicy,
|
|
23986
23773
|
timeoutInterval: 10.0)
|
|
23987
23774
|
request.httpMethod = "GET"
|
|
23988
23775
|
request.allHTTPHeaderFields = headers
|
|
23989
|
-
request.httpBody = postData as Data
|
|
23990
23776
|
|
|
23991
23777
|
let session = URLSession.shared
|
|
23992
23778
|
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
|
|
@@ -24556,7 +24342,6 @@ package main
|
|
|
24556
24342
|
|
|
24557
24343
|
import (
|
|
24558
24344
|
"fmt"
|
|
24559
|
-
"strings"
|
|
24560
24345
|
"net/http"
|
|
24561
24346
|
"io"
|
|
24562
24347
|
)
|
|
@@ -24565,12 +24350,9 @@ func main() {
|
|
|
24565
24350
|
|
|
24566
24351
|
url := "https://api.agentmail.to/v0/pods/pod_id/inboxes"
|
|
24567
24352
|
|
|
24568
|
-
|
|
24569
|
-
|
|
24570
|
-
req, _ := http.NewRequest("GET", url, payload)
|
|
24353
|
+
req, _ := http.NewRequest("GET", url, nil)
|
|
24571
24354
|
|
|
24572
24355
|
req.Header.Add("Authorization", "Bearer <api_key>")
|
|
24573
|
-
req.Header.Add("Content-Type", "application/json")
|
|
24574
24356
|
|
|
24575
24357
|
res, _ := http.DefaultClient.Do(req)
|
|
24576
24358
|
|
|
@@ -24594,8 +24376,6 @@ http.use_ssl = true
|
|
|
24594
24376
|
|
|
24595
24377
|
request = Net::HTTP::Get.new(url)
|
|
24596
24378
|
request["Authorization"] = 'Bearer <api_key>'
|
|
24597
|
-
request["Content-Type"] = 'application/json'
|
|
24598
|
-
request.body = "{}"
|
|
24599
24379
|
|
|
24600
24380
|
response = http.request(request)
|
|
24601
24381
|
puts response.read_body
|
|
@@ -24607,8 +24387,6 @@ import com.mashape.unirest.http.Unirest;
|
|
|
24607
24387
|
|
|
24608
24388
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/pod_id/inboxes")
|
|
24609
24389
|
.header("Authorization", "Bearer <api_key>")
|
|
24610
|
-
.header("Content-Type", "application/json")
|
|
24611
|
-
.body("{}")
|
|
24612
24390
|
.asString();
|
|
24613
24391
|
```
|
|
24614
24392
|
|
|
@@ -24619,10 +24397,8 @@ require_once('vendor/autoload.php');
|
|
|
24619
24397
|
$client = new \GuzzleHttp\Client();
|
|
24620
24398
|
|
|
24621
24399
|
$response = $client->request('GET', 'https://api.agentmail.to/v0/pods/pod_id/inboxes', [
|
|
24622
|
-
'body' => '{}',
|
|
24623
24400
|
'headers' => [
|
|
24624
24401
|
'Authorization' => 'Bearer <api_key>',
|
|
24625
|
-
'Content-Type' => 'application/json',
|
|
24626
24402
|
],
|
|
24627
24403
|
]);
|
|
24628
24404
|
|
|
@@ -24635,28 +24411,19 @@ using RestSharp;
|
|
|
24635
24411
|
var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id/inboxes");
|
|
24636
24412
|
var request = new RestRequest(Method.GET);
|
|
24637
24413
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
24638
|
-
request.AddHeader("Content-Type", "application/json");
|
|
24639
|
-
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
|
|
24640
24414
|
IRestResponse response = client.Execute(request);
|
|
24641
24415
|
```
|
|
24642
24416
|
|
|
24643
24417
|
```swift
|
|
24644
24418
|
import Foundation
|
|
24645
24419
|
|
|
24646
|
-
let headers = [
|
|
24647
|
-
"Authorization": "Bearer <api_key>",
|
|
24648
|
-
"Content-Type": "application/json"
|
|
24649
|
-
]
|
|
24650
|
-
let parameters = [] as [String : Any]
|
|
24651
|
-
|
|
24652
|
-
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
|
|
24420
|
+
let headers = ["Authorization": "Bearer <api_key>"]
|
|
24653
24421
|
|
|
24654
24422
|
let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/pods/pod_id/inboxes")! as URL,
|
|
24655
24423
|
cachePolicy: .useProtocolCachePolicy,
|
|
24656
24424
|
timeoutInterval: 10.0)
|
|
24657
24425
|
request.httpMethod = "GET"
|
|
24658
24426
|
request.allHTTPHeaderFields = headers
|
|
24659
|
-
request.httpBody = postData as Data
|
|
24660
24427
|
|
|
24661
24428
|
let session = URLSession.shared
|
|
24662
24429
|
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
|
|
@@ -24792,7 +24559,6 @@ package main
|
|
|
24792
24559
|
|
|
24793
24560
|
import (
|
|
24794
24561
|
"fmt"
|
|
24795
|
-
"strings"
|
|
24796
24562
|
"net/http"
|
|
24797
24563
|
"io"
|
|
24798
24564
|
)
|
|
@@ -24801,12 +24567,9 @@ func main() {
|
|
|
24801
24567
|
|
|
24802
24568
|
url := "https://api.agentmail.to/v0/pods/pod_id/inboxes/inbox_id"
|
|
24803
24569
|
|
|
24804
|
-
|
|
24805
|
-
|
|
24806
|
-
req, _ := http.NewRequest("GET", url, payload)
|
|
24570
|
+
req, _ := http.NewRequest("GET", url, nil)
|
|
24807
24571
|
|
|
24808
24572
|
req.Header.Add("Authorization", "Bearer <api_key>")
|
|
24809
|
-
req.Header.Add("Content-Type", "application/json")
|
|
24810
24573
|
|
|
24811
24574
|
res, _ := http.DefaultClient.Do(req)
|
|
24812
24575
|
|
|
@@ -24830,8 +24593,6 @@ http.use_ssl = true
|
|
|
24830
24593
|
|
|
24831
24594
|
request = Net::HTTP::Get.new(url)
|
|
24832
24595
|
request["Authorization"] = 'Bearer <api_key>'
|
|
24833
|
-
request["Content-Type"] = 'application/json'
|
|
24834
|
-
request.body = "{}"
|
|
24835
24596
|
|
|
24836
24597
|
response = http.request(request)
|
|
24837
24598
|
puts response.read_body
|
|
@@ -24843,8 +24604,6 @@ import com.mashape.unirest.http.Unirest;
|
|
|
24843
24604
|
|
|
24844
24605
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/pod_id/inboxes/inbox_id")
|
|
24845
24606
|
.header("Authorization", "Bearer <api_key>")
|
|
24846
|
-
.header("Content-Type", "application/json")
|
|
24847
|
-
.body("{}")
|
|
24848
24607
|
.asString();
|
|
24849
24608
|
```
|
|
24850
24609
|
|
|
@@ -24855,10 +24614,8 @@ require_once('vendor/autoload.php');
|
|
|
24855
24614
|
$client = new \GuzzleHttp\Client();
|
|
24856
24615
|
|
|
24857
24616
|
$response = $client->request('GET', 'https://api.agentmail.to/v0/pods/pod_id/inboxes/inbox_id', [
|
|
24858
|
-
'body' => '{}',
|
|
24859
24617
|
'headers' => [
|
|
24860
24618
|
'Authorization' => 'Bearer <api_key>',
|
|
24861
|
-
'Content-Type' => 'application/json',
|
|
24862
24619
|
],
|
|
24863
24620
|
]);
|
|
24864
24621
|
|
|
@@ -24871,28 +24628,19 @@ using RestSharp;
|
|
|
24871
24628
|
var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id/inboxes/inbox_id");
|
|
24872
24629
|
var request = new RestRequest(Method.GET);
|
|
24873
24630
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
24874
|
-
request.AddHeader("Content-Type", "application/json");
|
|
24875
|
-
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
|
|
24876
24631
|
IRestResponse response = client.Execute(request);
|
|
24877
24632
|
```
|
|
24878
24633
|
|
|
24879
24634
|
```swift
|
|
24880
24635
|
import Foundation
|
|
24881
24636
|
|
|
24882
|
-
let headers = [
|
|
24883
|
-
"Authorization": "Bearer <api_key>",
|
|
24884
|
-
"Content-Type": "application/json"
|
|
24885
|
-
]
|
|
24886
|
-
let parameters = [] as [String : Any]
|
|
24887
|
-
|
|
24888
|
-
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
|
|
24637
|
+
let headers = ["Authorization": "Bearer <api_key>"]
|
|
24889
24638
|
|
|
24890
24639
|
let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/pods/pod_id/inboxes/inbox_id")! as URL,
|
|
24891
24640
|
cachePolicy: .useProtocolCachePolicy,
|
|
24892
24641
|
timeoutInterval: 10.0)
|
|
24893
24642
|
request.httpMethod = "GET"
|
|
24894
24643
|
request.allHTTPHeaderFields = headers
|
|
24895
|
-
request.httpBody = postData as Data
|
|
24896
24644
|
|
|
24897
24645
|
let session = URLSession.shared
|
|
24898
24646
|
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
|
|
@@ -25625,7 +25373,6 @@ package main
|
|
|
25625
25373
|
|
|
25626
25374
|
import (
|
|
25627
25375
|
"fmt"
|
|
25628
|
-
"strings"
|
|
25629
25376
|
"net/http"
|
|
25630
25377
|
"io"
|
|
25631
25378
|
)
|
|
@@ -25634,12 +25381,9 @@ func main() {
|
|
|
25634
25381
|
|
|
25635
25382
|
url := "https://api.agentmail.to/v0/pods/pod_id/threads"
|
|
25636
25383
|
|
|
25637
|
-
|
|
25638
|
-
|
|
25639
|
-
req, _ := http.NewRequest("GET", url, payload)
|
|
25384
|
+
req, _ := http.NewRequest("GET", url, nil)
|
|
25640
25385
|
|
|
25641
25386
|
req.Header.Add("Authorization", "Bearer <api_key>")
|
|
25642
|
-
req.Header.Add("Content-Type", "application/json")
|
|
25643
25387
|
|
|
25644
25388
|
res, _ := http.DefaultClient.Do(req)
|
|
25645
25389
|
|
|
@@ -25663,8 +25407,6 @@ http.use_ssl = true
|
|
|
25663
25407
|
|
|
25664
25408
|
request = Net::HTTP::Get.new(url)
|
|
25665
25409
|
request["Authorization"] = 'Bearer <api_key>'
|
|
25666
|
-
request["Content-Type"] = 'application/json'
|
|
25667
|
-
request.body = "{}"
|
|
25668
25410
|
|
|
25669
25411
|
response = http.request(request)
|
|
25670
25412
|
puts response.read_body
|
|
@@ -25676,8 +25418,6 @@ import com.mashape.unirest.http.Unirest;
|
|
|
25676
25418
|
|
|
25677
25419
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/pod_id/threads")
|
|
25678
25420
|
.header("Authorization", "Bearer <api_key>")
|
|
25679
|
-
.header("Content-Type", "application/json")
|
|
25680
|
-
.body("{}")
|
|
25681
25421
|
.asString();
|
|
25682
25422
|
```
|
|
25683
25423
|
|
|
@@ -25688,10 +25428,8 @@ require_once('vendor/autoload.php');
|
|
|
25688
25428
|
$client = new \GuzzleHttp\Client();
|
|
25689
25429
|
|
|
25690
25430
|
$response = $client->request('GET', 'https://api.agentmail.to/v0/pods/pod_id/threads', [
|
|
25691
|
-
'body' => '{}',
|
|
25692
25431
|
'headers' => [
|
|
25693
25432
|
'Authorization' => 'Bearer <api_key>',
|
|
25694
|
-
'Content-Type' => 'application/json',
|
|
25695
25433
|
],
|
|
25696
25434
|
]);
|
|
25697
25435
|
|
|
@@ -25704,28 +25442,19 @@ using RestSharp;
|
|
|
25704
25442
|
var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id/threads");
|
|
25705
25443
|
var request = new RestRequest(Method.GET);
|
|
25706
25444
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
25707
|
-
request.AddHeader("Content-Type", "application/json");
|
|
25708
|
-
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
|
|
25709
25445
|
IRestResponse response = client.Execute(request);
|
|
25710
25446
|
```
|
|
25711
25447
|
|
|
25712
25448
|
```swift
|
|
25713
25449
|
import Foundation
|
|
25714
25450
|
|
|
25715
|
-
let headers = [
|
|
25716
|
-
"Authorization": "Bearer <api_key>",
|
|
25717
|
-
"Content-Type": "application/json"
|
|
25718
|
-
]
|
|
25719
|
-
let parameters = [] as [String : Any]
|
|
25720
|
-
|
|
25721
|
-
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
|
|
25451
|
+
let headers = ["Authorization": "Bearer <api_key>"]
|
|
25722
25452
|
|
|
25723
25453
|
let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/pods/pod_id/threads")! as URL,
|
|
25724
25454
|
cachePolicy: .useProtocolCachePolicy,
|
|
25725
25455
|
timeoutInterval: 10.0)
|
|
25726
25456
|
request.httpMethod = "GET"
|
|
25727
25457
|
request.allHTTPHeaderFields = headers
|
|
25728
|
-
request.httpBody = postData as Data
|
|
25729
25458
|
|
|
25730
25459
|
let session = URLSession.shared
|
|
25731
25460
|
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
|
|
@@ -27485,7 +27214,6 @@ package main
|
|
|
27485
27214
|
|
|
27486
27215
|
import (
|
|
27487
27216
|
"fmt"
|
|
27488
|
-
"strings"
|
|
27489
27217
|
"net/http"
|
|
27490
27218
|
"io"
|
|
27491
27219
|
)
|
|
@@ -27494,12 +27222,9 @@ func main() {
|
|
|
27494
27222
|
|
|
27495
27223
|
url := "https://api.agentmail.to/v0/pods/pod_id/domains"
|
|
27496
27224
|
|
|
27497
|
-
|
|
27498
|
-
|
|
27499
|
-
req, _ := http.NewRequest("GET", url, payload)
|
|
27225
|
+
req, _ := http.NewRequest("GET", url, nil)
|
|
27500
27226
|
|
|
27501
27227
|
req.Header.Add("Authorization", "Bearer <api_key>")
|
|
27502
|
-
req.Header.Add("Content-Type", "application/json")
|
|
27503
27228
|
|
|
27504
27229
|
res, _ := http.DefaultClient.Do(req)
|
|
27505
27230
|
|
|
@@ -27523,8 +27248,6 @@ http.use_ssl = true
|
|
|
27523
27248
|
|
|
27524
27249
|
request = Net::HTTP::Get.new(url)
|
|
27525
27250
|
request["Authorization"] = 'Bearer <api_key>'
|
|
27526
|
-
request["Content-Type"] = 'application/json'
|
|
27527
|
-
request.body = "{}"
|
|
27528
27251
|
|
|
27529
27252
|
response = http.request(request)
|
|
27530
27253
|
puts response.read_body
|
|
@@ -27536,8 +27259,6 @@ import com.mashape.unirest.http.Unirest;
|
|
|
27536
27259
|
|
|
27537
27260
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/pod_id/domains")
|
|
27538
27261
|
.header("Authorization", "Bearer <api_key>")
|
|
27539
|
-
.header("Content-Type", "application/json")
|
|
27540
|
-
.body("{}")
|
|
27541
27262
|
.asString();
|
|
27542
27263
|
```
|
|
27543
27264
|
|
|
@@ -27548,10 +27269,8 @@ require_once('vendor/autoload.php');
|
|
|
27548
27269
|
$client = new \GuzzleHttp\Client();
|
|
27549
27270
|
|
|
27550
27271
|
$response = $client->request('GET', 'https://api.agentmail.to/v0/pods/pod_id/domains', [
|
|
27551
|
-
'body' => '{}',
|
|
27552
27272
|
'headers' => [
|
|
27553
27273
|
'Authorization' => 'Bearer <api_key>',
|
|
27554
|
-
'Content-Type' => 'application/json',
|
|
27555
27274
|
],
|
|
27556
27275
|
]);
|
|
27557
27276
|
|
|
@@ -27564,28 +27283,19 @@ using RestSharp;
|
|
|
27564
27283
|
var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id/domains");
|
|
27565
27284
|
var request = new RestRequest(Method.GET);
|
|
27566
27285
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
27567
|
-
request.AddHeader("Content-Type", "application/json");
|
|
27568
|
-
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
|
|
27569
27286
|
IRestResponse response = client.Execute(request);
|
|
27570
27287
|
```
|
|
27571
27288
|
|
|
27572
27289
|
```swift
|
|
27573
27290
|
import Foundation
|
|
27574
27291
|
|
|
27575
|
-
let headers = [
|
|
27576
|
-
"Authorization": "Bearer <api_key>",
|
|
27577
|
-
"Content-Type": "application/json"
|
|
27578
|
-
]
|
|
27579
|
-
let parameters = [] as [String : Any]
|
|
27580
|
-
|
|
27581
|
-
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
|
|
27292
|
+
let headers = ["Authorization": "Bearer <api_key>"]
|
|
27582
27293
|
|
|
27583
27294
|
let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/pods/pod_id/domains")! as URL,
|
|
27584
27295
|
cachePolicy: .useProtocolCachePolicy,
|
|
27585
27296
|
timeoutInterval: 10.0)
|
|
27586
27297
|
request.httpMethod = "GET"
|
|
27587
27298
|
request.allHTTPHeaderFields = headers
|
|
27588
|
-
request.httpBody = postData as Data
|
|
27589
27299
|
|
|
27590
27300
|
let session = URLSession.shared
|
|
27591
27301
|
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
|
|
@@ -27764,7 +27474,7 @@ async function main() {
|
|
|
27764
27474
|
apiKey: "YOUR_TOKEN_HERE",
|
|
27765
27475
|
});
|
|
27766
27476
|
await client.pods.domains.create("pod_id", {
|
|
27767
|
-
domain: "
|
|
27477
|
+
domain: "domain",
|
|
27768
27478
|
feedbackEnabled: true,
|
|
27769
27479
|
});
|
|
27770
27480
|
}
|
|
@@ -27781,7 +27491,7 @@ client = AgentMail(
|
|
|
27781
27491
|
|
|
27782
27492
|
client.pods.domains.create(
|
|
27783
27493
|
pod_id="pod_id",
|
|
27784
|
-
domain="
|
|
27494
|
+
domain="domain",
|
|
27785
27495
|
feedback_enabled=True
|
|
27786
27496
|
)
|
|
27787
27497
|
|
|
@@ -27801,7 +27511,7 @@ func main() {
|
|
|
27801
27511
|
|
|
27802
27512
|
url := "https://api.agentmail.to/v0/pods/pod_id/domains"
|
|
27803
27513
|
|
|
27804
|
-
payload := strings.NewReader("{\n \"domain\": \"
|
|
27514
|
+
payload := strings.NewReader("{\n \"domain\": \"domain\",\n \"feedback_enabled\": true\n}")
|
|
27805
27515
|
|
|
27806
27516
|
req, _ := http.NewRequest("POST", url, payload)
|
|
27807
27517
|
|
|
@@ -27831,7 +27541,7 @@ http.use_ssl = true
|
|
|
27831
27541
|
request = Net::HTTP::Post.new(url)
|
|
27832
27542
|
request["Authorization"] = 'Bearer <api_key>'
|
|
27833
27543
|
request["Content-Type"] = 'application/json'
|
|
27834
|
-
request.body = "{\n \"domain\": \"
|
|
27544
|
+
request.body = "{\n \"domain\": \"domain\",\n \"feedback_enabled\": true\n}"
|
|
27835
27545
|
|
|
27836
27546
|
response = http.request(request)
|
|
27837
27547
|
puts response.read_body
|
|
@@ -27844,7 +27554,7 @@ import com.mashape.unirest.http.Unirest;
|
|
|
27844
27554
|
HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/pods/pod_id/domains")
|
|
27845
27555
|
.header("Authorization", "Bearer <api_key>")
|
|
27846
27556
|
.header("Content-Type", "application/json")
|
|
27847
|
-
.body("{\n \"domain\": \"
|
|
27557
|
+
.body("{\n \"domain\": \"domain\",\n \"feedback_enabled\": true\n}")
|
|
27848
27558
|
.asString();
|
|
27849
27559
|
```
|
|
27850
27560
|
|
|
@@ -27856,7 +27566,7 @@ $client = new \GuzzleHttp\Client();
|
|
|
27856
27566
|
|
|
27857
27567
|
$response = $client->request('POST', 'https://api.agentmail.to/v0/pods/pod_id/domains', [
|
|
27858
27568
|
'body' => '{
|
|
27859
|
-
"domain": "
|
|
27569
|
+
"domain": "domain",
|
|
27860
27570
|
"feedback_enabled": true
|
|
27861
27571
|
}',
|
|
27862
27572
|
'headers' => [
|
|
@@ -27875,7 +27585,7 @@ var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id/domains");
|
|
|
27875
27585
|
var request = new RestRequest(Method.POST);
|
|
27876
27586
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
27877
27587
|
request.AddHeader("Content-Type", "application/json");
|
|
27878
|
-
request.AddParameter("application/json", "{\n \"domain\": \"
|
|
27588
|
+
request.AddParameter("application/json", "{\n \"domain\": \"domain\",\n \"feedback_enabled\": true\n}", ParameterType.RequestBody);
|
|
27879
27589
|
IRestResponse response = client.Execute(request);
|
|
27880
27590
|
```
|
|
27881
27591
|
|
|
@@ -27887,7 +27597,7 @@ let headers = [
|
|
|
27887
27597
|
"Content-Type": "application/json"
|
|
27888
27598
|
]
|
|
27889
27599
|
let parameters = [
|
|
27890
|
-
"domain": "
|
|
27600
|
+
"domain": "domain",
|
|
27891
27601
|
"feedback_enabled": true
|
|
27892
27602
|
] as [String : Any]
|
|
27893
27603
|
|
|
@@ -28221,7 +27931,6 @@ package main
|
|
|
28221
27931
|
|
|
28222
27932
|
import (
|
|
28223
27933
|
"fmt"
|
|
28224
|
-
"strings"
|
|
28225
27934
|
"net/http"
|
|
28226
27935
|
"io"
|
|
28227
27936
|
)
|
|
@@ -28230,12 +27939,9 @@ func main() {
|
|
|
28230
27939
|
|
|
28231
27940
|
url := "https://api.agentmail.to/v0/organizations"
|
|
28232
27941
|
|
|
28233
|
-
|
|
28234
|
-
|
|
28235
|
-
req, _ := http.NewRequest("GET", url, payload)
|
|
27942
|
+
req, _ := http.NewRequest("GET", url, nil)
|
|
28236
27943
|
|
|
28237
27944
|
req.Header.Add("Authorization", "Bearer <api_key>")
|
|
28238
|
-
req.Header.Add("Content-Type", "application/json")
|
|
28239
27945
|
|
|
28240
27946
|
res, _ := http.DefaultClient.Do(req)
|
|
28241
27947
|
|
|
@@ -28259,8 +27965,6 @@ http.use_ssl = true
|
|
|
28259
27965
|
|
|
28260
27966
|
request = Net::HTTP::Get.new(url)
|
|
28261
27967
|
request["Authorization"] = 'Bearer <api_key>'
|
|
28262
|
-
request["Content-Type"] = 'application/json'
|
|
28263
|
-
request.body = "{}"
|
|
28264
27968
|
|
|
28265
27969
|
response = http.request(request)
|
|
28266
27970
|
puts response.read_body
|
|
@@ -28272,8 +27976,6 @@ import com.mashape.unirest.http.Unirest;
|
|
|
28272
27976
|
|
|
28273
27977
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/organizations")
|
|
28274
27978
|
.header("Authorization", "Bearer <api_key>")
|
|
28275
|
-
.header("Content-Type", "application/json")
|
|
28276
|
-
.body("{}")
|
|
28277
27979
|
.asString();
|
|
28278
27980
|
```
|
|
28279
27981
|
|
|
@@ -28284,10 +27986,8 @@ require_once('vendor/autoload.php');
|
|
|
28284
27986
|
$client = new \GuzzleHttp\Client();
|
|
28285
27987
|
|
|
28286
27988
|
$response = $client->request('GET', 'https://api.agentmail.to/v0/organizations', [
|
|
28287
|
-
'body' => '{}',
|
|
28288
27989
|
'headers' => [
|
|
28289
27990
|
'Authorization' => 'Bearer <api_key>',
|
|
28290
|
-
'Content-Type' => 'application/json',
|
|
28291
27991
|
],
|
|
28292
27992
|
]);
|
|
28293
27993
|
|
|
@@ -28300,28 +28000,19 @@ using RestSharp;
|
|
|
28300
28000
|
var client = new RestClient("https://api.agentmail.to/v0/organizations");
|
|
28301
28001
|
var request = new RestRequest(Method.GET);
|
|
28302
28002
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
28303
|
-
request.AddHeader("Content-Type", "application/json");
|
|
28304
|
-
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
|
|
28305
28003
|
IRestResponse response = client.Execute(request);
|
|
28306
28004
|
```
|
|
28307
28005
|
|
|
28308
28006
|
```swift
|
|
28309
28007
|
import Foundation
|
|
28310
28008
|
|
|
28311
|
-
let headers = [
|
|
28312
|
-
"Authorization": "Bearer <api_key>",
|
|
28313
|
-
"Content-Type": "application/json"
|
|
28314
|
-
]
|
|
28315
|
-
let parameters = [] as [String : Any]
|
|
28316
|
-
|
|
28317
|
-
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
|
|
28009
|
+
let headers = ["Authorization": "Bearer <api_key>"]
|
|
28318
28010
|
|
|
28319
28011
|
let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/organizations")! as URL,
|
|
28320
28012
|
cachePolicy: .useProtocolCachePolicy,
|
|
28321
28013
|
timeoutInterval: 10.0)
|
|
28322
28014
|
request.httpMethod = "GET"
|
|
28323
28015
|
request.allHTTPHeaderFields = headers
|
|
28324
|
-
request.httpBody = postData as Data
|
|
28325
28016
|
|
|
28326
28017
|
let session = URLSession.shared
|
|
28327
28018
|
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
|