Horoscope API - Ruby

Horoscope API with Ruby 💎

Integrate Horoscope API into your Ruby application.

Installation

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

Example Code

require 'net/http'

uri = URI('https://api.vedika.io/v2/astrology/horoscope/daily?sign=aries')
request = Net::HTTP::Get.new(uri)
request['Authorization'] = 'Bearer YOUR_API_KEY'

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