#neil3rd

1 messages · Page 1 of 1 (latest)

south arch
#

Hi neil, how can I help you?

eager token
#

Hello Jack

#

getting this error message

#

with this code

#

`account_id = 'acct_2JkpBY2azPPfnmhl'

stripe_testlist = (stripe.Customer.list(testdata_acct_id='account_id', api_key=stripe.api_key))
user1 = stripe_testlist.data[10].name`

south arch
#

can you replace testdata_acct_id='account_id' with just account_id ?

eager token
#

next error message is

#

TypeError: list() got multiple values for argument 'api_key'

south arch
#

can you remove the quotation? 'account_id' -> account_id

eager token
#

yup, did so too

#

same error

south arch
#

Hmm, you might use the wrong set of parameters

#

These are the list of params that you can pass to Customer.list

eager token
#

yes, that's all I was expecting however this vidtut

south arch
#

From the video it is Customer.retrieve, and you are calling Customer.list

#

Different methods have different set of params

eager token
#

adjusting code

south arch
eager token
#

moving on