Sha256: 5c72d79739a0c8aa1965a440c28271fc92be174b34e11b09849ecd414dbae31b

Contents?: true

Size: 787 Bytes

Versions: 10

Compression:

Stored size: 787 Bytes

Contents

module Vimeo
  module Advanced

    class Auth < Vimeo::Advanced::Base
      # Obtains an authorization token.
      def get_token(frob)
        sig_options = {
          :frob => frob,
          :method => "vimeo.auth.getToken"
        }
        
        make_request sig_options
      end

      # Obtains a frob.
      # Used for desktop based authentication.
      def get_frob
        sig_options = { :method => "vimeo.auth.getFrob" }
        
        make_request sig_options
      end

      # Tests the validity of an authorization token.
      def check_token(auth_token)
        sig_options = {
          :auth_token => auth_token,
          :method => "vimeo.auth.checkToken"
        }
        
        make_request sig_options
      end

    end

  end # Advanced
end # Vimeo

Version data entries

10 entries across 10 versions & 5 rubygems

Version Path
jwbynum-vimeo-0.2.1 lib/vimeo/advanced/auth.rb
jwbynum-vimeo-0.2.2 lib/vimeo/advanced/auth.rb
jwbynum-vimeo-0.2.3 lib/vimeo/advanced/auth.rb
matthooks-vimeo-0.2.1 lib/vimeo/advanced/auth.rb
matthooks-vimeo-0.2.2 lib/vimeo/advanced/auth.rb
sirlantis-vimeo-1.3.1 lib/vimeo/advanced/auth.rb
slainer68-vimeo-0.2.2 lib/vimeo/advanced/auth.rb
slainer68-vimeo-0.2.3 lib/vimeo/advanced/auth.rb
tenderlove-vimeo-1.3.0 lib/vimeo/advanced/auth.rb
tenderlove-vimeo-1.3.1 lib/vimeo/advanced/auth.rb