TinyAPI.Standard 1.0.2

dotnet add package TinyAPI.Standard --version 1.0.2
                    
NuGet\Install-Package TinyAPI.Standard -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TinyAPI.Standard" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TinyAPI.Standard" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="TinyAPI.Standard" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TinyAPI.Standard --version 1.0.2
                    
#r "nuget: TinyAPI.Standard, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TinyAPI.Standard@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TinyAPI.Standard&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=TinyAPI.Standard&version=1.0.2
                    
Install as a Cake Tool

How to Test

The generated SDK also contain one or more Tests, which are contained in the Tests project. In order to invoke these test cases, you will need NUnit 3.0 Test Adapter Extension for Visual Studio. Once the SDK is complied, the test cases should appear in the Test Explorer window. Here, you can click Run All to execute these test cases.

Initialization

API client can be initialized as following.


TinyAPIClient client = new TinyAPIClient();

Class Reference

<a name="list_of_controllers"></a>List of Controllers

<a name="pedidos_controller"></a>Class: PedidosController

Get singleton instance

The singleton instance of the PedidosController class can be accessed from the API Client.

PedidosController pedidos = client.Pedidos;

<a name="pesquisa"></a>Method: Pesquisa

pesquisa

Task<Models.PedidoPesquisaResponse> Pesquisa(
        string token,
        Models.FORMATOEnum formato,
        string numero = null,
        string cliente = null,
        string cpfCnpj = null,
        string dataInicial = null,
        string dataFinal = null,
        string situacao = null,
        string numeroEcommerce = null,
        string idVendedor = null,
        string nomeVendedor = null,
        string situacaoOcorrencia = null,
        string dataInicialOcorrencia = null,
        string dataFinalOcorrencia = null,
        int? pagina = null,
        Models.SORTEnum? sort = Models.SORTEnum.ASC)
Parameters
Parameter Tags Description
token Required Chave gerada para identificar sua empresa
formato Required DefaultValue Formato da resposta da API (json,xml)
numero Optional Número do pedido (no Tiny)
cliente Optional Nome ou código (ou parte) do cliente na base de dados da tinyERP
cpfCnpj Optional CPF ou CNPJ do cliente na base de dados da tinyERP
dataInicial Optional Data de cadastramento inicial dos pedidos que deseja consultar no formato dd/mm/yyyy
dataFinal Optional Data de cadastramento final dos pedidos que deseja consultar no formato dd/mm/yyyy
situacao Optional Situação do pedido conforme tabela de Situações dos Pedidos
numeroEcommerce Optional Número do pedido no ecommerce (ou no seu sistema)
idVendedor Optional Número de identificação do vendedor no Tiny
nomeVendedor Optional Nome do vendedor no Tiny
situacaoOcorrencia Optional Data de ocorrência inicial dos pedidos que deseja consultar no formato dd/mm/yyyy
dataInicialOcorrencia Optional Data de ocorrência inicial dos pedidos que deseja consultar no formato dd/mm/yyyy
dataFinalOcorrencia Optional Data de ocorrência final dos pedidos que deseja consultar no formato dd/mm/yyyy
pagina Optional Número da página
sort Optional DefaultValue Ordenação dos pedidos
Example Usage
string token = "token";
var formato = Models.FORMATOEnumHelper.ParseString("json");
string numero = "numero";
string cliente = "cliente";
string cpfCnpj = "cpf_cnpj";
string dataInicial = "dataInicial";
string dataFinal = "dataFinal";
string situacao = "situacao";
string numeroEcommerce = "numeroEcommerce";
string idVendedor = "idVendedor";
string nomeVendedor = "nomeVendedor";
string situacaoOcorrencia = "situacaoOcorrencia";
string dataInicialOcorrencia = "dataInicialOcorrencia";
string dataFinalOcorrencia = "dataFinalOcorrencia";
int? pagina = 84;
var sort = Models.SORTEnum?Helper.ParseString("ASC");

Models.PedidoPesquisaResponse result = await pedidos.Pesquisa(token, formato, numero, cliente, cpfCnpj, dataInicial, dataFinal, situacao, numeroEcommerce, idVendedor, nomeVendedor, situacaoOcorrencia, dataInicialOcorrencia, dataFinalOcorrencia, pagina, sort);

Back to List of Controllers

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.3 is compatible.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 was computed.  netstandard2.1 was computed. 
.NET Framework net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 673 3/13/2019