getCCAS
Fonction qui retourne les informations du CCAS le plus proche de l'adresse passée en paramètres
/{version}/epsg:{typeProjection}/ccas/{idAdresse}.{_format}
Usage and SDK Samples
curl -X GET "https://api-secteur.sig.rennesmetropole.fr/{version}/epsg:{typeProjection}/ccas/{idAdresse}.{_format}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CCASApi;
import java.io.File;
import java.util.*;
public class CCASApiExample {
public static void main(String[] args) {
CCASApi apiInstance = new CCASApi();
String version = version_example; // String | Version de l'API
String typeProjection = typeProjection_example; // String | Le type de projection souhaité
String idAdresse = idAdresse_example; // String | L'ID de l'adresse
String format = format_example; // String | Format de retour souhaité
try {
apiInstance.getCCAS(version, typeProjection, idAdresse, format);
} catch (ApiException e) {
System.err.println("Exception when calling CCASApi#getCCAS");
e.printStackTrace();
}
}
}
import io.swagger.client.api.CCASApi;
public class CCASApiExample {
public static void main(String[] args) {
CCASApi apiInstance = new CCASApi();
String version = version_example; // String | Version de l'API
String typeProjection = typeProjection_example; // String | Le type de projection souhaité
String idAdresse = idAdresse_example; // String | L'ID de l'adresse
String format = format_example; // String | Format de retour souhaité
try {
apiInstance.getCCAS(version, typeProjection, idAdresse, format);
} catch (ApiException e) {
System.err.println("Exception when calling CCASApi#getCCAS");
e.printStackTrace();
}
}
}
String *version = version_example; // Version de l'API
String *typeProjection = typeProjection_example; // Le type de projection souhaité
String *idAdresse = idAdresse_example; // L'ID de l'adresse
String *format = format_example; // Format de retour souhaité
CCASApi *apiInstance = [[CCASApi alloc] init];
// Fonction qui retourne les informations du CCAS le plus proche de l'adresse passée en paramètres
[apiInstance getCCASWith:version
typeProjection:typeProjection
idAdresse:idAdresse
format:format
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ApiRestSecteur = require('api_rest_secteur');
var api = new ApiRestSecteur.CCASApi()
var version = version_example; // {String} Version de l'API
var typeProjection = typeProjection_example; // {String} Le type de projection souhaité
var idAdresse = idAdresse_example; // {String} L'ID de l'adresse
var format = format_example; // {String} Format de retour souhaité
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.getCCAS(version, typeProjection, idAdresse, format, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getCCASExample
{
public void main()
{
var apiInstance = new CCASApi();
var version = version_example; // String | Version de l'API
var typeProjection = typeProjection_example; // String | Le type de projection souhaité
var idAdresse = idAdresse_example; // String | L'ID de l'adresse
var format = format_example; // String | Format de retour souhaité
try
{
// Fonction qui retourne les informations du CCAS le plus proche de l'adresse passée en paramètres
apiInstance.getCCAS(version, typeProjection, idAdresse, format);
}
catch (Exception e)
{
Debug.Print("Exception when calling CCASApi.getCCAS: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CCASApi();
$version = version_example; // String | Version de l'API
$typeProjection = typeProjection_example; // String | Le type de projection souhaité
$idAdresse = idAdresse_example; // String | L'ID de l'adresse
$format = format_example; // String | Format de retour souhaité
try {
$api_instance->getCCAS($version, $typeProjection, $idAdresse, $format);
} catch (Exception $e) {
echo 'Exception when calling CCASApi->getCCAS: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CCASApi;
my $api_instance = WWW::SwaggerClient::CCASApi->new();
my $version = version_example; # String | Version de l'API
my $typeProjection = typeProjection_example; # String | Le type de projection souhaité
my $idAdresse = idAdresse_example; # String | L'ID de l'adresse
my $format = format_example; # String | Format de retour souhaité
eval {
$api_instance->getCCAS(version => $version, typeProjection => $typeProjection, idAdresse => $idAdresse, format => $format);
};
if ($@) {
warn "Exception when calling CCASApi->getCCAS: $@\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.CCASApi()
version = version_example # String | Version de l'API
typeProjection = typeProjection_example # String | Le type de projection souhaité
idAdresse = idAdresse_example # String | L'ID de l'adresse
format = format_example # String | Format de retour souhaité
try:
# Fonction qui retourne les informations du CCAS le plus proche de l'adresse passée en paramètres
api_instance.get_ccas(version, typeProjection, idAdresse, format)
except ApiException as e:
print("Exception when calling CCASApi->getCCAS: %s\n" % e)
Parameters
Path parameters
| Name | Description |
|---|---|
| version* |
String
Version de l'API
Required
|
| typeProjection* |
String
Le type de projection souhaité
Required
|
| idAdresse* |
String
L'ID de l'adresse
Required
|
| _format* |
String
Format de retour souhaité
Required
|