Hi, Hey, Good morning, good afternoon, good night to everyone,
I’ve been looking in the forum but haven’t found an answer, so I’ve decided to post a question.
Following the code example in Simple Membership API – Creating A Member Account Using HTTP POST Request I’m able to insert new members from my own code.
It works great, now I would like to add a string into the [extra_info] field of the swpm_members_tbl, as you say in the API documentation page
Parameter names are equal to members_tbl column names and format. Example: if you want to set company name for the user, you just pass company_name parameter
but when I add extra_info optional parameter to the array:
$post_arr = array( 'swpm_api_action' => 'create', 'key' => $my_key, 'first_name' => 'John', 'last_name' => 'Smith', 'email' => 'firstname.lastname@example.org', 'extra_info' => $my_50_char_string, 'company_name' => $my_50_char_string, );
It doesn’t seems to work, the new member is created, but the extra_info field remains empty, but not the company_name that have the same value.
Am I doing something wrong? Didn’t I understand something?
Thank you very much for any help you can provide me.
The parameter name extra_info is not currently available.
Which parameters are you looking for?
I need to save to every membership an integer value and a string value.
I’m registering the members from a custom code using SWPM membership API.
My first think was using the extra_info to store a json array with this data, but The parameter name extra_info is not currently available. What about the column notes.
The member should not see/edit this values.
Thank you very much.
Hi, I have submitted a message to the developers to investigate further your request.
I appreciate it, thank you very much
You must be logged in to reply to this topic.