Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "result_count": 8132,
- "page_size": 250,
- "current_page": 1,
- "total_pages": 33,
- "api_call_credits": 1,
- "data": [
- {
- "ticker": "A",
- "name": "Agilent Technologies Inc",
- "lei": "QUIX8Y7A2WP0XRMW7G29",
- "cik": "0001090872",
- "latest_filing_date": "2017-02-06"
- }
- class Finance < ApplicationRecord
- include HTTParty
- def self.response
- auth = {
- username: "username",
- password: "password"
- }
- options = { basic_auth: auth }
- data_url = "https://api.intrinio.com/companies?ticker=AAPL"
- HTTParty.get(data_url, options)
- end
- end
- class FinancesController < ApplicationController
- def index
- @response = Finance.response
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement