Talk:REST/@comment-83.163.0.81-20150309162144

From Request Tracker Wiki
Revision as of 15:52, 6 April 2016 by Admin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 ...