getAllBuds
Get all eligible buds
Returns all buds with a complimentary schedule and matching parking preference
/buds/{userId}
Usage and SDK Samples
curl -X GET -H "api_key: [[apiKey]]" "https://virtserver.swaggerhub.com/thejavabeanteam/ParkBud/1.0.0/buds/{userId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BudsApi;
import java.io.File;
import java.util.*;
public class BudsApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
BudsApi apiInstance = new BudsApi();
UUID userId = ; // UUID | id of the user
try {
array[User] result = apiInstance.getAllBuds(userId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BudsApi#getAllBuds");
e.printStackTrace();
}
}
}
import io.swagger.client.api.BudsApi;
public class BudsApiExample {
public static void main(String[] args) {
BudsApi apiInstance = new BudsApi();
UUID userId = ; // UUID | id of the user
try {
array[User] result = apiInstance.getAllBuds(userId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BudsApi#getAllBuds");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];
UUID *userId = ; // id of the user
BudsApi *apiInstance = [[BudsApi alloc] init];
// Get all eligible buds
[apiInstance getAllBudsWith:userId
completionHandler: ^(array[User] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ParkBudApi = require('park_bud_api');
var defaultClient = ParkBudApi.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['api_key'] = "Token"
var api = new ParkBudApi.BudsApi()
var userId = ; // {UUID} id of the user
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getAllBuds(userId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getAllBudsExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");
var apiInstance = new BudsApi();
var userId = new UUID(); // UUID | id of the user
try
{
// Get all eligible buds
array[User] result = apiInstance.getAllBuds(userId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling BudsApi.getAllBuds: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');
$api_instance = new Swagger\Client\Api\BudsApi();
$userId = ; // UUID | id of the user
try {
$result = $api_instance->getAllBuds($userId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BudsApi->getAllBuds: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BudsApi;
# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "Bearer";
my $api_instance = WWW::SwaggerClient::BudsApi->new();
my $userId = ; # UUID | id of the user
eval {
my $result = $api_instance->getAllBuds(userId => $userId);
print Dumper($result);
};
if ($@) {
warn "Exception when calling BudsApi->getAllBuds: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
swagger_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['api_key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.BudsApi()
userId = # UUID | id of the user
try:
# Get all eligible buds
api_response = api_instance.get_all_buds(userId)
pprint(api_response)
except ApiException as e:
print("Exception when calling BudsApi->getAllBuds: %s\n" % e)
Parameters
Name | Description |
---|---|
userId* |
UUID
(uuid)
id of the user
Required
|