authLoginPost
/auth/login
Usage and SDK Samples
curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"//auth/login"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthApi;
import java.io.File;
import java.util.*;
public class AuthApiExample {
public static void main(String[] args) {
AuthApi apiInstance = new AuthApi();
String username = username_example; // String |
String password = password_example; // String |
try {
LoginToken result = apiInstance.authLoginPost(username, password);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthApi#authLoginPost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AuthApi;
public class AuthApiExample {
public static void main(String[] args) {
AuthApi apiInstance = new AuthApi();
String username = username_example; // String |
String password = password_example; // String |
try {
LoginToken result = apiInstance.authLoginPost(username, password);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthApi#authLoginPost");
e.printStackTrace();
}
}
}
String *username = username_example; // (optional)
String *password = password_example; // (optional)
AuthApi *apiInstance = [[AuthApi alloc] init];
[apiInstance authLoginPostWith:username
password:password
completionHandler: ^(LoginToken output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var BioretesApi = require('bioretes_api');
var api = new BioretesApi.AuthApi()
var opts = {
'username': username_example // {{String}}
'password': password_example // {{String}}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.authLoginPost(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class authLoginPostExample
{
public void main()
{
var apiInstance = new AuthApi();
var username = username_example; // String | (optional)
var password = password_example; // String | (optional)
try
{
LoginToken result = apiInstance.authLoginPost(username, password);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AuthApi.authLoginPost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiAuthApi();
$username = username_example; // String |
$password = password_example; // String |
try {
$result = $api_instance->authLoginPost($username, $password);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthApi->authLoginPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuthApi;
my $api_instance = WWW::SwaggerClient::AuthApi->new();
my $username = username_example; # String |
my $password = password_example; # String |
eval {
my $result = $api_instance->authLoginPost(username => $username, password => $password);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AuthApi->authLoginPost: $@\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.AuthApi()
username = username_example # String | (optional)
password = password_example # String | (optional)
try:
api_response = api_instance.auth_login_post(username=username, password=password)
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthApi->authLoginPost: %s\n" % e)
Parameters
Name | Description |
---|---|
username |
String
|
password |
String
|