epmnzava/ae_ds

Ali express drop shipping library for php

1.0.9 2025-01-10 10:17 UTC

This package is auto-updated.

Last update: 2025-01-10 10:22:21 UTC


README

Latest Version on Packagist Total Downloads GitHub Actions

Installation

You can install the package via composer:

composer require epmnzava/ae_ds

Usage

get access token and refresh token

        $ae = new AeDs($api_key,$api_secret,$code);
        $token=$ae->getAccessToken();

        //then store both token and refresh token on database or file to use later

get categories

        $ae = new AeDs($api_key,$api_secret,$code);
        $res = $ae->getCategories("en");
        // it will give list of categories

get category

        $ae = new AeDs($api_key,$api_secret,$code);

        $lang="en";
        $res = $ae->getCategoryById($categoryid,$lang);

          // it will give details of one category

get products on feedname

        $ae = new AeDs($api_key,$api_secret,$code);
        //used feedname tanzaniaselection for Tanzania targeted products   i.e $category_id=6 for home appliace
        $res = $ae->$ae->getItemListByFeedName("tanzaniaselection", $page_no, $page_size, $category_id);
        // it will give list of products on category_id , if no category id you will get all products

get product

        $ae = new AeDs($api_key,$api_secret,$code);
        $token = $ae->getRefreshToken($refresh_token);

        $res = $ae->getProduct($token, $product_id);
          // it will give you only one product with all details

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email epmnzava@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.