Sha256: f77fefaf7d13e7be030162108617518d738899171209644dee6f850569128925

Contents?: true

Size: 354 Bytes

Versions: 7

Compression:

Stored size: 354 Bytes

Contents

module Typetalk
  class Api

    module User

      def get_profile(options={})
        options = {token:nil}.merge(options)

        response = connection.get do |req|
          req.url "#{endpoint}/profile"
          req.params[:access_token] = options[:token] || access_token
        end
        parse_response(response)
      end

    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
typetalk-0.1.1 lib/typetalk/api/user.rb
typetalk-0.1.0 lib/typetalk/api/user.rb
typetalk-0.0.6 lib/typetalk/api/user.rb
typetalk-0.0.5 lib/typetalk/api/user.rb
typetalk-0.0.4 lib/typetalk/api/user.rb
typetalk-0.0.3 lib/typetalk/api/user.rb
typetalk-0.0.2 lib/typetalk/api/user.rb