Excluir OAuth app
curl --request DELETE \
--url https://api.notifique.dev/v1/oauth/apps/{id}const options = {method: 'DELETE'};
fetch('https://api.notifique.dev/v1/oauth/apps/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/v1/oauth/apps/{id}"
response = requests.delete(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/v1/oauth/apps/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"id": "cloauthapp_01H...",
"deleted": true
}
}{
"success": false,
"error": "Unauthorized",
"message": "Invalid API key",
"code": "UNAUTHORIZED"
}{
"success": false,
"error": "Forbidden",
"message": "Missing scope webhooks:manage",
"code": "FORBIDDEN"
}{
"success": false,
"error": "Not Found",
"message": "Webhook not found",
"code": "NOT_FOUND"
}OAuth
Excluir OAuth app
Revoga o app e grants associados. Escopo oauth_apps:manage.
DELETE
/
v1
/
oauth
/
apps
/
{id}
Excluir OAuth app
curl --request DELETE \
--url https://api.notifique.dev/v1/oauth/apps/{id}const options = {method: 'DELETE'};
fetch('https://api.notifique.dev/v1/oauth/apps/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/v1/oauth/apps/{id}"
response = requests.delete(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/v1/oauth/apps/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"id": "cloauthapp_01H...",
"deleted": true
}
}{
"success": false,
"error": "Unauthorized",
"message": "Invalid API key",
"code": "UNAUTHORIZED"
}{
"success": false,
"error": "Forbidden",
"message": "Missing scope webhooks:manage",
"code": "FORBIDDEN"
}{
"success": false,
"error": "Not Found",
"message": "Webhook not found",
"code": "NOT_FOUND"
}Esta página foi útil?

