File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 43
43
if postResponse .status is False :
44
44
# If the subscriber already exists in the account then we need to do an update.
45
45
# Update Subscriber On List
46
- if postResponse .results [0 ]['ErrorCode' ] == ' 12014' :
46
+ if postResponse .results [0 ]['ErrorCode' ] == 12014 :
47
47
# Update Subscriber to add to List
48
48
print '>>> Update Subscriber to add to List'
49
49
patchSub = ET_Client .ET_Subscriber ()
50
50
patchSub .auth_stub = stubObj
51
51
patchSub .props = {"EmailAddress" : SubscriberTestEmail , "Lists" :[{"ID" : newListID }]}
52
52
patchResponse = patchSub .patch ()
53
- print 'Patch Status: ' + str (postResponse .status )
54
- print 'Code: ' + str (postResponse .code )
55
- print 'Message: ' + str (postResponse .message )
56
- print 'Result Count: ' + str (len (postResponse .results ))
57
- print 'Results: ' + str (postResponse .results )
53
+ print 'Patch Status: ' + str (patchResponse .status )
54
+ print 'Code: ' + str (patchResponse .code )
55
+ print 'Message: ' + str (patchResponse .message )
56
+ print 'Result Count: ' + str (len (patchResponse .results ))
57
+ print 'Results: ' + str (patchResponse .results )
58
58
59
59
# Retrieve all Subscribers on the List
60
60
print '>>> Retrieve all Subscribers on the List'
You can’t perform that action at this time.
0 commit comments