乘车提醒 Uber Api 出现 JSON 错误
Ride Reminders Uber Api got JSON error
您好,我正在尝试在我的项目中实施 Ride Reminder Uber API,但我收到如下错误响应:
引用URL:
https://developer.uber.com/docs/v1-reminders-post
JSON 错误响应:
{
"message": "Unable to parse JSON in request body.",
"code": "invalid_json"
}
URL
https://api.uber.com/v1/reminders
Headers:
Content-Type: application/json
Authorization: Token vzOv0AaaZVRaV1FiZLt9SPU2ZgIrBgQ6uZy6j4Gr
Post 参数:
reminder_time:1451496600(Unix UTC timestamp of when the reminder will occur.)
phone_number: +91xxxxxxxxxx(India's number)
server_token: vzOv0AaaZVRaV1FiZLt9SPU2ZgIrBgQ6uZy6j4Gr
event: {
"time": "1451498400",
"longitude": "72.5290",
"latitude": "23.0384",
"location": "Vastrapurlake",
"name": "Test"
}
更多细节检查Post人工屏幕截图:
Post 参数:Click here
Header 参数:Click here
你能帮帮我吗,在此先感谢!!
你的 Content-Type 和令牌是有效的,不要在那里改变任何东西。
只需转换您的参数 json 不要忘记使用双引号。
你必须在 postman 中以 json 格式传递这些数据。
{"reminder_time":"1451649600",
"phone_number": "+91<YOUR-MOBILE-NUMBER>",
"server_token": "vzOv0AaaZVRaV1FiZLt9SPU2ZgIrBgQ6uZy6j4Gr",
"event": {
"time": "1451649600",
"longitude": "72.5290",
"latitude": "23.0384",
"location": "Vastrapurlake",
"name": "Test"
}}
您好,我正在尝试在我的项目中实施 Ride Reminder Uber API,但我收到如下错误响应:
引用URL:
https://developer.uber.com/docs/v1-reminders-post
JSON 错误响应:
{
"message": "Unable to parse JSON in request body.",
"code": "invalid_json"
}
URL
https://api.uber.com/v1/reminders
Headers:
Content-Type: application/json
Authorization: Token vzOv0AaaZVRaV1FiZLt9SPU2ZgIrBgQ6uZy6j4Gr
Post 参数:
reminder_time:1451496600(Unix UTC timestamp of when the reminder will occur.)
phone_number: +91xxxxxxxxxx(India's number)
server_token: vzOv0AaaZVRaV1FiZLt9SPU2ZgIrBgQ6uZy6j4Gr
event: {
"time": "1451498400",
"longitude": "72.5290",
"latitude": "23.0384",
"location": "Vastrapurlake",
"name": "Test"
}
更多细节检查Post人工屏幕截图:
Post 参数:Click here Header 参数:Click here
你能帮帮我吗,在此先感谢!!
你的 Content-Type 和令牌是有效的,不要在那里改变任何东西。
只需转换您的参数 json 不要忘记使用双引号。
你必须在 postman 中以 json 格式传递这些数据。
{"reminder_time":"1451649600",
"phone_number": "+91<YOUR-MOBILE-NUMBER>",
"server_token": "vzOv0AaaZVRaV1FiZLt9SPU2ZgIrBgQ6uZy6j4Gr",
"event": {
"time": "1451649600",
"longitude": "72.5290",
"latitude": "23.0384",
"location": "Vastrapurlake",
"name": "Test"
}}