Search
 
SCRIPT & CODE EXAMPLE
 

RUBY

httparty headers

# Use Strings for your hash keys instead of Symbols.

query = { 
  "method"     => "neworder",
  "nonce"      => 1404996028,
  "order_type" => "buy",
  "quantity"   => 1,
  "rate"       => 1
}
headers = { 
  "key"  => "8781974720909019987",
  "sign" => "0a3888ac7f8e411ad73a0a503c55db70a291bfb9f9a47147d5200882674f717f6ede475669f3453" 
}

HTTParty.post(
  "https://www.acb.com/api/v2/market/LTC_BTC/", 
  :query => query,
  :headers => headers
)
Comment

PREVIOUS NEXT
Code Example
Ruby :: ruby clone vs dup 
Ruby :: important topic on ruby 
Ruby :: ruby shortcut to self.call 
Ruby :: text_field_tag transfer params rails 
Ruby :: intermediate rails project 
Ruby :: my rails server exits automatically and now gives the following error: 
Ruby :: ruby nil to float is 0.00 
Ruby :: How to handle permission in rails 
Ruby :: ruby exit out of loop 
Ruby :: comments in ruby grepper 
Ruby :: how to open ruby console 
Ruby :: rails add element to array 
Ruby :: ruby hash except nested 
Ruby :: sequel not ruby 
Ruby :: paranoia gem 
Ruby :: simpleCov formatter set two formats 
R :: add a vertical line in ggplot 
R :: loop through list in r 
R :: collapse text by group in dataframe r 
R :: rstudio could not find function ggplot 
R :: pi in r 
R :: custom function in r 
R :: how to read csv file in r 
R :: R remove commas 
R :: replace any NA in a data frame in r 
R :: create list in r 
R :: how to iterate through a list in r 
R :: prediction of linear model at a single point in R 
R :: R construct a named list 
R :: del row matrix r 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =