Zrušení registrace účtu Instagramu
curl --request DELETE \
--url https://rest-api.smsmngr.com/v1/instagram/credentials \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"instagram_id": "17841400000000001"
}
'import requests
url = "https://rest-api.smsmngr.com/v1/instagram/credentials"
payload = { "instagram_id": "17841400000000001" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({instagram_id: '17841400000000001'})
};
fetch('https://rest-api.smsmngr.com/v1/instagram/credentials', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://rest-api.smsmngr.com/v1/instagram/credentials",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'instagram_id' => '17841400000000001'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://rest-api.smsmngr.com/v1/instagram/credentials"
payload := strings.NewReader("{\n \"instagram_id\": \"17841400000000001\"\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://rest-api.smsmngr.com/v1/instagram/credentials")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"instagram_id\": \"17841400000000001\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://rest-api.smsmngr.com/v1/instagram/credentials")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"instagram_id\": \"17841400000000001\"\n}"
response = http.request(request)
puts response.read_body{
"success": true
}{
"message": "'instagram_id' must be the numeric ID of the Instagram account"
}{
"message": "Unauthorized"
}{
"message": "Apikey scope 'api' is not allowed to change settings"
}{
"message": "This Instagram account is not registered"
}{
"message": "Failed to process Instagram credentials"
}Push, Messenger a Instagram
Zrušení registrace účtu Instagramu
Odebere účet Instagramu volajícího klíče i s přístupovým tokenem (u hlavního klíče také z podklíčů, které sdílejí odesílatele). Zprávy účtu se od té doby nepřiřazují tomuto klíči. Účet lze předat i v query parametru instagram_id.
Vyžaduje API klíč s rozsahem full nebo rest-api.
DELETE
/
instagram
/
credentials
Zrušení registrace účtu Instagramu
curl --request DELETE \
--url https://rest-api.smsmngr.com/v1/instagram/credentials \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"instagram_id": "17841400000000001"
}
'import requests
url = "https://rest-api.smsmngr.com/v1/instagram/credentials"
payload = { "instagram_id": "17841400000000001" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({instagram_id: '17841400000000001'})
};
fetch('https://rest-api.smsmngr.com/v1/instagram/credentials', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://rest-api.smsmngr.com/v1/instagram/credentials",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'instagram_id' => '17841400000000001'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://rest-api.smsmngr.com/v1/instagram/credentials"
payload := strings.NewReader("{\n \"instagram_id\": \"17841400000000001\"\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://rest-api.smsmngr.com/v1/instagram/credentials")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"instagram_id\": \"17841400000000001\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://rest-api.smsmngr.com/v1/instagram/credentials")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"instagram_id\": \"17841400000000001\"\n}"
response = http.request(request)
puts response.read_body{
"success": true
}{
"message": "'instagram_id' must be the numeric ID of the Instagram account"
}{
"message": "Unauthorized"
}{
"message": "Apikey scope 'api' is not allowed to change settings"
}{
"message": "This Instagram account is not registered"
}{
"message": "Failed to process Instagram credentials"
}Was this page helpful?