Consultar OAuth app
curl --request GET \
--url https://api.notifique.dev/v1/oauth/apps/{id}const options = {method: 'GET'};
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.get(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("GET", 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...",
"name": "Meu SaaS",
"clientId": "ntf_oauth_cl_abc123",
"redirectUris": [
"https://meuapp.com/oauth/callback"
],
"scopes": [
"email:send"
]
}
}{
"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
Consultar OAuth app
GET
/
v1
/
oauth
/
apps
/
{id}
Consultar OAuth app
curl --request GET \
--url https://api.notifique.dev/v1/oauth/apps/{id}const options = {method: 'GET'};
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.get(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("GET", 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...",
"name": "Meu SaaS",
"clientId": "ntf_oauth_cl_abc123",
"redirectUris": [
"https://meuapp.com/oauth/callback"
],
"scopes": [
"email:send"
]
}
}{
"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?

