api-examples icon indicating copy to clipboard operation
api-examples copied to clipboard

Collection of simple examples of using Lalamove REST API with different languages

Lalamove REST API Examples

Prerequisite

To run this examples you first must obtain credentials for Lalamove API (api key and secret).

Full Lalamove API documentation can be found at https://developers.lalamove.com/

Java

cd v2/java
javac Quotation.java
java Quotation

javac Order.java
java Orider

cd v3/java
javac Quotation.java
java Quotation

javac Order.java
java Orider

NodeJS

cd nodejs
npm install
node quotation.js
node order.js

PHP

cd php
php quotation.php
php order.php

Python

cd python
pip3 install requests
python3 python/quotation.py
python3 python/order.py

Ruby

cd ruby
ruby quotation.rb
ruby order.rb

Go

cd go
go run quotation.go
go run order.go

C#

cd c_sharp
csc quotation.cs
csc order.cs
order.exe
quotation.exe