Class: SimpleQS::Request::Post

Inherits:
Base
  • Object
show all
Defined in:
lib/simple_qs/request/post.rb

Constant Summary

Constants inherited from Base

Base::RESERVED_CHARACTERS, Base::SIGNATURE_METHOD, Base::SIGNATURE_VERSION

Instance Attribute Summary

Attributes inherited from Base

#query_params

Instance Method Summary collapse

Methods inherited from Base

#==, #canonical_query_string, http_method, #initialize, #params_to_query, #query_string, #query_string=, #sign!, #signature_base_string, #timestamp, #timestamp=, #update_query_params, #uri

Constructor Details

This class inherits a constructor from SimpleQS::Request::Base

Instance Method Details

#performObject



6
7
8
9
10
11
# File 'lib/simple_qs/request/post.rb', line 6

def perform
  sign!
  http = EM::HttpRequest.new(URI.parse(uri)).post :body => query_params
  #SimpleQS::Responce.new Net::HTTP.post_form(URI.parse(uri), query_params).body
  SimpleQS::Responce.new http.response
end