Coder Social home page Coder Social logo

lehuygiang28 / giaohangnhanh Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 81 KB

An open-source nodejs library to support shipping managements with giaohangnhanh (ghn.vn)

Home Page: https://www.npmjs.com/package/giaohangnhanh

License: MIT License

TypeScript 100.00%
ghn giaohangnhanh giao-hang-nhanh

giaohangnhanh's Introduction

giaohangnhanh

VI | EN

Thư viện mã nguồn mở hỗ trợ quản lý giao hàng với giaohangnhanh (ghn).

Tài liệu từ Ghn: https://api.ghn.vn/home/docs/detail

Cài đặt

Cài đặt giaohangnhanh với npm:

npm install giaohangnhanh

Cài đặt giaohangnhanh với yarn:

yarn add giaohangnhanh

Cài đặt giaohangnhanh với pnpm:

pnpm add giaohangnhanh

Sử dụng

Các phương thức

Đối tượng Phương thức Mô Tả Trạng thái
address getProvinces() Truy vấn tỉnh/thành phố
getDistricts() Truy vấn quận/huyện
getWards() Truy vấn phường/xã
calculateFee getServiceList() Truy vấn danh sách dịch vụ có sẵn dựa vào địa chỉ giao và nhận
calculateShippingFee() Truy vấn phí giao hàng
order calculateExpectedDeliveryTime() Dự kiến thời gian giao hàng
pickShift() Danh sách ca lấy đơn hàng
previewOrder() Xem trước thông tin đơn hàng
createOrder() Tạo đơn hàng
orderInfo() Lấy thông tin chi tiết đơn hàng

Ghi chú:

  • Biểu tượng ✅ cho biết công việc đã được hoàn thành.
  • Biểu tượng 📝 cho biết công việc cần được thực hiện.
  • Biểu tượng ❗ cho biết công việc cần sự giúp đỡ.

Code tham khảo: Bấm vào đây

Contribution

giaohangnhanh's People

Contributors

lehuygiang28 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.