Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriansaliou committed Oct 16, 2024
1 parent 5aac335 commit 401f107
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1734,11 +1734,9 @@ https://docs.crisp.chat/references/rest-api/v1/#invite-a-website-operator

var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc";

var verify = {
"email": "julien@crisp.chat",
"role": "member",
"verify": "MySuperSecurePassword"
};
var email = "julien@crisp.chat";
var role = "member";
var verify = "MySuperSecurePassword";

CrispClient.website.inviteWebsiteOperator(websiteID, email, role, verify);

Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2502,11 +2502,9 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
```javascript
var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc";
var verify = {
"email": "julien@crisp.chat",
"role": "member",
"verify": "MySuperSecurePassword"
};
var email = "julien@crisp.chat";
var role = "member";
var verify = "MySuperSecurePassword";
CrispClient.website.inviteWebsiteOperator(websiteID, email, role, verify);
```
Expand Down

0 comments on commit 401f107

Please sign in to comment.