-
Notifications
You must be signed in to change notification settings - Fork 17
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
- hash Parameters
- Hash containing an
option_id
. Parameters -> API Detail Options
####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"
}
]
}
Please feel free to contact 2Checkout directly for assistance with your integration.