I am using Drupal 7, services, and smsframework. I am able to register the user from website by enter their phone number. However, I can not find the field how to enter the phone number when I try to register the user in JSON format via services.

I did it via service API: POST /api/resource/user/register

I have tried different ways to show the field, such as:

"sms_user": "1234567"
"sms_user[number]": "1234567"
or many different ways...

but always got the same error as the following:

"sms_user][number": "Phone number field is required."

I did some research and used the same field format as other user account setting such as : "name", "mail", but can't find the answer. Is this a configuration problem I need to fix or this is not supported in current SMSframework?

Thanks for any info/suggestion!

Comments

PeterC989’s picture

Status: Active » Closed (works as designed)

I figured it out by myself, this is just a configuration change I need to perform. Close the ticket.

ymazigo’s picture

hi how did you solve this issue