CityBikes API Documentation

Networks

getAllNetworks

Get Networks


/v2/networks

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/citybike/v2/networks"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NetworksApi;

import java.io.File;
import java.util.*;

public class NetworksApiExample {

    public static void main(String[] args) {
        
        NetworksApi apiInstance = new NetworksApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200 result = apiInstance.getAllNetworks(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NetworksApi#getAllNetworks");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NetworksApi;

public class NetworksApiExample {

    public static void main(String[] args) {
        NetworksApi apiInstance = new NetworksApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200 result = apiInstance.getAllNetworks(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NetworksApi#getAllNetworks");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

NetworksApi *apiInstance = [[NetworksApi alloc] init];

// Get Networks
[apiInstance getAllNetworksWith:apiecoKey
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CityBikesApiDocumentation = require('city_bikes_api_documentation');

var api = new CityBikesApiDocumentation.NetworksApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllNetworks(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAllNetworksExample
    {
        public void main()
        {
            
            var apiInstance = new NetworksApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // Get Networks
                inline_response_200 result = apiInstance.getAllNetworks(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NetworksApi.getAllNetworks: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\NetworksApi();
$apiecoKey = apiecoKey_example; // String | 

try {
    $result = $api_instance->getAllNetworks($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling NetworksApi->getAllNetworks: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::NetworksApi;

my $api_instance = WWW::SwaggerClient::NetworksApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->getAllNetworks(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling NetworksApi->getAllNetworks: $@\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.NetworksApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # Get Networks
    api_response = api_instance.get_all_networks(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NetworksApi->getAllNetworks: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - successful


getNetworksByID

Get Networks By ID


/v2/networks/{id}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/citybike/v2/networks/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NetworksApi;

import java.io.File;
import java.util.*;

public class NetworksApiExample {

    public static void main(String[] args) {
        
        NetworksApi apiInstance = new NetworksApi();
        String apiecoKey = apiecoKey_example; // String | 
        String id = id_example; // String | 
        try {
            inline_response_200_1 result = apiInstance.getNetworksByID(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NetworksApi#getNetworksByID");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NetworksApi;

public class NetworksApiExample {

    public static void main(String[] args) {
        NetworksApi apiInstance = new NetworksApi();
        String apiecoKey = apiecoKey_example; // String | 
        String id = id_example; // String | 
        try {
            inline_response_200_1 result = apiInstance.getNetworksByID(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NetworksApi#getNetworksByID");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *id = id_example; // 

NetworksApi *apiInstance = [[NetworksApi alloc] init];

// Get Networks By ID
[apiInstance getNetworksByIDWith:apiecoKey
    id:id
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CityBikesApiDocumentation = require('city_bikes_api_documentation');

var api = new CityBikesApiDocumentation.NetworksApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = id_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getNetworksByID(apiecoKey, id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getNetworksByIDExample
    {
        public void main()
        {
            
            var apiInstance = new NetworksApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = id_example;  // String | 

            try
            {
                // Get Networks By ID
                inline_response_200_1 result = apiInstance.getNetworksByID(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NetworksApi.getNetworksByID: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\NetworksApi();
$apiecoKey = apiecoKey_example; // String | 
$id = id_example; // String | 

try {
    $result = $api_instance->getNetworksByID($apiecoKey, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling NetworksApi->getNetworksByID: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::NetworksApi;

my $api_instance = WWW::SwaggerClient::NetworksApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->getNetworksByID(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling NetworksApi->getNetworksByID: $@\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.NetworksApi()
apiecoKey = apiecoKey_example # String | 
id = id_example # String | 

try: 
    # Get Networks By ID
    api_response = api_instance.get_networks_by_id(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NetworksApi->getNetworksByID: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - successful