Sha256: ed4f616a0167b52945914d17f66b553fc585c8dffa10b4e2dc7f8ef807c33b0f

Contents?: true

Size: 410 Bytes

Versions: 1

Compression:

Stored size: 410 Bytes

Contents

# frozen_string_literal: true

require "net/http"
require_relative "vimeo_ruby/version"

module VimeoRuby
  class Error < StandardError; end

  class Vimeo
    attr_reader :base_uri

    def initialize
      @base_uri = URI("https://api.vimeo.com/tutorial")
    end

    def tutorial_request
      Net::HTTP.get_response(base_uri, { "Authorization": "bearer #{ENV["VIMEO_ACCESS_TOKEN"]}" })
    end
  end 
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vimeo_ruby-0.1.0 lib/vimeo_ruby.rb