curl --request POST \ http://api.validto.com/v1/bulk?apikey={your_api_key}' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data ' { "auto_verify": true, "local_file": "@/mailing-list.csv" } '
const fetch = require('node-fetch'); const url = 'http://api.validto.com/v1/bulk?apikey={your_api_key}'; const options = { method: 'POST', headers: {Accept: 'application/json', 'Content-Type': 'application/json'}, body: JSON.stringify({ auto_verify: true, local_file: '@/mailing-list.csv' }) }; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
require_once('vendor/autoload.php'); $client = new \GuzzleHttp\Client(); $response = $client->request('POST', 'http://api.validto.com/v1/bulk?apikey={your_api_key}', [ 'body' => '{"auto_verify":true,"local_file":"@/mailing-list.csv"}', 'headers' => [ 'Accept' => 'application/json', 'Content-Type' => 'application/json', ], ]); echo $response->getBody();
require 'uri' require 'net/http' url = URI("http://api.validto.com/v1/bulk?apikey={your_api_key}") http = Net::HTTP.new(url.host, url.port) request = Net::HTTP::Post.new(url) request["Accept"] = 'application/json' request["Content-Type"] = 'application/json' request.body = "{\"auto_verify\":true,\"local_file\":\"@/mailing-list.csv"}" response = http.request(request) puts response.read_body
import requests url = "http://api.validto.com/v1/bulk?apikey={your_api_key}" payload = { "auto_verify": True, "local_file": "@/mailing-list.csv" } headers = { "Accept": "application/json", "Content-Type": "application/json" } response = requests.request("POST", url, json=payload, headers=headers) print(response.text)
Get 100 free verification credits, no monthly subscription & no credit card necessary