|Posted: Saturday Jan 12th, 2013 at 8:05 am #37122|
I ran into this again with my loosely-coupled Infusionsoft integration, so I’m voicing it again! I would dearly LOVE to have the “create_user” API call act as “update_user” if called with a “user_login” that already exists.
If I declare that “user_login” is unique (and indeed, S2 API throws an error if you try to create a new user with an existing login), then it seems that the behavior can be somewhat easily modified to just change whatever other fields are present in the API call. I know, I know – “easily” is all relative, regression testing, etc. So maybe declare a new API “create_user_ex” to maintain the integrity of the existing call?
Again, this would relieve hours of headache for me. Right now I have to first verify users in the WP Users list before issuing the API call via an HTTP POST from Infusionsoft, and a lot of other manual gymnastics. And I will bet that other S2 users would find it very useful as well.
Please, or pretty please can I have a single API call that both creates or updates a user?? :)
- s2Member® Products