Skip to content

Option_Find

Jacob McConnell edited this page Jun 10, 2014 · 2 revisions

You must specify your API username and password using the Twocheckout::API.credentials method before calling a method in this class.

##Method

###find

Use to retrieve an option.

####Arguments

####Returns

Returns a Option object.

####Example Usage:

Twocheckout::API.credentials = { :username => 'APIuser1817037', :password => 'APIpass1817037' }

option = Twocheckout::Option.find({:option_id => 4839042084})

####Example Response:

#{
    "option_id"=>"4839042084",
    "option_name"=>"new name",
    "option_values"=>[
        {
            "option_value_id"=>"4839042087",
            "option_value_name"=>"test option value",
            "option_value_surcharge"=>"1.00"
        }
    ]
}
Clone this wiki locally