Authentication instructions and webhook details
Authentication Detail#
| Classification | Detail | Additional information |
|---|
| web api | web api | Third server calls DJI api to obtain drone information and control drones |
| web hook | web hook | DJI Delivery notifies event information to third server |
| Signature details | Signature result string | X-DJI-Signature |
| Signature field string | X-DJI-Timestamp X-DJI-Nonce Method |
| Signature algorithm | webapi | HmacSHA256("AK+Method+X-DJI-Timestamp+X-DJI-Nonce",SK) |
| webhook | HmacSHA256("AK+X-DJI-Timestamp+X-DJI-Nonce+event_type+sub_type",SK) |
WebAPI#
Common first-level fields| Field name | Field type | Field description | Specific description |
|---|
| code | int32 | Business error code | zero--return normally, not zero--return error |
| message | string | Business error string | zero--empty string, not zero--return specific string |
| data | object | Business return content | Please refer to the detailed interface documentation for specific content. |
WebHook#
Common first-level fields
method: POST| Field name | Field type | Field description | Specific description |
|---|
| group_id | string | notification belongs to which group | uuid string |
| event_type | string | notification event type | device--event of device,task--event of task |
| sub_type | string | notification event subtype | device event--osd、state、hms、progress、topo、bind task evemt--status、statistics |
| timestamp | int64 | Notification timestamp | 13-digit millisecond timestamp |
| data | object | Notification content | Please refer to the table below for specific content |
notification detail#
device control cmd detail#
Modified at 2024-06-24 13:13:58