curl --request POST \
--url https://staging.housera.ro/api/v1/oauth/revoke \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'token=<string>' \
--data 'client_id=<string>' \
--data 'client_secret=<string>' \
--data token_type_hint=access_token<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.housera.ro/api/v1/oauth/revoke",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "token=%3Cstring%3E&client_id=%3Cstring%3E&client_secret=%3Cstring%3E&token_type_hint=access_token",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
token: '<string>',
client_id: '<string>',
client_secret: '<string>',
token_type_hint: 'access_token'
})
};
fetch('https://staging.housera.ro/api/v1/oauth/revoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://staging.housera.ro/api/v1/oauth/revoke"
payload = {
"token": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"token_type_hint": "access_token"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text){
"error": "invalid_request",
"error_description": "<string>"
}{
"error": "invalid_request",
"error_description": "<string>"
}{
"error": "invalid_request",
"error_description": "<string>"
}End the connection with an account
The integrator ends a connection with an account itself, as described in RFC 7009. Send the connection’s key in token and authenticate with client_id and client_secret, as for the code exchange. From then on the key gets 401 and your webhook stops receiving the account’s events. The account gets an email and a notification saying your application disconnected. If the key does not exist, was already revoked or is not yours, you still get 200: the answer tells you nothing about other people’s keys.
curl --request POST \
--url https://staging.housera.ro/api/v1/oauth/revoke \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'token=<string>' \
--data 'client_id=<string>' \
--data 'client_secret=<string>' \
--data token_type_hint=access_token<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.housera.ro/api/v1/oauth/revoke",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "token=%3Cstring%3E&client_id=%3Cstring%3E&client_secret=%3Cstring%3E&token_type_hint=access_token",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
token: '<string>',
client_id: '<string>',
client_secret: '<string>',
token_type_hint: 'access_token'
})
};
fetch('https://staging.housera.ro/api/v1/oauth/revoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://staging.housera.ro/api/v1/oauth/revoke"
payload = {
"token": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"token_type_hint": "access_token"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text){
"error": "invalid_request",
"error_description": "<string>"
}{
"error": "invalid_request",
"error_description": "<string>"
}{
"error": "invalid_request",
"error_description": "<string>"
}Query Parameters
The response language, ro or en. It changes error messages (title, detail), labels and, when the listing has an approved translation in that language, its title and description. Codes are the same in every language. It takes precedence over Accept-Language and over the account's language.
ro, en Body
Response
The connection is closed, or the key was no longer valid. The response has no body.