Let Your Software Talk to Juvlon
# Try this API. Copy & run this in your terminal. curl -i -X POST -H "Content-Type: application/json" -d \ '{ "ApiKey":"INSERT_YOUR_JUVLON_ACCOUNT_API_KEY", "requests":[{"subject":"Hello", "from":"support@juvlon.com", "body":"This is an API test from Juvlon", "to":"sales@nichelive.com"}] }' https://api2.juvlon.com/v4/httpSendMail
# Copy & run this in your Ruby terminal. require 'net/http' require 'json' require 'uri' uri = URI('https://api2.juvlon.com/v4/httpSendMail') Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http| request = Net::HTTP::Post.new(uri, 'Content-Type' => 'application/json') request.body = {"ApiKey":"INSERT_YOUR_JUVLON_ACCOUNT_API_KEY", "requests":[{"subject":"Hello", "from":"support@juvlon.com", "body":"This is an API test from Juvlon", "to":"sales@nichelive.com"}]}.to_json response = http.request request # Net::HTTPResponse object puts "response #{response.body}" end
# Copy & run this in your Python terminal. import json import requests url = "https://api2.juvlon.com/v4/httpSendMail" data = {"ApiKey":"INSERT_YOUR_JUVLON_ACCOUNT_API_KEY", "requests":[{"subject":"Hello", "from":"support@juvlon.com", "body":"This is an API test from Juvlon", "to":"sales@nichelive.com"}]} data_json = json.dumps(data) r = requests.post(url, data=data_json) print(r)
$url = 'https://api2.juvlon.com/v4/httpSendMail'; $data = '{"ApiKey":"INSERT_YOUR_JUVLON_ACCOUNT_API_KEY", "requests": [{ "subject":"Hello", "from":"support@juvlon.com", "body":"This is an API test from Juvlon", "to":"sales@nichelive.com" }] }'; $options = array( 'http' => array( 'header' => "Content-type: application/json\r\n", 'method' => 'POST', 'content' => $data ) ); $context = stream_context_create($options); $result = file_get_contents($url, false, $context); if ($result === FALSE) { /* Handle error */ } print_r($result);
// Include below 4 references in your program; import java.io.IOException; import java.io.OutputStream; import java.net.HttpURLConnection; import java.net.URL; // Include below code in your program final String POST_PARAMS = "{\"ApiKey\":\"INSERT_YOUR_JUVLON_ACCOUNT_API_KEY\"" + ",\"requests\":[{\"subject\":\"Hello\"" + ",\"from\":\"support@juvlon.com\"" + ",\"body\":\"This is an API test from Juvlon\"" + ",\"to\":\"sales@nichelive.com\"}]}"; System.out.println(POST_PARAMS); URL obj = new URL("https://api2.juvlon.com/v4/httpSendMail"); HttpURLConnection postConnection = (HttpURLConnection) obj.openConnection(); postConnection.setRequestMethod("POST"); postConnection.setRequestProperty("Content-Type", "application/json"); postConnection.setDoOutput(true); OutputStream os = postConnection.getOutputStream(); os.write(POST_PARAMS.getBytes()); os.flush(); os.close(); int responseCode = postConnection.getResponseCode(); System.out.println(responseCode);
// Include below 3 references using System.Net; using System.Text; using System.IO; // Add below code in your application string url="https://api2.juvlon.com/v4/httpSendMail"; HttpWebRequest myHttpWebRequest = (HttpWebRequest)HttpWebRequest.Create(url); myHttpWebRequest.Method = "POST"; string postData = "{\"ApiKey\":\"INSERT_YOUR_JUVLON_ACCOUNT_API_KEY\"" + ",\"requests\":[{\"subject\":\"Hello\"" + ",\"from\":\"support@juvlon.com\"" + ",\"body\":\"This is an API test from Juvlon\"" + ",\"to\":\"sales@nichelive.com\"}]}"; byte[] data = Encoding.ASCII.GetBytes(postData); myHttpWebRequest.ContentType = "application/json"; ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; myHttpWebRequest.ContentLength = data.Length; Stream requestStream = myHttpWebRequest.GetRequestStream(); requestStream.Write(data, 0, data.Length); requestStream.Close(); HttpWebResponse myHttpWebResponse = (HttpWebResponse)myHttpWebRequest.GetResponse(); Stream responseStream = myHttpWebResponse.GetResponseStream(); StreamReader myStreamReader = new StreamReader(responseStream, Encoding.Default); string pageContent = myStreamReader.ReadToEnd(); Console.WriteLine(pageContent); myStreamReader.Close(); responseStream.Close(); myHttpWebResponse.Close();
Let Your Software Talk to Juvlon
Send Emails to Authentic Addresses
Worrying about Email bounces? Don’t worry. Not just Email syntax, Juvlon’s API checks Email addresses for spam-traps, temporary and bounced addresses to make sure your sending is clean.
Get Real-time Notifications using Webhooks
Access your campaign’s statistics and subscriber engagement details like Emails/SMS delivered, opens, clicks, bounces, and more real-time using Juvlon’s webhooks.
Call our Secure and Fast Infrastructure
Juvlon’s API can be locked down to a specific IP that your program uses. It runs over Secure HTTP protocol. Each API command is accepted and acknowledged in micro-seconds. Juvlon’s API can handle thousands of queries per minute.
Developers Support Developers
We understand the technical issues you face and we are obsessed with solving problems. Our developers support you with using Juvlon API.
Juvlon
Address:
39/D Swastik House
Gultekdi, Pune
Maharashtra 411037
Email:
customerfirst@juvlon.io