Skip to content

🌐A Python-based integration for the Alibaba Open API, providing authentication, token management, and product listing functionalities.

License

Notifications You must be signed in to change notification settings

ronknight/alibaba-open-api

Repository files navigation

Edit in Eraser

A Python-based integration for the Alibaba Open API, providing authentication, token management, and product listing functionalities.

Requirements β€’ Usage β€’ Scripts β€’ Disclaimer β€’ Diagrams β€’


πŸ“‹ Requirements

To run this project, you need:

  • Python 3.7+
  • pip (Python package installer)

Required Python packages:

anyio==4.4.0
argon2-cffi==23.1.0
requests==2.32.3
python-dotenv==1.0.1

A full list of dependencies can be found in the requirements.txt file.

πŸš€ Usage

  1. Clone the repository:

    git clone https://github.com/ronknight/alibaba-open-api.git
    cd alibaba-open-api
    
  2. Install the required packages:

    pip install -r requirements.txt
    
  3. Set up your .env file with the necessary credentials:

    APP_KEY=your_app_key
    APP_SECRET=your_app_secret
    REDIRECT_URI=your_redirect_uri
    
  4. Run the scripts in the following order:

    python 1initiate.py
    python 2createtoken.py
    python 3refreshtoken.py
    python productlist.py
    

πŸ“œ Scripts

  1. 1initiate.py: Initiates the OAuth process and obtains the authorization code.
  2. 2createtoken.py: Creates access and refresh tokens using the authorization code.
  3. 3refreshtoken.py: Refreshes the access token using the refresh token.
  4. productlist.py: Retrieves the product list using the access token.

Each script performs a specific function in the API integration process, from authentication to data retrieval.

⚠️ Disclaimer

This project is for educational purposes only. Ensure you comply with Alibaba's API usage terms and conditions.

πŸ“Š Diagrams

About

🌐A Python-based integration for the Alibaba Open API, providing authentication, token management, and product listing functionalities.

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages