E-Posta API
Detayları İzleyin
Bir alıcı e-postanızı aldıysa o e-postanın ne zaman okunduğunu ve ulaştığını bilmeniz en doğal hakkınız ya da bir e-posta ulaşmadığında neden ulaşmadığı bilgisine sahip olun
E-posta API'lerini hemen bağlayın
Gelişmiş dökümantasyonumuz e-posta API'miz ile hızlı bir şekilde entegre olmanızı sağlar. PHP, Node.js, .Net, Ruby, Java ve daha fazlası gibi her popüler dil için kitaplıklara göz atın.
Daha az karmaşık uygulamalar ve INBOXNotify'ın olağanüstü e-posta tesliminden hemen yararlanmak için API hizmetimizi kullanabilir.
Curl
curl -X POST \ https://useapi.useinbox.com/notify/v1/send \ -H 'Authorization: Bearer YOUR_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "from": { "name": "Example", "email": "[email protected]" }, "to": [ {"email":"[email protected]"} ], "subject": "Welcome", "htmlContent": "Welcome to INBOXNotify" }'
Ruby
require 'uri' require 'net/http' ​ url = URI("https://useapi.useinbox.com/notify/v1/send") ​ http = Net::HTTP.new(url.host, url.port) ​ request = Net::HTTP::Post.new(url) request["Content-Type"] = 'application/json' request.body = "{\"from\": {\"name\": \"Example\",\"email\": \"[email protected]\"},\"to\": [{\"email\":\"[email protected]\"}],\"subject\": \"Welcome\",\"htmlContent\": \"Welcome to INBOXNotify\"}\n" ​ response = http.request(request) puts response.read_body
Python
import requests ​ url = "https://useapi.useinbox.com/notify/v1/send" ​ payload = "{\"from\": {\"name\": \"Example\",\"email\": \"[email protected]\"},\"to\": [{\"email\":\"[email protected]\"}],\"subject\": \"Welcome\",\"htmlContent\": \"Welcome to INBOXNotify\"}\n" headers = { 'Content-Type': "application/json", } ​ response = requests.request("POST", url, data=payload, headers=headers) ​ print(response.text)
PHP
setUrl('https://useapi.useinbox.com/notify/v1/send'); $request->setMethod(HTTP_METH_POST); ​ $request->setHeaders(array( 'Content-Type' => 'application/json' )); ​ $request->setBody('{"from": {"name": "Example","email": "[email protected]"},"to": [{"email":"[email protected]"}],"subject": "Welcome","htmlContent": "Welcome to INBOXNotify"} '); ​ try { $response = $request->send(); ​ echo $response->getBody(); } catch (HttpException $ex) { echo $ex; }
Java
OkHttpClient client = new OkHttpClient(); ​ MediaType mediaType = MediaType.parse("application/json"); RequestBody body = RequestBody.create(mediaType, "{\"from\": {\"name\": \"Example\",\"email\": \"[email protected]\"},\"to\": [{\"email\":\"[email protected]\"}],\"subject\": \"Welcome\",\"htmlContent\": \"Welcome to INBOXNotify\"}\n"); Request request = new Request.Builder() .url("https://useapi.useinbox.com/notify/v1/send") .post(body) .addHeader("Content-Type", "application/json") .build(); ​ Response response = client.newCall(request).execute(); Collapse
C#
var client = new RestClient("https://useapi.useinbox.com/notify/v1/send"); var request = new RestRequest(Method.POST); request.AddHeader("Content-Type", "application/json"); request.AddParameter("undefined", "{\"from\": {\"name\": \"Example\",\"email\": \"[email protected]\"},\"to\": [{\"email\":\"[email protected]\"}],\"subject\": \"Welcome\",\"htmlContent\": \"Welcome to INBOXNotify\"}\n", ParameterType.RequestBody); IRestResponse response = client.Execute(request)

Farklı ortamlar ve uygulamalar için güçlü altyapı desteği
Açık API dökümanlarımızla uygulama odaklı e-postalarınızın tüm potansiyelini ortaya çıkarın. API aramalarını hesabınızla test etmek ve gerçek verilerle yanıtlar almak için API Gezgini'ni kullanın.