-
Notifications
You must be signed in to change notification settings - Fork 17
Option_List
Jacob McConnell edited this page Jun 9, 2014
·
2 revisions
You must specify your API username and password using the twocheckout.Api.credentials
method before calling a method in this class.
##Methods
###find
Use to retrieve a list of all active options or only those matching a variety of option attributes.
####Arguments
- dictionary Parameters
- Dictionary containing list_options parameters or just a
option_id
. Parameters -> API List Options
####Returns
Returns an Option list.
####Example Usage:
twocheckout.Api.credentials({'username':'APIuser1817037', 'password':'APIpass1817037'})
option_list = twocheckout.Option.list()
print option_list
####Example Response:
[
{
u'option_id': u'4837092437',
u'option_name': u'Example Option',
u'option_values': [
{
u'option_value_id': u'4837092440',
u'option_value_name': u'Test',
u'option_value_surcharge': u'1.00'
}
]
},
{
u'option_id': u'4836978851',
u'option_name': u'Example Option',
u'option_values': [
{
u'option_value_id': u'4836978854',
u'option_value_name': u'Test',
u'option_value_surcharge': u'1.00'
}
]
},
...
Please feel free to contact 2Checkout directly for assistance with your integration.