API: CRM: Create User
Oct 09, 2006
API Location:
https://store.dwalliance.com/api/manage_profile.3.php
Commands in this page will allow you to create or update an end user. COMMAND create_user: Creates a new user. ATTRIBUTES.json email, last_name, first_name, website, address, external_id, telephone_1, fax_1, cell required attributes: email ERRORS cannot use an email address already used by a different user
each user must have an email address
RETURNS
DWSUCESS
example in python: ** BEGIN CODE ** d = { "email":"jaiimy@isurge.com", "first_name":"jimmy", "last_name":"Drake", "website":"http://www.dwaliance.com", "fax_1":"444 444 4445", "cell":"555 555 5555", "external_id":"test", "address":"450 Van Dyke Ave", "telephone_1":"415 407 8118"}
import simplejson d = simplejson.dumps(d)
# connect to server
import urllib params = urllib.urlencode({'email':'your@email.com', 'password':'pasdfa', 'code':'CODE', 'create_user':'yes', "user_data":d }) f = urllib.urlopen("https://store.dwalliance.com/api/manage_profile.1.html?%s" % params) print f.read() ** END CODE **
COMMAND update_user: Updates an existing user. ATTRIBUTES.json email, last_name, first_name, website, address, external_id, telephone_1, fax_1, cell required attributes: email, owner_email
ERRORS cannot use an email address already used by a different user
each user must have an email address
RETURNS
DWSUCESS
example in python: ** BEGIN CODE ** d = { "email":"jaiimy@isurge.com", "first_name":"jimmy", "last_name":"Drake", "website":"http://www.dwaliance.com", "fax_1":"444 444 4445", "cell":"555 555 5555", "external_id":"test", "address":"450 Van Dyke Ave", "telephone_1":"415 407 8118"}
import simplejson d = simplejson.dumps(d)
# connect to server
import urllib params = urllib.urlencode({'email':'your@email.com', 'password':'pasdfa','owner_email':'the@enduser.com', 'code':'CODE', 'create_user':'yes', "user_data":d }) f = urllib.urlopen("https://store.dwalliance.com/api/manage_profile.1.html?%s" % params) print f.read() ** END CODE **
Page
1 of 1
Create Discussion
|