npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

247express

v0.3.0

Published

247Express API connect

Readme

247Express API

N|Solid

Build Status

Hướng dẫn chi tiết các bước tích hợp API 247

Các bước tích hợp

Bước 1: Đăng nhập lấy ClientID và Token theo API đăng nhập. Username và Password đăng nhập sẽ được cấp khi là khách hàng của 247.

Bước 2: Lấy danh sách các ClientHubID, đấy chính là danh sách mã định danh (ID) của các địa chỉ gửi hàng của khách hàng. Khi tạo đơn hàng cần gửi, phải điền đúng mã định danh (ClientHubID) tương ứng với địa chỉ gửi hàng đi của đơn hàng đó.

Bước 3: Lấy danh sách dịch vụ chính đã được đăng ký bởi khách hàng.

Bước 4: Lấy danh sách các dịch vụ giá trị gia tăng mà khách hàng có thể sử dụng.

Bước 5: Tạo đơn hàng sử dụng API tạo đơn hàng với các thông tin cần thiết sau:

ClientID và Token lấy ở bước 1 ClientHubId lấy ở bước 2 Dịch vụ chính/dịch vụ giá trị gia tăng lấy bước 3 và 4 (nếu sử dụng).

Cập nhật!

  • 15/10/2020: 247Express triển khai hỗ trợ api trên nền tảng nodejs

Cài đặt

-Yêu cầu nền tảng từ Nodejs 6+. Hỗ trợ với các framework: ReactJS, Angular, VueJS

$ npm install 247express --save

API

247Express hỗ trợ các API dưới đây:

| API | Tên API | Mô tả | ------ | ------ | ------ | | authen | Thiết lập header| [Chi tiết][12] | clientLogin | Đăng nhập| [Chi tiết][1] | getServiceTypes | Lấy danh sách dịch vụ chính |[Chi tiết][2] | getServices | Lấy danh sách dịch vụ gia tăng |[Chi tiết][3] | getClientHubs | Lấy danh sách điểm gửi hàng |[Chi tiết][4] | updateOrder | Cập nhật vận đơn |[Chi tiết][5] | cancelOrder | Hủy vận đơn |[Chi tiết][6] | getOrderImages | Lấy ảnh vận đơn |[Chi tiết][7] | getPrice | Tính giá vận đơn |[Chi tiết][8] | createOrder | Tạo vận đơn |[Chi tiết][9] | createClientHub | Tạo điểm gửi hàng |[Chi tiết][10] | tracking | Track vận đơn |[Chi tiết][11]

Example

Đăng nhập:

import {clientLogin} from '247express';
.....
var response = await clientLogin({
     UserName:"TXN-KH18-0059",
      Password:"456123@" 
});

Thiết lập header:

import {authen} from '247express';
.....
var response = await authen({
     ClientID:12892,
	 token: "582846f37273cf8f4b0cc17d67c34c47"
});

Lấy danh sách dịch vụ chính:

import {getServiceTypes} from '247express';
.....
var response = await getServiceTypes({});

Mọi thắc mắc và yêu cầu hỗ trợ vui lòng gửi về địa chỉ sau

License

MIT [1]: https://apidoc.247post.vn/sso/sso-dang-nhap [2]: https://apidoc.247post.vn/customer-api/danh-sach-dich-vu-chinh [3]: https://apidoc.247post.vn/customer-api/danh-sach-dich-vu-gtgt [4]: https://apidoc.247post.vn/customer-api/danh-sach-dia-chi [5]: https://apidoc.247post.vn/customer-api/cap-nhat-don-hang [6]: https://apidoc.247post.vn/customer-api/huy-don-hang [7]: https://apidoc.247post.vn/customer-api/lay-anh-van-don [8]: https://apidoc.247post.vn/customer-api/tinh-gia [9]: https://apidoc.247post.vn/customer-api/tao-don-hang [10]: https://apidoc.247post.vn/customer-api/tao-dia-chi [11]: https://apidoc.247post.vn/tracking/tracking-don-hang [12]: https://apidoc.247post.vn/customer-api/header-request