1b.app
Link copied -

Why integration with cs-cart doesn't work

Не работает интеграция с cs-Cart?
Возникают сложности в настройке интеграции?
Установите последнюю версию OneBox - мы исправили там все возможные ошибки! Установить последнюю версию OneBox

Answers:

Through php curl, instead of json, it gives us a page of the form:
<h1><span data-translate="checking_browser">Checking your browser before accessing</span> stylesalon.com.ua.</h1>
<div id="no-cookie-warning" class="cookie-warning" data-translate="turn_on_cookies" style="display:none">
<p data-translate="turn_on_cookies" style="color:#bd2426;">Please enable Cookies and reload the page.</p>
</div>
<p data-translate="process_is_automatic">This process is automatic. Your browser will redirect to your requested content shortly.</p>
<p data-translate="allow_5_secs" id="cf-spinner-allow-5-secs" >Please allow up to 5 seconds…</p>
<p data-translate="redirecting" id="cf-spinner-redirecting" style="display:none">Redirecting…</p>
and so on
19.03.2021, 15:14
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license
Would adding browser headers to the request help?
19.03.2021, 16:11
Original comment available on version: ru

you need to play around, you can try to do it yourself through curl. The script is like this
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $connection['url'].'/api.php?_d=statuses&items_per_page=');
curl_setopt(
$ch, CURLOPT_USERPWD, "{$connection['login']}:{$connection['password']}"
);
$response = curl_exec($ch);
curl_close($ch);
print $response;
19.03.2021, 16:26
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license
I tested, when adding the User-Agent to the request - it works. How long will it take to finalize to make an option for choosing an authorization method?
22.03.2021, 12:05
Original comment available on version: ru


Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license
if a client buys a cloud tariff, can it be made as an investment?
22.03.2021, 12:11
Original comment available on version: ru


Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license
For reference - it's Cloudflafe's fault
added the box server IP to the white list - everything sang
22.03.2021, 12:31
Original comment available on version: ru

Well, according to the text of the messages, it was already clear that this was some kind of protection against ddos, current usually these restrictions are immediately removed for links that knock on the api
22.03.2021, 12:48
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment