getOrders
Get a all orders
/api/admins/orders
Usage and SDK Samples
curl -X GET \
-H "Accept: */*,application/json" \
"http://localhost:8443/api/admins/orders?page=page_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AdminRestControllerApi;
import java.io.File;
import java.util.*;
public class AdminRestControllerApiExample {
public static void main(String[] args) {
// Create an instance of the API class
AdminRestControllerApi apiInstance = new AdminRestControllerApi();
String page = page_example; // String | page
try {
apiInstance.getOrders(page);
} catch (ApiException e) {
System.err.println("Exception when calling AdminRestControllerApi#getOrders");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.AdminRestControllerApi;
public class AdminRestControllerApiExample {
public static void main(String[] args) {
AdminRestControllerApi apiInstance = new AdminRestControllerApi();
String page = page_example; // String | page
try {
apiInstance.getOrders(page);
} catch (ApiException e) {
System.err.println("Exception when calling AdminRestControllerApi#getOrders");
e.printStackTrace();
}
}
}
// Create an instance of the API class
AdminRestControllerApi *apiInstance = [[AdminRestControllerApi alloc] init];
String *page = page_example; // page (optional) (default to null)
// Get a all orders
[apiInstance getOrdersWith:page
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var OpenApiDefinition = require('open_api_definition');
// Create an instance of the API class
var api = new OpenApiDefinition.AdminRestControllerApi()
var opts = {
'page': page_example // {String} page
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.getOrders(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getOrdersExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new AdminRestControllerApi();
var page = page_example; // String | page (optional) (default to null)
try {
// Get a all orders
apiInstance.getOrders(page);
} catch (Exception e) {
Debug.Print("Exception when calling AdminRestControllerApi.getOrders: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AdminRestControllerApi();
$page = page_example; // String | page
try {
$api_instance->getOrders($page);
} catch (Exception $e) {
echo 'Exception when calling AdminRestControllerApi->getOrders: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AdminRestControllerApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AdminRestControllerApi->new();
my $page = page_example; # String | page
eval {
$api_instance->getOrders(page => $page);
};
if ($@) {
warn "Exception when calling AdminRestControllerApi->getOrders: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.AdminRestControllerApi()
page = page_example # String | page (optional) (default to null)
try:
# Get a all orders
api_instance.get_orders(page=page)
except ApiException as e:
print("Exception when calling AdminRestControllerApi->getOrders: %s\n" % e)
extern crate AdminRestControllerApi;
pub fn main() {
let page = page_example; // String
let mut context = AdminRestControllerApi::Context::default();
let result = client.getOrders(page, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Name | Description |
---|---|
page |
String
page
|