dji 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -17
- data/lib/dji/order_tracking.rb +2 -1
- data/lib/dji/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a45fe6db55a056b60b82fb1a8eb395ae82bb9841
|
4
|
+
data.tar.gz: a885ab19d9994b807ea7cf6bfa5db8fa286a8b79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7f2fab5ad4d46d504874b042102eceb0c5a2502e7d9631be1146e1ae774869444fe242707bf5a3d8e496c1f23aa38b9d6dd5e0ccef17b7d37bf8374eb403998
|
7
|
+
data.tar.gz: 726745c89e6e990476be0dd75c71709ab022d81567a20dac65d2257bb3cb779e94e6d4d0412e1942baf510850c21c4d05348ebf1f081243fb735c1f5e5f3e46e
|
data/README.md
CHANGED
@@ -32,10 +32,11 @@ $ dji track [options]
|
|
32
32
|
|
33
33
|
OPTIONS:
|
34
34
|
|
35
|
-
-o, --order ORDER_NUMBER
|
36
|
-
-p, --phone PHONE_TAIL
|
37
|
-
-r, --repeat INTERVAL
|
38
|
-
--publish
|
35
|
+
-o, --order ORDER_NUMBER # Your order number
|
36
|
+
-p, --phone PHONE_TAIL # Last 4 digits of your phone number
|
37
|
+
-r, --repeat INTERVAL # Optional: Repat every INTERVAL seconds
|
38
|
+
--publish # Optional: Publish your order details to http://dji-track.herokuapp.com/orders
|
39
|
+
-u, --dji_username USERNAME # Optional: Your DJI Forum username
|
39
40
|
```
|
40
41
|
|
41
42
|
#### Example: Track an order
|
@@ -82,28 +83,30 @@ If you want this to repeat automatically at an interval, specify the option for
|
|
82
83
|
|
83
84
|
#### Example: Track an order, every 5 minutes, and publish details for others to see
|
84
85
|
|
85
|
-
$ dji track -o 123456789012 -p 1234 -r 300 --publish
|
86
|
+
$ dji track -o 123456789012 -p 1234 -r 300 --publish -u dronenerd
|
86
87
|
|
87
88
|
ORDER TRACKING AS OF 2016-10-27 01:12:27 -0700
|
88
89
|
------------------------------------------------------
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
Shipping
|
94
|
-
|
90
|
+
DJI Forum Username : dronenerd
|
91
|
+
Order Number : 123456789012
|
92
|
+
Total : USD $1,398.00
|
93
|
+
Payment Status : Pay Confirmed
|
94
|
+
Shipping Status : Pending
|
95
|
+
Shipping Company : Tba
|
96
|
+
Tracking Number :
|
95
97
|
|
96
98
|
You have successfully published your latest order status.
|
97
99
|
See order statuses reported by others at http://dji-track.herokuapp.com/orders
|
98
100
|
|
99
101
|
ORDER TRACKING AS OF 2016-10-27 01:17:28 -0700
|
100
102
|
------------------------------------------------------
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
Shipping
|
106
|
-
|
103
|
+
DJI Forum Username : dronenerd
|
104
|
+
Order Number : 123456789012
|
105
|
+
Total : USD $1,398.00
|
106
|
+
Payment Status : Pay Confirmed
|
107
|
+
Shipping Status : Pending
|
108
|
+
Shipping Company : Tba
|
109
|
+
Tracking Number :
|
107
110
|
|
108
111
|
You have successfully published your latest order status.
|
109
112
|
See order statuses reported by others at http://dji-track.herokuapp.com/orders
|
data/lib/dji/order_tracking.rb
CHANGED
@@ -95,7 +95,8 @@ module DJI
|
|
95
95
|
params = {
|
96
96
|
format: :json,
|
97
97
|
order: {
|
98
|
-
|
98
|
+
merchant: 'DJI',
|
99
|
+
order_id: data[:order_number],
|
99
100
|
payment_status: data[:payment_status],
|
100
101
|
payment_total: data[:total],
|
101
102
|
shipping_status: data[:shipping_status],
|
data/lib/dji/version.rb
CHANGED