listAllProvinces
List All Provinces
description goes here
/provinces
Usage and SDK Samples
curl -X GET "http://pt.cambodiacleanup.com/api//provinces?title=&order_by="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DevelopersApi;
import java.io.File;
import java.util.*;
public class DevelopersApiExample {
public static void main(String[] args) {
DevelopersApi apiInstance = new DevelopersApi();
String xAPIKEY = xAPIKEY_example; // String | place your apiKey here
String title = title_example; // String | pass the name or title of the toilet
String orderBy = orderBy_example; // String | pass asc or desc for sorting
try {
apiInstance.listAllProvinces(xAPIKEY, title, orderBy);
} catch (ApiException e) {
System.err.println("Exception when calling DevelopersApi#listAllProvinces");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DevelopersApi;
public class DevelopersApiExample {
public static void main(String[] args) {
DevelopersApi apiInstance = new DevelopersApi();
String xAPIKEY = xAPIKEY_example; // String | place your apiKey here
String title = title_example; // String | pass the name or title of the toilet
String orderBy = orderBy_example; // String | pass asc or desc for sorting
try {
apiInstance.listAllProvinces(xAPIKEY, title, orderBy);
} catch (ApiException e) {
System.err.println("Exception when calling DevelopersApi#listAllProvinces");
e.printStackTrace();
}
}
}
String *xAPIKEY = xAPIKEY_example; // place your apiKey here
String *title = title_example; // pass the name or title of the toilet (optional)
String *orderBy = orderBy_example; // pass asc or desc for sorting (optional)
DevelopersApi *apiInstance = [[DevelopersApi alloc] init];
// List All Provinces
[apiInstance listAllProvincesWith:xAPIKEY
title:title
orderBy:orderBy
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var PublicToiletApi = require('public_toilet_api');
var api = new PublicToiletApi.DevelopersApi()
var xAPIKEY = xAPIKEY_example; // {String} place your apiKey here
var opts = {
'title': title_example, // {String} pass the name or title of the toilet
'orderBy': orderBy_example // {String} pass asc or desc for sorting
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.listAllProvinces(xAPIKEY, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class listAllProvincesExample
{
public void main()
{
var apiInstance = new DevelopersApi();
var xAPIKEY = xAPIKEY_example; // String | place your apiKey here
var title = title_example; // String | pass the name or title of the toilet (optional)
var orderBy = orderBy_example; // String | pass asc or desc for sorting (optional)
try
{
// List All Provinces
apiInstance.listAllProvinces(xAPIKEY, title, orderBy);
}
catch (Exception e)
{
Debug.Print("Exception when calling DevelopersApi.listAllProvinces: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\DevelopersApi();
$xAPIKEY = xAPIKEY_example; // String | place your apiKey here
$title = title_example; // String | pass the name or title of the toilet
$orderBy = orderBy_example; // String | pass asc or desc for sorting
try {
$api_instance->listAllProvinces($xAPIKEY, $title, $orderBy);
} catch (Exception $e) {
echo 'Exception when calling DevelopersApi->listAllProvinces: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DevelopersApi;
my $api_instance = WWW::SwaggerClient::DevelopersApi->new();
my $xAPIKEY = xAPIKEY_example; # String | place your apiKey here
my $title = title_example; # String | pass the name or title of the toilet
my $orderBy = orderBy_example; # String | pass asc or desc for sorting
eval {
$api_instance->listAllProvinces(xAPIKEY => $xAPIKEY, title => $title, orderBy => $orderBy);
};
if ($@) {
warn "Exception when calling DevelopersApi->listAllProvinces: $@\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.DevelopersApi()
xAPIKEY = xAPIKEY_example # String | place your apiKey here
title = title_example # String | pass the name or title of the toilet (optional)
orderBy = orderBy_example # String | pass asc or desc for sorting (optional)
try:
# List All Provinces
api_instance.list_all_provinces(xAPIKEY, title=title, orderBy=orderBy)
except ApiException as e:
print("Exception when calling DevelopersApi->listAllProvinces: %s\n" % e)
Parameters
Header parameters
Name | Description |
---|---|
X_API_KEY* |
String
place your apiKey here
Required
|
Query parameters
Name | Description |
---|---|
title |
String
pass the name or title of the toilet
|
order_by |
String
pass asc or desc for sorting
|