Question about registering a QuickBlox REST API user

I follow the procedure mentioned at http://quickblox.com/developers/Users so first I get the token by swirling with these parameters:

Array ( [application_id] => 24719 [auth_key] => PY8EEvrxtPg3sGs [timestamp] => 1435915101 [nonce] => 1435915100 [signature] => f45bdb40e8cfcf7235502b38586479f83925c6ad ) 

to https://api.quickblox.com/session.json and getting a response:

 stdClass Object ( [session] => stdClass Object ( [_id] => 55965365535c12a58c031d01 [application_id] => 24719 [created_at] => 2015-07-03T09:18:29Z [device_id] => 0 [nonce] => 1435915100 [token] => b913e37d88a0cab296eec6f44643e282d107dd58 [ts] => 1435915101 [updated_at] => 2015-07-03T09:18:29Z [user_id] => 0 [id] => 1004 ) ) 

However, when I try to create a new user account with the options below:

 Array ( [login] => prasun1010 [full_name] => prasun1010 [custom_data] => I am a boy [password] => ssd_p@p _23_1_ [token] => b913e37d88a0cab296eec6f44643e282d107dd58 [Version] => 0.1.0 [website] => http://localhost/xxx/trunk/php/ ) 

to: http://api.quickblox.com/users.json

he answers:

 stdClass Object ( [code] => [message] => No data was provided ) 

Can someone please let me know what I'm doing wrong? Or what should I do to do this?

+2
source share
1 answer

As mentioned in the documentation , your registration parameters should be wrapped in a "user" entity. So your new user options should look like this:

  Array ( [user] => Array ( [login] => prasun1010 [full_name] => prasun1010 [custom_data] => I am a boy [password] => ssd_p@p _23_1_ [token] => b913e37d88a0cab296eec6f44643e282d107dd58 [Version] => 0.1.0 [website] => http://localhost/xxx/trunk/php/ ) ) 
+2
source

All Articles