badgesBadgenameGet
Badge Information
The Badge Information endpoint returns information about the given badge.
/badges/{badgename}
Usage and SDK Samples
curl -X get -H "Authorization: [[apiKey]]" "https://api.quaris.com/v1/badges/{badgename}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BadgeApi;
import java.io.File;
import java.util.*;
public class BadgeApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: Bearer
ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
Bearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.setApiKeyPrefix("Token");
BadgeApi apiInstance = new BadgeApi();
String badgename = badgename_example; // String | A specific Badge's name
try {
BadgeDTO result = apiInstance.badgesBadgenameGet(badgename);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BadgeApi#badgesBadgenameGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.BadgeApi;
public class BadgeApiExample {
public static void main(String[] args) {
BadgeApi apiInstance = new BadgeApi();
String badgename = badgename_example; // String | A specific Badge's name
try {
BadgeDTO result = apiInstance.badgesBadgenameGet(badgename);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BadgeApi#badgesBadgenameGet");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
String *badgename = badgename_example; // A specific Badge's name
BadgeApi *apiInstance = [[BadgeApi alloc] init];
// Badge Information
[apiInstance badgesBadgenameGetWith:badgename
completionHandler: ^(BadgeDTO output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var Quaris = require('quaris');
var defaultClient = Quaris.ApiClient.instance;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"
var api = new Quaris.BadgeApi()
var badgename = badgename_example; // {String} A specific Badge's name
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.badgesBadgenameGet(badgename, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class badgesBadgenameGetExample
{
public void main()
{
// Configure API key authorization: Bearer
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new BadgeApi();
var badgename = badgename_example; // String | A specific Badge's name
try
{
// Badge Information
BadgeDTO result = apiInstance.badgesBadgenameGet(badgename);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling BadgeApi.badgesBadgenameGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$api_instance = new Swagger\Client\Api\BadgeApi();
$badgename = badgename_example; // String | A specific Badge's name
try {
$result = $api_instance->badgesBadgenameGet($badgename);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BadgeApi->badgesBadgenameGet: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
Name | Description |
---|---|
badgename* |