undees/rforce — Issue #18: wrong number of arguments (1 for 0)
Author: bhushanlodha
Created: 2012-02-22 14:26:15+00:00
State: open

I am trying to do something like below

opportunity = [
:type, 'Account',

:name, 'Fakey McFakerson',

]

p binding.create(:sObject=> opportunity)

but it is giving me wrong number of arguments (1 for 0) for create method. Even same is case with search

here is my authentication code:

oauth = {
:consumer_key => '....',
:consumer_secret => '....',
:access_token => access_token.token,
:access_secret => access_token.secret,
:login_url => 'https://login.salesforce.com/services/OAuth/u/20.0'
}

binding = RForce::Binding.new 'https://www.salesforce.com/services/Soap/u/20.0', nil, oauth

binding.login_with_oauth