You need to sign in to do that
Don't have an account?
James_Dean
multiple create with one api call..possible?
for example
sf = beatbox._tPartnerNS
svc = beatbox.Client()
svc.login(username, password)
a = { 'type': 'Account',
'Name': 'New Account',
'Website': 'http://www.pocketsoap.com/'
svc = beatbox.Client()
svc.login(username, password)
a = { 'type': 'Account',
'Name': 'New Account',
'Website': 'http://www.pocketsoap.com/'
'type': 'Account',
'Name': 'New Account' 1,
'Website': 'http://www.pocketsoap.com/'
'Name': 'New Account' 1,
'Website': 'http://www.pocketsoap.com/'
}
sr = svc.create(a)
if str(sr[sf.success]) == 'true':
print "id " + str(sr[sf.id])
sr = svc.create(a)
if str(sr[sf.success]) == 'true':
print "id " + str(sr[sf.id])
I believe the Ruby code would look like:
a = { 'type': 'Account',
'Name': 'New Account1',
'Website': 'http://www.pocketsoap.com/'}
b = { 'type': 'Account',
'Name': 'New Account2',
'Website': 'http://www.pocketsoap.com/'}
}
sr = svc.create({a,b})
You may want to take a look at the API documentation in the Wiki. It can really help with questions like this.
Park