通用規則
最新更新:2023-04-10
API的請求格式
https://sms.api.engagelab.cc/v1/<模塊>
模塊: 功能模塊名稱。比如: send (發送模塊), templates (模板) 等。
API返回碼
API 返回的結果是 JSON 格式, 示例如下:
# 認證失敗
{
"code": 30000,
"message": "authentication failed",
}
# 請求成功
{
"result": [
{
"label_id": 598802,
"label_name": "xjm226",
"create_time": "2022-11-10T15:47:05+0800",
"update_time": "2022-11-10T15:47:05+0800"
}
],
"count":1,
"total" : 28
}
# 認證失敗
{
"code": 30000,
"message": "authentication failed",
}
# 請求成功
{
"result": [
{
"label_id": 598802,
"label_name": "xjm226",
"create_time": "2022-11-10T15:47:05+0800",
"update_time": "2022-11-10T15:47:05+0800"
}
],
"count":1,
"total" : 28
}
此代碼塊在浮窗中顯示
- httpStatus: 200 請求是否成功
- result: 數據信息
HTTP 狀態碼
Status | Description | Meaning |
---|---|---|
200 | Success | 響應成功 |
400 | Bad Request | 用戶請求錯誤 |
401 | Unauthorized | 認證失敗 |
404 | Not Found | 請求資源不存在 |
500 | Internal Server Error | 服務發生錯誤,通常是服務器無法正確處理用戶的傳參(此時無法判斷發出的請求是否成功響應)。 |
時區字典
Zone | Description |
---|---|
-12 | International Date Line West |
-11 | Coordinated Universal Time-11 |
-10 | Aleutian Islands(Hawaii) |
-9 | Alaska(Coordinated Universal Time-09) |
-8 | Baja California(Coordinated Universal Time-08,Pacific Time [US & Canada]) |
-7 | Arizona(Chihuahua, La Paz, Mazatlan,Mountain Time [US & Canada],Yukon) |
-6 | Central America(Central Time [US & Canada],Easter Island,Guadalajara, Mexico City, Monterrey,Saskatchewan) |
-5 | Bogota, Lima, Quito, Rio Branco(Chetumal,Eastern Time [US & Canada],Haiti,Havana,Indiana [East],Turks and Caicos) |
-4 | Asuncion(Atlantic Time [Canada],Caracas,Cuiaba,Georgetown, La Paz, Manaus, San Juan,Santiago) |
-3 | Araguaina(Brasilia,Cayenne, Fortaleza,City of Buenos Aires,Greenland,Montevideo,Punta Arenas,Saint Pierre and Miquelon,Salvador) |
-2 | Coordinated Universal Time-02 |
-1 | Azores(Cabo Verde Is.) |
0 | Dublin, Edinburgh, Lisbon, London(Monrovia, Reykjavik,Sao Tome) |
1 | Casablanca(Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna,Belgrade, Bratislava, Budapest, Ljubljana, Prague,Brussels, Copenhagen, Madrid, Paris,Sarajevo, Skopje, Warsaw, Zagreb,Western Central Africa) |
2 | Amman(Athens, Bucharest,Beirut,Cairo,Chisinau,Damascus ,Gaza, Hebron ,Harare, Pretoria,Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius,Jerusalem,Kaliningrad,Khartoum,Tripoli,Windhoek) |
3 | Baghdad(Istanbul,Kuwait, Riyadh,Minsk,Moscow, St. Petersburg,Nairobi) |
4 | Abu Dhabi, Muscat(Astrakhan, Ulyanovsk,Baku,Izhevsk, Samara,Port Louis,Saratov,Tbilisi,Volgograd,Yerevan) |
5 | Ashgabat, Tashkent(Ekaterinburg,Islamabad, Karachi,Qyzylorda) |
6 | Astana(Dhaka,Omsk) |
7 | Bangkok, Hanoi, Jakarta(Barnaul, Gorno-Altaysk,Hovd,Krasnoyarsk,Novosibirsk,Tomsk) |
8 | Beijing, Chongqing, Hong Kong, Urumqi(Irkutsk,Kuala Lumpur, Singapore,Perth,Taipei,Ulaanbaatar) |
9 | Chita(Osaka, Sapporo, Tokyo,Pyongyang,Seoul,Yakutsk) |
10 | Brisbane(Canberra, Melbourne, Sydney,Guam, Port Moresby,Hobart,Vladivostok) |
11 | Bougainville Island(Chokurdakh,Magadan,Norfolk Island,Sakhalin,Solomon Is., New Caledonia) |
12 | Anadyr, Petropavlovsk-Kamchatsky(Auckland, Wellington,Coordinated Universal Time+12,Fiji) |