Question Something error by working with API endpoints

Status
Not open for further replies.

elecktro1337

New member
I wrote a small script to work with the e commerce api, but for some reason, it doesn't work.
Moreover, it produces a very strange error.
Please check.
Code:
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>

<button onClick="test()">Test</button>

<script>
function test(){
    req = '';
    var request = new XMLHttpRequest();
    request.open('GET', 'https://penniy.tk/api/dbtech-ecommerce', true);
    request.addEventListener('readystatechange', function () {
      alert(request.responseText);
    });
    request.setRequestHeader('XF-Api-Key', 'MY_KEY')
    request.send(req);
}
</script>

Code:
 {
    "errors": [
        {
            "code": "please_enter_value_for_required_field_x",
            "message": "\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 'board_url'.",
            "params": {
                "field": "board_url"
            }
        },
        {
            "code": "please_enter_value_for_required_field_x",
            "message": "\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 'http_host'.",
            "params": {
                "field": "http_host"
            }
        },
        {
            "code": "please_enter_value_for_required_field_x",
            "message": "\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 'software'.",
            "params": {
                "field": "software"
            }
        },
        {
            "code": "please_enter_value_for_required_field_x",
            "message": "\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 'software_version'.",
            "params": {
                "field": "software_version"
            }
        }
    ]
}
 
Sorry, I’m a bit confused, why are you asking for support? You are running four of our products without a license.

It would be pretty stupid to download a pirated version, then show up to the support site of the company you stole from and ask them for support.

There are no licenses in our system that match your website URL (your real one, not the fake one you provided in the ticket).
 
Hello @elecktro1337,

We hope your ticket regarding DragonByte eCommerce has been addressed to your satisfaction. This ticket has now been scheduled to be closed.

If your ticket has not been resolved, you can reply to this thread at any point in the next 7 days in order to reopen the ticket, afterwards this thread will be closed.

Please do not reply to this thread if your ticket has been resolved.

Thank you.


- DragonByte Technologies, Ltd.
 
Status
Not open for further replies.

DragonByte eCommerce

XenForo 2.0.6+ XenForo 2.1.x XenForo 2.2.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
2,518
Customer rating
4.83 star(s) 6 ratings
Back
Top