latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Insert country value via API call

Home Forums Community Forum Insert country value via API call

This topic contains 1 reply, has 2 voices. Last updated by  Cristián Lávaque 4 years, 6 months ago.

Topic Author Topic
Posted: Tuesday Jun 19th, 2012 at 8:33 pm #16948
mark mansfield
Username: markm

I am creating users via the Pro API For Remote Operations code.

I have a project specific custom form I am using to capture client credentials, then I am creating new users via the Pro API For Remote Operations code.

I am passing all my data to the API call successfully and want to be able to include the country field data in the user registration.

Can you tell me how i can do this within the Pro API For Remote Operations code?

Thanks

Mark

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Wednesday Jun 20th, 2012 at 7:40 am #16998

Hi Mark.

Have you created a custom profile field in s2Member for that? If so, you can pass it in the array when you create the user:

[hilite pre_code]
"custom_fields" => array ("my_field_id" => "Some value."), /* Optional. An array of Custom Registration Field ID's, with associative values. */
[/hilite] [hilite path]Dashboard -› s2Member® -› API / Scripting -› Remote Operations API[/hilite]

Does that help?

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.