Hi PixelStudio,
You can add custom fields easily with WP and even if you are using BuddyPress Plugin.
Birthday field example:
https://localhost/api/user/update_user_meta/?cookie=COOKIE-HERE&meta_key=birthday&meta_value=2000-12-25
Interests field Example:
https://localhost/api/user/update_user_meta/?cookie=COOKIE-HERE&meta_key=interests&meta_value=Programming,Blogging,Designing
For wordpress user_meta, use following:
Method: update_user_meta
It needs ‘cookie’ and ‘meta_key’ var and ‘meta_value’ to update. You may send multiple values separated by comma.
https://localhost/api/user/update_user_meta/?cookie=COOKIE-HERE&meta_key=KEY-HERE&meta_value=VALUE-HERE
https://localhost/api/user/update_user_meta/?cookie=COOKIE-HERE&&meta_key=KEY-HERE&meta_value=value1,value2,value3
Method: get_user_meta
It needs ‘user_id’. ‘meta_key’ var is optional.
https://localhost/api/user/get_user_meta/?cookie=COOKIE-HERE&meta_key=KEY-HERE
For BuddyPress xprofile custom fields, use following:
Method: xprofile
It needs ‘user_id’ and any profile ‘field’ var.
https://localhost/api/user/xprofile/?user_id=USERID-HERE&field=FIELD-LABEL-HERE
Method: xprofile_update
It needs ‘cookie’ and any profile ‘field’ var and ‘value’.
https://localhost/api/user/xprofile_update/?cookie=COOKIE-HERE&exact-xprofile-field-label=value
https://localhost/api/user/xprofile_update/?cookie=COOKIE-HERE&field=value&field2=value&multi-value-field=value1,value2,value3
Please make sure you provide ending comma for all those fields which have multiple values. e.g. If ‘skills’ xProfile field has multiple values, pass them like https://localhost/api/user/xprofile_update/?cookie=COOKIE-HERE&skills=PHP,MySQL, or &skills=PHP, make sure you always pass ending comma for multi-select fields to be added in array format.
And you’re welcome!