NxPlay

Plans

plansList

Lista os planos disponíveis

Operação só pode ser efetuada com autenticação


/plans/list

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"https://api.nxplay.com.br/v1//plans/list"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlansApi;

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

public class PlansApiExample {

    public static void main(String[] args) {
        
        PlansApi apiInstance = new PlansApi();
        try {
            array[inline_response_200_2] result = apiInstance.plansList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlansApi#plansList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlansApi;

public class PlansApiExample {

    public static void main(String[] args) {
        PlansApi apiInstance = new PlansApi();
        try {
            array[inline_response_200_2] result = apiInstance.plansList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlansApi#plansList");
            e.printStackTrace();
        }
    }
}

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

// Lista os planos disponíveis
[apiInstance plansListWithCompletionHandler: 
              ^(array[inline_response_200_2] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NxPlay = require('nx_play');

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

namespace Example
{
    public class plansListExample
    {
        public void main()
        {

            var apiInstance = new PlansApi();

            try
            {
                // Lista os planos disponíveis
                array[inline_response_200_2] result = apiInstance.plansList();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlansApi.plansList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPlansApi();

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

my $api_instance = WWW::SwaggerClient::PlansApi->new();

eval { 
    my $result = $api_instance->plansList();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PlansApi->plansList: $@\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.PlansApi()

try: 
    # Lista os planos disponíveis
    api_response = api_instance.plans_list()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PlansApi->plansList: %s\n" % e)

Parameters

Responses

Status: 200 - Lista dos planos

Status: 400 - Erro ao efetuar a consulta

Status: default - successful operation


User

activate

Ativa um usuário

Operação só pode ser efetuada com autenticação


/usuario/status/activate

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.nxplay.com.br/v1//usuario/status/activate"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

    public static void main(String[] args) {
        
        UserApi apiInstance = new UserApi();
        Body body = ; // Body | 
        try {
            inline_response_200_1 result = apiInstance.activate(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#activate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        Body body = ; // Body | 
        try {
            inline_response_200_1 result = apiInstance.activate(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#activate");
            e.printStackTrace();
        }
    }
}
Body *body = ; //  (optional)

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

// Ativa um usuário
[apiInstance activateWith:body
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NxPlay = require('nx_play');

var api = new NxPlay.UserApi()
var opts = { 
  'body':  // {{Body}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.activate(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class activateExample
    {
        public void main()
        {

            var apiInstance = new UserApi();
            var body = new Body(); // Body |  (optional) 

            try
            {
                // Ativa um usuário
                inline_response_200_1 result = apiInstance.activate(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.activate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiUserApi();
$body = ; // Body | 

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

my $api_instance = WWW::SwaggerClient::UserApi->new();
my $body = WWW::SwaggerClient::Object::Body->new(); # Body | 

eval { 
    my $result = $api_instance->activate(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserApi->activate: $@\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.UserApi()
body =  # Body |  (optional)

try: 
    # Ativa um usuário
    api_response = api_instance.activate(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->activate: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - Usuário ativado

Status: 400 - Erro ao ativar

Status: default - successful operation


changeplan

Altera o plano de um usuário

Operação só pode ser efetuada com autenticação


/usuario/plano/change

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.nxplay.com.br/v1//usuario/plano/change"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

    public static void main(String[] args) {
        
        UserApi apiInstance = new UserApi();
        Body_2 body = ; // Body_2 | 
        try {
            inline_response_200_1 result = apiInstance.changeplan(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#changeplan");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        Body_2 body = ; // Body_2 | 
        try {
            inline_response_200_1 result = apiInstance.changeplan(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#changeplan");
            e.printStackTrace();
        }
    }
}
Body_2 *body = ; //  (optional)

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

// Altera o plano de um usuário
[apiInstance changeplanWith:body
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NxPlay = require('nx_play');

var api = new NxPlay.UserApi()
var opts = { 
  'body':  // {{Body_2}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.changeplan(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class changeplanExample
    {
        public void main()
        {

            var apiInstance = new UserApi();
            var body = new Body_2(); // Body_2 |  (optional) 

            try
            {
                // Altera o plano de um usuário
                inline_response_200_1 result = apiInstance.changeplan(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.changeplan: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiUserApi();
$body = ; // Body_2 | 

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

my $api_instance = WWW::SwaggerClient::UserApi->new();
my $body = WWW::SwaggerClient::Object::Body_2->new(); # Body_2 | 

eval { 
    my $result = $api_instance->changeplan(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserApi->changeplan: $@\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.UserApi()
body =  # Body_2 |  (optional)

try: 
    # Altera o plano de um usuário
    api_response = api_instance.changeplan(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->changeplan: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - Plano alterado

Status: 400 - Erro ao alterar plano

Status: default - successful operation


createUser

Cadastra um novo usuário

Operação só pode ser efetuada com autenticação


/auth/create/

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.nxplay.com.br/v1//auth/create/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

    public static void main(String[] args) {
        
        UserApi apiInstance = new UserApi();
        User body = ; // User | Objeto usuário
        try {
            inline_response_200 result = apiInstance.createUser(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#createUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        User body = ; // User | Objeto usuário
        try {
            inline_response_200 result = apiInstance.createUser(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#createUser");
            e.printStackTrace();
        }
    }
}
User *body = ; // Objeto usuário

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

// Cadastra um novo usuário
[apiInstance createUserWith:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NxPlay = require('nx_play');

var api = new NxPlay.UserApi()
var body = ; // {{User}} Objeto usuário

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

namespace Example
{
    public class createUserExample
    {
        public void main()
        {

            var apiInstance = new UserApi();
            var body = new User(); // User | Objeto usuário

            try
            {
                // Cadastra um novo usuário
                inline_response_200 result = apiInstance.createUser(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.createUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiUserApi();
$body = ; // User | Objeto usuário

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

my $api_instance = WWW::SwaggerClient::UserApi->new();
my $body = WWW::SwaggerClient::Object::User->new(); # User | Objeto usuário

eval { 
    my $result = $api_instance->createUser(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserApi->createUser: $@\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.UserApi()
body =  # User | Objeto usuário

try: 
    # Cadastra um novo usuário
    api_response = api_instance.create_user(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->createUser: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - Cadastro efetuado

Status: default - successful operation


deactivate

Desativa um usuário

Operação só pode ser efetuada com autenticação


/usuario/status/deactivate

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.nxplay.com.br/v1//usuario/status/deactivate"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

    public static void main(String[] args) {
        
        UserApi apiInstance = new UserApi();
        Body_1 body = ; // Body_1 | 
        try {
            inline_response_200_1 result = apiInstance.deactivate(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#deactivate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        Body_1 body = ; // Body_1 | 
        try {
            inline_response_200_1 result = apiInstance.deactivate(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#deactivate");
            e.printStackTrace();
        }
    }
}
Body_1 *body = ; //  (optional)

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

// Desativa um usuário
[apiInstance deactivateWith:body
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NxPlay = require('nx_play');

var api = new NxPlay.UserApi()
var opts = { 
  'body':  // {{Body_1}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deactivate(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deactivateExample
    {
        public void main()
        {

            var apiInstance = new UserApi();
            var body = new Body_1(); // Body_1 |  (optional) 

            try
            {
                // Desativa um usuário
                inline_response_200_1 result = apiInstance.deactivate(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.deactivate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiUserApi();
$body = ; // Body_1 | 

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

my $api_instance = WWW::SwaggerClient::UserApi->new();
my $body = WWW::SwaggerClient::Object::Body_1->new(); # Body_1 | 

eval { 
    my $result = $api_instance->deactivate(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserApi->deactivate: $@\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.UserApi()
body =  # Body_1 |  (optional)

try: 
    # Desativa um usuário
    api_response = api_instance.deactivate(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->deactivate: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - Usuário desativado

Status: 400 - Erro ao desativar

Status: default - successful operation


userExists

Verifica se um usuário existe, consultando pelo cpf

Operação só pode ser efetuada com autenticação


/usuario/exists

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.nxplay.com.br/v1//usuario/exists"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

    public static void main(String[] args) {
        
        UserApi apiInstance = new UserApi();
        Body_3 body = ; // Body_3 | 
        try {
            inline_response_200_1 result = apiInstance.userExists(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userExists");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        Body_3 body = ; // Body_3 | 
        try {
            inline_response_200_1 result = apiInstance.userExists(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userExists");
            e.printStackTrace();
        }
    }
}
Body_3 *body = ; //  (optional)

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

// Verifica se um usuário existe, consultando pelo cpf
[apiInstance userExistsWith:body
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NxPlay = require('nx_play');

var api = new NxPlay.UserApi()
var opts = { 
  'body':  // {{Body_3}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.userExists(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class userExistsExample
    {
        public void main()
        {

            var apiInstance = new UserApi();
            var body = new Body_3(); // Body_3 |  (optional) 

            try
            {
                // Verifica se um usuário existe, consultando pelo cpf
                inline_response_200_1 result = apiInstance.userExists(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.userExists: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiUserApi();
$body = ; // Body_3 | 

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

my $api_instance = WWW::SwaggerClient::UserApi->new();
my $body = WWW::SwaggerClient::Object::Body_3->new(); # Body_3 | 

eval { 
    my $result = $api_instance->userExists(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserApi->userExists: $@\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.UserApi()
body =  # Body_3 |  (optional)

try: 
    # Verifica se um usuário existe, consultando pelo cpf
    api_response = api_instance.user_exists(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->userExists: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - Consulta efetuada

Status: 400 - Erro ao efetuar a consulta

Status: default - successful operation


usuarioChangePassword

Altera a senha de um usuário

Operação só pode ser efetuada com autenticação


/usuario/change_password

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.nxplay.com.br/v1//usuario/change_password"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

    public static void main(String[] args) {
        
        UserApi apiInstance = new UserApi();
        Body_4 body = ; // Body_4 | 
        try {
            inline_response_200_1 result = apiInstance.usuarioChangePassword(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#usuarioChangePassword");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        Body_4 body = ; // Body_4 | 
        try {
            inline_response_200_1 result = apiInstance.usuarioChangePassword(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#usuarioChangePassword");
            e.printStackTrace();
        }
    }
}
Body_4 *body = ; //  (optional)

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

// Altera a senha de um usuário
[apiInstance usuarioChangePasswordWith:body
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NxPlay = require('nx_play');

var api = new NxPlay.UserApi()
var opts = { 
  'body':  // {{Body_4}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.usuarioChangePassword(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class usuarioChangePasswordExample
    {
        public void main()
        {

            var apiInstance = new UserApi();
            var body = new Body_4(); // Body_4 |  (optional) 

            try
            {
                // Altera a senha de um usuário
                inline_response_200_1 result = apiInstance.usuarioChangePassword(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.usuarioChangePassword: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiUserApi();
$body = ; // Body_4 | 

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

my $api_instance = WWW::SwaggerClient::UserApi->new();
my $body = WWW::SwaggerClient::Object::Body_4->new(); # Body_4 | 

eval { 
    my $result = $api_instance->usuarioChangePassword(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserApi->usuarioChangePassword: $@\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.UserApi()
body =  # Body_4 |  (optional)

try: 
    # Altera a senha de um usuário
    api_response = api_instance.usuario_change_password(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->usuarioChangePassword: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - Senha alterada

Status: 400 - Erro ao alterar senha

Status: default - successful operation