This endpoint will return information whether Flip currently is on maintenance or not. When Flip is on maintenance, you canβt do any request except to this endpoint. Any request to other endpoint will return 401
status code.
cURL NodeJs - Axios PHP - cURL
Copy curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/flipSandbox/general/maintenance?name=ft-4&connection_name=flip-entre-1' \
--header 'x-api-key: U2Fsd'
Copy var axios = require('axios');
var config = {
method: 'get',
url: 'https://us-central1-appgregator.cloudfunctions.net/flipSandbox/general/maintenance?name=ft-4&connection_name=flip-entre-1',
headers: {
'x-api-key': 'U2Fsd...'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Copy <?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/flipSandbox/general/maintenance?name=ft-4&connection_name=flip-entre-1',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'x-api-key: U2Fsd...'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;