Sbogard
Uber API
<?php // Display Version dropdown list
if(!$isIsolated ||!$wgUser->isAnon()) {
if(($_SERVER['REQUEST_URI'] != '/' . PONYDOCS_DOCUMENTATION_NAMESPACE_NAME) && (!preg_match('/^\/' . PONYDOCS_DOCUMENTATION_NAMESPACE_NAME . '\/(\w+)$/', $_SERVER['REQUEST_URI']))) {
if(strpos($_SERVER['REQUEST_URI'], '/Documentation/') !== false) { ?>
<?php
if( $this->data['pIsDocumentationTopic'] )
foreach( $this->data['versions'] as $idx => $data ) {
echo '<a href="/pure-engage/' . str_replace(':'. $this->data['selectedVersion'] , ':' . $data['name'] , $wgTitle) . '" ';
if( !strcmp( $data['name'], $this->data['selectedVersion'] )) {
echo 'style="padding: 0.3em; color: #FDFDFD; background-color: #5e99ff;"';
}
else echo 'style="padding: 0.3em;" ';
if( isset($data['label']))
echo '> ' . $data['label'] . ' </a> ';
else
echo '> ' . $data['name'] .' </a> ';
}
?>
<?php
}
}
}
?>
Access
Methods
Jump to Models
Table of Contents
Estimates
Products
User
get /historyget /me
Estimates
get /estimates/price
<code class="huge"><span class="http-method">get</span> /estimates/price</code>
for each product offered at a given location. The price estimate is provided as a formatted string with the full price range and the localized currency symbol.<br><br>The response also includes low and high estimates, and the [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) currency code for situations requiring currency conversion. When surge is active for a particular product, its surge_multiplier will be greater than 1, but the price estimate already factors in this multiplier.
Query parameters
Return type
array[<a href="#inline_response_200_1">inline_response_200_1</a>]
Example data
<code>[ {
"high_estimate" : 1.3579000000000001069366817318950779736042022705078125,
"product_id" : "aeiou",
"low_estimate" : 1.3579000000000001069366817318950779736042022705078125,
"surge_multiplier" : 1.3579000000000001069366817318950779736042022705078125,
"estimate" : "aeiou",
"display_name" : "aeiou",
"currency_code" : "aeiou"
} ]</code>
Produces=
This API call produces the following media types according to the Accept request header;
the media type will be conveyed by the Content-Type response header.
application/json
Responses
200
An array of price estimates by product
0
Unexpected error
<a href="#inline_response_default">inline_response_default</a>
<a class="up" href="#__Methods">Up</a>
<code class="huge"><span class="http-method">get</span> /estimates/time</code>
Query parameters
Return type
array[<a href="#inline_response_200">inline_response_200</a>]
Example data
<code>[ {
"image" : "aeiou",
"product_id" : "aeiou",
"description" : "aeiou",
"display_name" : "aeiou",
"capacity" : "aeiou"
} ]</code>
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
application/json
Responses
200
An array of products
0
Unexpected error
<a href="#inline_response_default">inline_response_default</a>
<a name="Products">Products</a>
<a class="up" href="#__Methods">Up</a>
<code class="huge"><span class="http-method">get</span> /products</code>
offered at a given location. The response includes the display name and other details about each product, and lists the products in the proper display order.
Query parameters
Return type
array[<a href="#inline_response_200">inline_response_200</a>]
Example data
<code>[ {
"image" : "aeiou",
"product_id" : "aeiou",
"description" : "aeiou",
"display_name" : "aeiou",
"capacity" : "aeiou"
} ]</code>
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
application/json
Responses
200
An array of products
0
Unexpected error
<a href="#inline_response_default">inline_response_default</a>
<a name="User">User</a>
<a class="up" href="#__Methods">Up</a>
<code class="huge"><span class="http-method">get</span> /history</code>
Query parameters
Return type
<a href="#inline_response_200_3">inline_response_200_3</a>
Example data
<code>{
"offset" : 123,
"limit" : 123,
"count" : 123,
"history" : [ {
"uuid" : "aeiou"
} ]
}</code>
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
application/json
Responses
200
History information for the given user
<a href="#inline_response_200_3">inline_response_200_3</a>
0
Unexpected error
<a href="#inline_response_default">inline_response_default</a>
<a class="up" href="#__Methods">Up</a>
<code class="huge"><span class="http-method">get</span> /me</code>
Return type
<a href="#inline_response_200_2">inline_response_200_2</a>
Example data
<code>{
"last_name" : "aeiou",
"promo_code" : "aeiou",
"first_name" : "aeiou",
"email" : "aeiou",
"picture" : "aeiou"
}</code>
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
application/json
Responses
200
Profile information for a user
<a href="#inline_response_200_2">inline_response_200_2</a>
0
Unexpected error
<a href="#inline_response_default">inline_response_default</a>
Models
[ Jump to <a href="#__Methods">Methods</a> ]
Table of Contents
- <a href="#Activities">
Activities</a> - <a href="#Activity">
Activity</a> - <a href="#Error">
Error</a> - <a href="#inline_response_200">
inline_response_200</a> - <a href="#inline_response_200_1">
inline_response_200_1</a> - <a href="#inline_response_200_2">
inline_response_200_2</a> - <a href="#inline_response_200_3">
inline_response_200_3</a> - <a href="#inline_response_200_3_history">
inline_response_200_3_history</a> - <a href="#inline_response_default">
inline_response_default</a> - <a href="#PriceEstimate">
PriceEstimate</a> - <a href="#Product">
Product</a> - <a href="#Profile">
Profile</a>
<a name="Activities">Activities - </a> <a class="up" href="#__Models">Up</a>
<a name="Activity">Activity - </a> <a class="up" href="#__Models">Up</a>
<a name="Error">Error - </a> <a class="up" href="#__Models">Up</a>
<a name="inline_response_200">inline_response_200 - </a> <a class="up" href="#__Models">Up</a>
<a name="inline_response_200_1">inline_response_200_1 - </a> <a class="up" href="#__Models">Up</a>
<a name="inline_response_200_2">inline_response_200_2 - </a> <a class="up" href="#__Models">Up</a>
<a name="inline_response_200_3">inline_response_200_3 - </a> <a class="up" href="#__Models">Up</a>
<a name="inline_response_200_3_history">inline_response_200_3_history - </a> <a class="up" href="#__Models">Up</a>
<a name="inline_response_default">inline_response_default - </a> <a class="up" href="#__Models">Up</a>
<a name="PriceEstimate">PriceEstimate - </a> <a class="up" href="#__Models">Up</a>
<a name="Product">Product - </a> <a class="up" href="#__Models">Up</a>
<a name="Profile">Profile - </a> <a class="up" href="#__Models">Up</a>
</body>
