Talk:REST/@comment-83.163.0.81-20150309162144: Difference between revisions

From Request Tracker Wiki
Jump to navigation Jump to search
(Created page with "I m having great difficulty adding a user using the API. I can create a new user if I only provide a user name in the content but if I attempt to post more than one field at a...")
 
m (1 revision imported)
 
(No difference)

Latest revision as of 15:52, 6 April 2016

I m having great difficulty adding a user using the API. I can create a new user if I only provide a user name in the content but if I attempt to post more than one field at a time the system fails to create the user. I am wondering if I have the right format for the content string .. In PHP it is as follows:

$contents = "Name: ".$user->getEmail()."\n".
            "EmailAddress: ".$user->getEmail()."\n".
            "RealName: ".$user->getFirstNames()." ".$user->getFamilyName()."\n".
            "NickName: ".$user->getEmail()."\n".
            "Lang: en-gb\n".
            "Password: ".$user->..... etc. etc ...

It must be this parameter because it works if I only have only one field (e.g. Name: ) Any help would be greatly appreciated ...