Switch to English?
Yes
Переключитись на українську?
Так
Переключиться на русскую?
Да
Przełączyć się na polską?
Tak
Post your project for free and start receiving proposals from freelancers within minutes after publication!

Наполнить магазин через API в prom.ua и в rozetka.ua

45 USD

  1. 2748    153  0   1
    5 days72 USD

    Здравствуйте. Готов сделать.

  2. 252    14  2   1
    5 days36 USD

    Здравствуйте. Уже работал с prom.ua 2 раза, один из заказов выполняю прямо сейчас. Смогу сделать программу для вас.

  3. 29199    1193  1   2
    5 days77 USD

    напишу 2 конвертера
    1 = $75
    2 = $50

    опыт таких разработок есть
    примеры в портфолио
    Freelancehunt

  4. 1238    83  0   1
    5 days45 USD

    Здравствуйте. Без проблем могу сделать такой скрипт, и настроить его, чтобы регулярно запускался и всё синхронизировал

  5. 235    2  0
    1 day45 USD

    Здравствуйте! Готовы к сотрудничеству. Все детали можно обсудить в ЛС.

  6. 324    23  1
    5 days45 USD

    Здравствуйте, буду рад сотрудничеству!
    Мой Skype, Telegram: DmtSuvorov

  • Dmitry Fedotov
    14 February 2019, 16:46 |

    Добрый день,возможно увидеть ссылку на выгрузку поставщика?

  • Aleksey Danilchuk
    14 February 2019, 16:52 |

    Вот информация со страницы поставщика


    Прайс-лист API

    Вы можете получить данные по номенклатуре используе предоставленный интерфейс. Для этого необходимо пройти аутентификацию и запросить соответствующие данные.

    Аутентификация (пример)

    Вместо user1234 и pwd1234 используйте ваш логин и пароль от портала.

    Запрос

    curl -X POST -d "username=user1234&password=pwd1234" https://dlr.optim.ua/api/api-token-auth/

    Ответ

    {"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IktWMDY0ODMiLCJ1c2VyX2lkIjoxMjQ3LCJlbWFpbCI6ImRldi5vcHRpbUB1a3IubmV0IiwiZXhwIjoxNTQyNzQ0MzI4fQ.mkHGfKC983swjHRJPi0pNuvw1H-ddw1k9ccl5Ynlr-s"}

    В случае неверно указанных ученых данных

    {"non_field_errors":["Невозможно войти с предоставленными учетными данными."]}

    Тестирование обращения после авторизации

    Запрос

    curl -H "Authorization: JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IktWMDY0ODMiLCJ1c2VyX2lkIjoxMjQ3LCJlbWFpbCI6ImRldi5vcHRpbUB1a3IubmV0IiwiZXhwIjoxNTQyNzQ0MzI4fQ.mkHGfKC983swjHRJPi0pNuvw1H-ddw1k9ccl5Ynlr-s" https://dlr.optim.ua/api/test-data/

    Ответ

    {"data":1}

    Получение данных прайс-листа

    curl -H "Authorization: JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IktWMDY0ODMiLCJ1c2VyX2lkIjoxMjQ3LCJlbWFpbCI6ImRldi5vcHRpbUB1a3IubmV0IiwiZXhwIjoxNTQyNzQ0MzI4fQ.mkHGfKC983swjHRJPi0pNuvw1H-ddw1k9ccl5Ynlr-s" https://dlr.optim.ua/api/pricelist/?payment_type=1

    Параметр payment_type - способ оплаты. 1 - наличный, 2 - безналичный.

    Пример на PHP

    
    function auth($host, $username, $password) { /** This is to get auth token providing username and password of a dealer @param $host string like 'https://dlr.optim.ua' @param $username @param $password @return token as a string **/  $url = $host .'/api/api-token-auth/';  $data = array('username' => $username, 'password' => $password);   $options = array(    'http' => array(        'header'  => "Content-type: application/x-www-form-urlencoded\r\n",        'method'  => 'POST',        'content' => http_build_query($data)    )  );  $context  = stream_context_create($options);  $result = file_get_contents($url, false, $context);  if ($result === FALSE) { /* Handle error */ }   $result = json_decode($result, true);  return $result['token']; }
     function get_data($host, $token) { /**  This is to get test data from API using the token.  @host string like 'https://dlr.optim.ua'  @token string obtain by auth() function  @return data as a json string **/  $url = $host .'/api/test-data/';   $options = array(    'http' => array(        'header'  => "Authorization: JWT $token\r\n",        'method'  => 'GET'    )  );  $context  = stream_context_create($options);  $result = file_get_contents($url, false, $context);  if ($result === FALSE) { /* Handle error */ }   return $result; }
     function get_price_list($host, $token, $payment_type) { /**  This is to get test data from API using the token.  @host string like 'https://dlr.optim.ua'  @token string obtain by auth() function  @payment_type int: 1 - cash, 2 - non cash  @return data as a json string **/  $url = $host ."/api/pricelist/?payment_type=$payment_type";   $options = array(    'http' => array(        'header'  => "Authorization: JWT $token\r\n",        'method'  => 'GET'    )  );  $context  = stream_context_create($options);  $result = file_get_contents($url, false, $context);  if ($result === FALSE) { /* Handle error */ }   return $result; }
     $host = "https://dlr.optim.ua"; $token = auth($host, "user1234", "password1234"); 
    $data = get_data($host, $token); print($data); 
    $data = get_price_list($host, $token, 2); print($data);
    

    Пример на Python

    
    import requests 
    
    def auth(host, username, password):    """    This is to get auth token providing username and password of a dealer    :param host: string like 'https://dlr.optim.ua'    :param username: username    :param password: password    :return: token as string    """    url = '%s/api/api-token-auth/' % host    r = requests.post(url, data={'username': username, 'password': password})    return r.json()['token'] 
    
    def get_test_data(host, token):    """    This is to get test data from API using the token.    :param host: host string like 'https://dlr.optim.ua'    :param token: token string obtain by auth() function    :return: data as a json string    """    url = '%s/api/test-data/' % host    headers = {'Authorization': 'JWT %s' % token}    r = requests.get(url, headers=headers)    return r.json() 
    
    def get_price_list(host, token, payment_type):    """    This is to get real data from API using the token.    :param host: host string like 'https://dlr.optim.ua'    :param token: token string obtain by auth() function    :return: data as a json string    """    url = '%s/api/pricelist/' % host    headers = {'Authorization': 'JWT %s' % token}    r = requests.get(url, headers=headers, params={"payment_type": payment_type})    return r.json() 
    
    the_host = 'https://dlr.optim.ua' the_token = auth(the_host, 'user1234', 'password1234') data = get_test_data(the_host, the_token) print(data) 
    data = get_price_list(the_host, the_token, payment_type=2) #  payment_type = 1 (нал.) or 2 (безнал.) print(data)
    

    Структура возвращаемых данных

    
    {    'условный код модели': {        'structure_props': { # Классификация модели            'structure_item_alias':{'name': 'наименование', 'value': 'значение'}        },        'common_properties': { # Сандартные свойстава, такие как: наименование, бренд и т.д.            'common_item_alias':{'name': 'наименование', 'value': 'значение'}        },        'category_props': { # свойства модели, зависит от категории техники            'category_item_alias':{'name': 'наименование', 'value': 'значение'}        },        'remains': [ # остатки (могут отсутствовать, в случае если нет наличия)            {                "warehouse_name": "местонахождение склада",                "warehouse_code": "условный код склада",                "value": количество моделей на складе            }        ],  # item remains        'prices': { # цены и валюта            'price_item_alias':{'name': 'наименование', 'value': 'значение'}        },  # item prices        'description': { # краткое описание (может отсутствовать)            'description_item_alias':{'name': 'наименование', 'value': 'значение'}        }    } }
  • Profile blocked
    25 August 2019, 10:42 |

    Добрый день !


    Рассмотрю ваш проект - если еще актуально.


    Есть веб-приложение формирования файла XML розетки. 

    Импорт XLS CSV XML -> XML-розетки.  Есть версия и для прома. XML-прома -> XML-розетки.  Детально пишите в личку и вышлите ваш файл. Оплата поэтапная.

    Возможна выгрузка из базы стандартного движка магазина

    типа Opencart, если подходит по правилам розетки.


    В Демо-примере не работает профиль админа

    http://xv.kl.com.ua/market/admin.php

    логин = admin

    пароль = rozetka


    Если заинтересует - обращайтесь.

Current freelance projects in the category Desktop Apps

Modification in the emulator's operation

45 USD

Hello. I downloaded the Gaminator CF Final slot machine emulator from the Internet. I really liked it, but there are some issues. There is an admin panel, but it opens freely and cannot be closed at all. It only closes along with the application. Also, the data does not save…

Desktop Apps ∙ 1 day 22 hours back ∙ 10 proposals

Development of custom software (Android application + CMS) for SUNMI K2 self-service kiosks (Fast food)

23 USD

We are looking for an experienced team or a Middle/Senior Android developer (possibly with Full-stack skills) to create proprietary software for self-service kiosks for a fast food retail chain. Currently, our terminals operate on a ready-made cloud integrator, but we are…

Content Management SystemsDesktop Apps ∙ 6 days 18 hours back ∙ 23 proposals

It is necessary to migrate the current working program from FoxPro to C#.

Hello everyone! We have a program in FoxPro (it has several modules, it's an accounting program), we have the source code of the program, and if necessary, we can consult with people who support the current program. What needs to be done: 1. Analyze how everything works,…

C#Desktop Apps ∙ 12 days 2 hours back ∙ 19 proposals

Client
Aleksey Danilchuk
Ukraine Dnepr  2  0
Project published
7 years back
71 views