-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update specs (verify becomes an object with keys: method={password|to…
…ken},secret)
- Loading branch information
1 parent
5b38b53
commit 9127bc5
Showing
5 changed files
with
29 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -948,7 +948,10 @@ https://docs.crisp.chat/references/rest-api/v1/#delete-helpdesk | |
|
||
var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"; | ||
|
||
var verify = "MySuperSecurePassword"; | ||
var verify = { | ||
"method": "password", | ||
"secret": "MySuperSecurePassword"; | ||
}; | ||
|
||
CrispClient.website.deleteHelpdesk(websiteID, verify); | ||
|
||
|
@@ -1581,7 +1584,10 @@ https://docs.crisp.chat/references/rest-api/v1/#delete-a-website | |
|
||
var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"; | ||
|
||
var verify = "MySuperSecurePassword"; | ||
var verify = { | ||
"method": "password", | ||
"secret": "MySuperSecurePassword"; | ||
}; | ||
|
||
CrispClient.website.deleteWebsite(websiteID, verify); | ||
|
||
|
@@ -1736,7 +1742,11 @@ var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"; | |
|
||
var email = "[email protected]"; | ||
var role = "member"; | ||
var verify = "MySuperSecurePassword"; | ||
|
||
var verify = { | ||
"method": "password", | ||
"secret": "MySuperSecurePassword"; | ||
}; | ||
|
||
CrispClient.website.inviteWebsiteOperator(websiteID, email, role, verify); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1457,7 +1457,10 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._ | |
```javascript | ||
var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"; | ||
var verify = "MySuperSecurePassword"; | ||
var verify = { | ||
"method": "password", | ||
"secret": "MySuperSecurePassword"; | ||
}; | ||
CrispClient.website.deleteHelpdesk(websiteID, verify); | ||
``` | ||
|
@@ -2309,7 +2312,10 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._ | |
```javascript | ||
var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"; | ||
var verify = "MySuperSecurePassword"; | ||
var verify = { | ||
"method": "password", | ||
"secret": "MySuperSecurePassword"; | ||
}; | ||
CrispClient.website.deleteWebsite(websiteID, verify); | ||
``` | ||
|
@@ -2504,7 +2510,11 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._ | |
var email = "[email protected]"; | ||
var role = "member"; | ||
var verify = "MySuperSecurePassword"; | ||
var verify = { | ||
"method": "password", | ||
"secret": "MySuperSecurePassword"; | ||
}; | ||
CrispClient.website.inviteWebsiteOperator(websiteID, email, role, verify); | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters