getVehiclesByCondition
Finds vehicles by condition
Retrieves multiple vehicles by condition
/order/{orderByCondition}
Usage and SDK Samples
curl -X GET\
-H "Accept: application/json,application/xml"\
"https://bmw.com/api/v3/order/{orderByCondition}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrderApi;
import java.io.File;
import java.util.*;
public class OrderApiExample {
public static void main(String[] args) {
OrderApi apiInstance = new OrderApi();
String orderByCondition = orderByCondition_example; // String | Vehicles of condition to return
try {
Order result = apiInstance.getVehiclesByCondition(orderByCondition);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrderApi#getVehiclesByCondition");
e.printStackTrace();
}
}
}
import io.swagger.client.api.OrderApi;
public class OrderApiExample {
public static void main(String[] args) {
OrderApi apiInstance = new OrderApi();
String orderByCondition = orderByCondition_example; // String | Vehicles of condition to return
try {
Order result = apiInstance.getVehiclesByCondition(orderByCondition);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrderApi#getVehiclesByCondition");
e.printStackTrace();
}
}
}
String *orderByCondition = orderByCondition_example; // Vehicles of condition to return
OrderApi *apiInstance = [[OrderApi alloc] init];
// Finds vehicles by condition
[apiInstance getVehiclesByConditionWith:orderByCondition
completionHandler: ^(Order output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var BmwOnlineOrdersOpenApi30 = require('bmw_online_orders___open_api_30');
var api = new BmwOnlineOrdersOpenApi30.OrderApi()
var orderByCondition = orderByCondition_example; // {{String}} Vehicles of condition to return
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getVehiclesByCondition(orderByCondition, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getVehiclesByConditionExample
{
public void main()
{
var apiInstance = new OrderApi();
var orderByCondition = orderByCondition_example; // String | Vehicles of condition to return
try
{
// Finds vehicles by condition
Order result = apiInstance.getVehiclesByCondition(orderByCondition);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling OrderApi.getVehiclesByCondition: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiOrderApi();
$orderByCondition = orderByCondition_example; // String | Vehicles of condition to return
try {
$result = $api_instance->getVehiclesByCondition($orderByCondition);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderApi->getVehiclesByCondition: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OrderApi;
my $api_instance = WWW::SwaggerClient::OrderApi->new();
my $orderByCondition = orderByCondition_example; # String | Vehicles of condition to return
eval {
my $result = $api_instance->getVehiclesByCondition(orderByCondition => $orderByCondition);
print Dumper($result);
};
if ($@) {
warn "Exception when calling OrderApi->getVehiclesByCondition: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.OrderApi()
orderByCondition = orderByCondition_example # String | Vehicles of condition to return
try:
# Finds vehicles by condition
api_response = api_instance.find_vehicles_by_condition(orderByCondition)
pprint(api_response)
except ApiException as e:
print("Exception when calling OrderApi->getVehiclesByCondition: %s\n" % e)
Parameters
Path parameters
Name | Description |
---|---|
orderByCondition* |
String
Vehicles of condition to return
Required
|