Hi tanya
As I understand from this thread:
https://forum.espocrm.com/forum/feat...m-sign-up-form
This is how you make a post call to update new user details.
You need to make POST a call to http://your_domain/api/v1/User
Json that must be sent Code:
{
"userName": "tester",
"lastName": "Tester",
"firstName": "Test",
"password": "1",
"passwordConfirm": "1",
"isActive": false,
"isAdmin": false
}
Here is the php wrapper for the API
https://github.com/espocrm/documenta...-client-php.md
But I do not know where to find the API Key, Do I create it myself? If so how?
I want to keep things simple using the php client. So can I just do the following:
The way that I understand it is that username and password are the super administrator's credentials?
As I understand from this thread:
https://forum.espocrm.com/forum/feat...m-sign-up-form
This is how you make a post call to update new user details.
You need to make POST a call to http://your_domain/api/v1/User
Json that must be sent Code:
{
"userName": "tester",
"lastName": "Tester",
"firstName": "Test",
"password": "1",
"passwordConfirm": "1",
"isActive": false,
"isAdmin": false
}
Here is the php wrapper for the API
https://github.com/espocrm/documenta...-client-php.md
But I do not know where to find the API Key, Do I create it myself? If so how?
I want to keep things simple using the php client. So can I just do the following:
PHP Code:
$client = new EspoApiClient('https://your-espocrm-site', 'USERNAME', 'PASSWORD');
$response = $client->request('POST', 'User', [ 'firstName' => 'Test', 'lastName' => 'Hello' "userName": "tester", "password": "whatever", "passwordConfirm": "whatever", "isActive": false, "isAdmin": false ]);
Comment