Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update README.md
  • Loading branch information
indrasen715 committed Mar 24, 2025
commit 38fabfa0fc503d5ed8565cc7afc3b428f25c2abf
36 changes: 32 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3929,7 +3929,21 @@ This API is used to update a webhook subscription
```php

$hookId = "hookId"; //Required
$payload = '{ }'; //Required
$payload = '{
"Headers": {
"x-test-header": "qa"
},
"QueryParams": {
"apikey": "859faf40a7c54c209360b45376bf529f"
},
"Authentication": {
"AuthType": "Basic",
"BasicAuth": {
"Username": "lrqaadmin",
"Password": "ZBz6JcnZadxc2gB7sf5vby87zBIu6q"
}
}
}'; //Required

$result = $webHookAPI->updateWebhookSubscription($hookId,$payload);
```
Expand All @@ -3943,9 +3957,23 @@ This API is used to create a new webhook subscription on your LoginRadius site.
```php

$payload = '{
"event" : "<event>",
"name" : "<name>",
"targetUrl" : "<targetUrl>"
"event" : "<event>",
"name" : "<name>",
"targetUrl" : "<targetUrl>",
,
"Headers": {
"Custom-Header": "headerValue"
},
"QueryParams": {
"apikey": "yourApiKey"
},
"Authentication": {
"AuthType": "Basic",
"BasicAuth": {
"Username": "yourUsername",
"Password": "yourPassword"
}
}
}'; //Required

$result = $webHookAPI->createWebhookSubscription($payload);
Expand Down