Kundli Matching API - Ruby

Kundli Matching API with Ruby 💎

Integrate Kundli Matching API into your Ruby application.

Installation

No package to install. This example uses Ruby's standard net/http and json libraries.

Example Code

require 'json'
require 'net/http'

uri = URI('https://api.vedika.io/v2/astrology/kundli-matching')
request = Net::HTTP::Post.new(uri)
request['Authorization'] = 'Bearer YOUR_API_KEY'
request['Content-Type'] = 'application/json'
request.body = {
  male: {
    datetime: '1990-06-15T10:30:00',
    latitude: 18.5204,
    longitude: 73.8567,
    timezone: 'Asia/Kolkata'
  },
  female: {
    datetime: '1992-03-08T07:15:00',
    latitude: 19.076,
    longitude: 72.8777,
    timezone: 'Asia/Kolkata'
  }
}.to_json

response = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |http| http.request(request) }
puts response.code
puts response.body

Get Started Free

Try our sandbox API with no authentication required

Try Sandbox Read Docs