Sha256: ec32b6caed5d204f1fe14b693eaee2fb5e73b76d12ed719d70c9fe0058506eae

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

module Vimeo
  module Advanced

    class Test < Vimeo::Advanced::Base
      
      # An echo test. Echoes all parameters.
      # Options can be anything except method, api_key,
      # and api_sig -- if any of these options are
      # present they will be overwritten by the proper
      # values.
      create_api_method :echo,
                        "vimeo.test.echo"

      # def echo(options={})
      #   options.merge!(:method => "vimeo.test.echo")
      #   api_sig = generate_api_sig options
      #   options.merge!(:api_sig => api_sig)
      #   self.class.post("/api/rest", :query => options)
      # end

      # Tests if the user associated to this token
      # is able to make authenticated calls.      
      create_api_method :login,
                        "vimeo.test.login",
                        :required => [:auth_token]


      # A simple ping test.
      create_api_method :null,
                        "vimeo.test.null",
                        :required => [:auth_token]
      
    end

  end # Advanced
end # Vimeo

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vimeo-1.0.0 lib/vimeo/advanced/test.rb