Ignorar Pesquisa
Registra que o cliente fechou ou ignorou a pesquisa sem responder (Sistemas Legados).
Deve ser chamado sempre que o usuário dispensar o widget, para que o sistema contabilize corretamente as tentativas e o throttle de reexibição (SmartFollowUp).
curl -X PATCH "https://api.amplifique.me/partners/cf/inApp/61ddbce5b038c4c87c78b9b4/decline" \
-H "Content-Type: application/json" \
-H "Authorization: YOUR_API_KEY"
import requests
import json
url = "https://api.amplifique.me/partners/cf/inApp/61ddbce5b038c4c87c78b9b4/decline"
headers = {
"Content-Type": "application/json",
"Authorization": "YOUR_API_KEY"
}
response = requests.patch(url, headers=headers)
print(response.json())
const response = await fetch("https://api.amplifique.me/partners/cf/inApp/61ddbce5b038c4c87c78b9b4/decline", {
method: "PATCH",
headers: {
"Content-Type": "application/json",
"Authorization": "YOUR_API_KEY"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("PATCH", "https://api.amplifique.me/partners/cf/inApp/61ddbce5b038c4c87c78b9b4/decline", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.amplifique.me/partners/cf/inApp/61ddbce5b038c4c87c78b9b4/decline')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'YOUR_API_KEY'
response = http.request(request)
puts response.body
{
"message": "ok"
}
PATCH
/partners/cf/inApp/{id}/declinePATCH
API Key (header: Authorization)
Authorizationstring
RequiredAPI key (sent in header)
path
idstring
RequiredID do surveyAnswer retornado pelo endpoint Buscar Pesquisa InApp
Content-Typestring
RequiredThe media type of the request body
Options: application/json
No request body parameters defined
Request Preview
Response
Response will appear here after sending the request
Authentication
header
Authorizationstring
RequiredAPI Key for authentication. Provide your API key in the header.
Path Parameters
idstring
RequiredID do surveyAnswer retornado pelo endpoint Buscar Pesquisa InApp
Body
application/json
dataobject
RequiredRaw application/json data
Responses
messagestring
Was this page helpful?