简体   繁体   English

Uber应用程序深层链接需要哪些参数?

[英]Which are the required parameters for Uber app deep linking?

So I'm trying to implement a deep link to the Uber app from my WebView app. 因此,我试图从我的WebView应用程序实现到Uber应用程序的深层链接。 I have read the documentation and some of the SO questions but it's not clear to me which parameters are actually required and which are optional? 我已经阅读了文档和一些SO问题,但是不清楚我实际上需要哪些参数,哪些是可选参数?

I have managed to launch the app but I can't get the dropoff location marked using the below link. 我已经成功启动了该应用程序,但无法使用以下链接标记下车地点。 Do I need to enter the product_id ? 我需要输入product_id吗? I want the user to pick this in the app and avoid having to use other Uber api's. 我希望用户在应用程序中选择它,而不必使用其他Uber api。

"uber://?client_id=" + client_id + "=setPickup&pickup=my_location&dropoff[latitude]=" + dropOffLat + "&dropoff[longitude]=" + dropOffLng,

I think the mandatory parameters are similar to the POST /v1/requests API endpoint, which are: start_latitude and start_longitude or start_place_id. 我认为强制性参数类似于POST / v1 / requests API端点,即:start_latitude和start_longitude或start_place_id。

For deep linking the mandatory parameters are: action=setPickup, client_id, pickup[latitude] and pickup[longitude] or pickup=my_location 对于深层链接,必选参数为:action = setPickup,client_id,pickup [latitude]和pickup [longitude]或pickup = my_location

All the others can be chosen by the user in the Uber app. 用户可以在Uber应用程序中选择所有其他选项。

You can see some examples of deep link URIs in the test resources available in the rides-android-sdk and how they are used in the RequestDeeplinkTest 您可以在rides-android-sdk中的可用测试资源中看到一些深层链接URI的示例,以及如何在RequestDeeplinkTest中使用它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM