Catalog npm
Back to packageRELEASE DETAILS

0.1.2

npm

247express

247Express API connect

247expressapi
Published16 Oct 2020
Direct dependencies0
Transitive dependenciesNot calculated

README

Current package documentation

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:

APITên APIMô tả
authenThiết lập header[Chi tiết][12]
clientLoginĐăng nhập[Chi tiết][1]
getServiceTypesLấy danh sách dịch vụ chính[Chi tiết][2]
getServicesLấy danh sách dịch vụ gia tăng[Chi tiết][3]
getClientHubsLấy danh sách điểm gửi hàng[Chi tiết][4]
updateOrderCập nhật vận đơn[Chi tiết][5]
cancelOrderHủy vận đơn[Chi tiết][6]
getOrderImagesLấy ảnh vận đơn[Chi tiết][7]
getPriceTính giá vận đơn[Chi tiết][8]
createOrderTạo vận đơn[Chi tiết][9]
createClientHubTạo điểm gửi hàng[Chi tiết][10]
trackingTrack 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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-nXztwzZ0OsUiwr/UwEhyXGtNAiFoKuVg5B5iRTLU9yyPcr14OOYqc4787PMq1OMq+DClNBeIrNEY5DTDjGaR+A==",
  "shasum": "0773a70b3246ff9a2a6ac389013053ec4438c9a0",
  "tarball": "https://registry.npmjs.org/247express/-/247express-0.1.2.tgz",
  "fileCount": 3,
  "unpackedSize": 6928,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfiQmuCRA9TVsSAnZWagAAyxIQAJZBunP0zUWdQ9bKHCeh\nTk0BidEcmPhq15VrZqLbgtLzTealqIuBu8CddW+lr2xWOfZh3N3tGBOwRdGx\nAo+Ui47sPdJorozommYdo6clZKmXbg/v4pYo/4Bhl7+TDi6p2gYR/x4cA9jT\npoQuuIaw34iv+VvmM8pAkGTaAxx6XvlSOBY/711HHUo8XkyCE5JIrSGADRLe\nhgGNHHjt/6nXb2ujn+3/2w/2Aw1NA8MgjpKYJu6jX8MGc+K4XPHI25a17VmJ\njF35ONKX1mATfdTuD9SbGUR40PujNvlAMNL+zPUPEWoib3/jv+q0xmPZWZ7a\n77DcpzgZQ+J8J5idf6TWGMA9qzS0ERr7HOiSYu/GjeUZoqWqyDbwWUs72BRC\nuaMzckngLJQ2DAIbZ257hWH+NTrZD9V6+ztBtOVrDyA7yMjoaE2H6FJ/4cbY\ncqONNxVv3XWxfWc9cvW1+cenXTIXv3L8QMzzvX5PIv67ZaNLNz4la0ZLV0LI\n4nMomFfCSkKUBHXeK+sWKl2L8j15ohQ6Tm0WtGbroEBMU3D1kDYzr+xnepQH\nN3SLduhY95ltNDlz3LadMoPcrwHu7IlD8ArWsT6YtGnTuxayg2feVhrzsYdc\nk7Y3BXhyW1v17HkDsRAP3EL//MYe/hKDNOo6kW8wvoUfBONEcjz2LkvW8+sB\n76nx\r\n=sM4A\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIBcSS5BtELW1jQnqc4zSP7LX1IDbWD/PY3h7sfFanW4pAiEA6CAdrlO3pe8UYfYE6w3Vt+u2l68xkylGHXDLH8PRGj8="
    }
  ]
}

Repository

PENDING
anhhangxom0610/247expressapi

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:03 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:ce89e94de517bd4b1164e162ae114c4da2a7233b24df51728667f5b5afe6b909

Other collected versions

0.3.016 Oct0.2.916 Oct0.2.816 Oct0.2.716 Oct0.2.616 Oct0.2.516 OctView all collected versions →