platforms
Get a list of supported package managers.
/api/platforms
Usage and SDK Samples
curl -X GET "https://api.apieco.ir/libraries/api/platforms?api_key=&page=&per_page="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlatformsApi;
import java.io.File;
import java.util.*;
public class PlatformsApiExample {
public static void main(String[] args) {
PlatformsApi apiInstance = new PlatformsApi();
String apiecoKey = apiecoKey_example; // String |
String apiKey = apiKey_example; // String | get your api key from https://libraries.io/login
String page = page_example; // String | default is `1`
String perPage = perPage_example; // String | default is `30`, max is `100`
try {
array[inline_response_200] result = apiInstance.platforms(apiecoKey, apiKey, page, perPage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PlatformsApi#platforms");
e.printStackTrace();
}
}
}
import io.swagger.client.api.PlatformsApi;
public class PlatformsApiExample {
public static void main(String[] args) {
PlatformsApi apiInstance = new PlatformsApi();
String apiecoKey = apiecoKey_example; // String |
String apiKey = apiKey_example; // String | get your api key from https://libraries.io/login
String page = page_example; // String | default is `1`
String perPage = perPage_example; // String | default is `30`, max is `100`
try {
array[inline_response_200] result = apiInstance.platforms(apiecoKey, apiKey, page, perPage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PlatformsApi#platforms");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; //
String *apiKey = apiKey_example; // get your api key from https://libraries.io/login (optional)
String *page = page_example; // default is `1` (optional)
String *perPage = perPage_example; // default is `30`, max is `100` (optional)
PlatformsApi *apiInstance = [[PlatformsApi alloc] init];
// Get a list of supported package managers.
[apiInstance platformsWith:apiecoKey
apiKey:apiKey
page:page
perPage:perPage
completionHandler: ^(array[inline_response_200] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var Librariesio = require('librariesio');
var api = new Librariesio.PlatformsApi()
var apiecoKey = apiecoKey_example; // {String}
var opts = {
'apiKey': apiKey_example, // {String} get your api key from https://libraries.io/login
'page': page_example, // {String} default is `1`
'perPage': perPage_example // {String} default is `30`, max is `100`
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.platforms(apiecoKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class platformsExample
{
public void main()
{
var apiInstance = new PlatformsApi();
var apiecoKey = apiecoKey_example; // String |
var apiKey = apiKey_example; // String | get your api key from https://libraries.io/login (optional)
var page = page_example; // String | default is `1` (optional)
var perPage = perPage_example; // String | default is `30`, max is `100` (optional)
try
{
// Get a list of supported package managers.
array[inline_response_200] result = apiInstance.platforms(apiecoKey, apiKey, page, perPage);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PlatformsApi.platforms: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\PlatformsApi();
$apiecoKey = apiecoKey_example; // String |
$apiKey = apiKey_example; // String | get your api key from https://libraries.io/login
$page = page_example; // String | default is `1`
$perPage = perPage_example; // String | default is `30`, max is `100`
try {
$result = $api_instance->platforms($apiecoKey, $apiKey, $page, $perPage);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PlatformsApi->platforms: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PlatformsApi;
my $api_instance = WWW::SwaggerClient::PlatformsApi->new();
my $apiecoKey = apiecoKey_example; # String |
my $apiKey = apiKey_example; # String | get your api key from https://libraries.io/login
my $page = page_example; # String | default is `1`
my $perPage = perPage_example; # String | default is `30`, max is `100`
eval {
my $result = $api_instance->platforms(apiecoKey => $apiecoKey, apiKey => $apiKey, page => $page, perPage => $perPage);
print Dumper($result);
};
if ($@) {
warn "Exception when calling PlatformsApi->platforms: $@\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.PlatformsApi()
apiecoKey = apiecoKey_example # String |
apiKey = apiKey_example # String | get your api key from https://libraries.io/login (optional)
page = page_example # String | default is `1` (optional)
perPage = perPage_example # String | default is `30`, max is `100` (optional)
try:
# Get a list of supported package managers.
api_response = api_instance.platforms(apiecoKey, apiKey=apiKey, page=page, perPage=perPage)
pprint(api_response)
except ApiException as e:
print("Exception when calling PlatformsApi->platforms: %s\n" % e)
Parameters
Name | Description |
---|---|
apieco-key* |
String
Required
|
Name | Description |
---|---|
api_key |
String
get your api key from https://libraries.io/login
|
page |
String
default is `1`
|
per_page |
String
default is `30`, max is `100`
|