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"
}
/partners/cf/inApp/{id}/declineTarget server for requests. Edit to use your own host.
API key (sent in header)
ID do surveyAnswer retornado pelo endpoint Buscar Pesquisa InApp
The media type of the request body
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. Provide your API key in the header.
Path Parameters
ID do surveyAnswer retornado pelo endpoint Buscar Pesquisa InApp
61ddbce5b038c4c87c78b9b4Body
Raw application/json data