TinyAPIClient 1.0.1
dotnet add package TinyAPIClient --version 1.0.1
NuGet\Install-Package TinyAPIClient -Version 1.0.1
<PackageReference Include="TinyAPIClient" Version="1.0.1" />
paket add TinyAPIClient --version 1.0.1
#r "nuget: TinyAPIClient, 1.0.1"
// Install TinyAPIClient as a Cake Addin
#addin nuget:?package=TinyAPIClient&version=1.0.1
// Install TinyAPIClient as a Cake Tool
#tool nuget:?package=TinyAPIClient&version=1.0.1
TinyAPIClient - the C# library for the tiny
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
This C# SDK is automatically generated by the Swagger Codegen project:
- API version: 1.0
- SDK version: 1.0.1
- Build package: io.swagger.codegen.languages.CSharpClientCodegen
<a name="frameworks-supported"></a>
Frameworks supported
- .NET 4.0 or later
- Windows Phone 7.1 (Mango)
<a name="dependencies"></a>
Dependencies
- RestSharp - 105.1.0 or later
- Json.NET - 7.0.0 or later
- JsonSubTypes - 1.2.0 or later
The DLLs included in the package may not be the latest version. We recommend using NuGet to obtain the latest version of the packages:
Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes
NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742
<a name="installation"></a>
Installation
Run the following command to generate the DLL
- [Mac/Linux]
/bin/sh build.sh
- [Windows]
build.bat
Then include the DLL (under the bin
folder) in the C# project, and use the namespaces:
using TinyAPIClient.Api;
using TinyAPIClient.Client;
using TinyAPIClient.Model;
<a name="packaging"></a>
Packaging
A .nuspec
is included with the project. You can follow the Nuget quickstart to create and publish packages.
This .nuspec
uses placeholders from the .csproj
, so build the .csproj
directly:
nuget pack -Build -OutputDirectory out TinyAPIClient.csproj
Then, publish to a local feed or other host and consume the new package via Nuget as usual.
<a name="getting-started"></a>
Getting Started
using System;
using System.Diagnostics;
using TinyAPIClient.Api;
using TinyAPIClient.Client;
using TinyAPIClient.Model;
namespace Example
{
public class Example
{
public void main()
{
var apiInstance = new PedidosApi();
var token = token_example; // string | Chave gerada para identificar sua empresa
var formato = formato_example; // string | Formato da resposta da API (json,xml) (default to json)
var numero = numero_example; // string | Número do pedido (no Tiny) (optional)
var cliente = cliente_example; // string | Nome ou código (ou parte) do cliente na base de dados da tinyERP (optional)
var cpfCnpj = cpfCnpj_example; // string | CPF ou CNPJ do cliente na base de dados da tinyERP (optional)
var dataInicial = dataInicial_example; // string | Data de cadastramento inicial dos pedidos que deseja consultar no formato dd/mm/yyyy (optional)
var dataFinal = dataFinal_example; // string | Data de cadastramento final dos pedidos que deseja consultar no formato dd/mm/yyyy (optional)
var situacao = situacao_example; // string | Situação do pedido conforme tabela de Situações dos Pedidos (optional)
var numeroEcommerce = numeroEcommerce_example; // string | Número do pedido no ecommerce (ou no seu sistema) (optional)
var idVendedor = idVendedor_example; // string | Número de identificação do vendedor no Tiny (optional)
var nomeVendedor = nomeVendedor_example; // string | Nome do vendedor no Tiny (optional)
var situacaoOcorrencia = situacaoOcorrencia_example; // string | Data de ocorrência inicial dos pedidos que deseja consultar no formato dd/mm/yyyy (optional)
var dataInicialOcorrencia = dataInicialOcorrencia_example; // string | Data de ocorrência inicial dos pedidos que deseja consultar no formato dd/mm/yyyy (optional)
var dataFinalOcorrencia = dataFinalOcorrencia_example; // string | Data de ocorrência final dos pedidos que deseja consultar no formato dd/mm/yyyy (optional)
var pagina = 56; // int? | Número da página (optional)
var sort = sort_example; // string | Ordenação dos pedidos (optional) (default to ASC)
try
{
// pesquisa
PedidoPesquisaResponse result = apiInstance.PedidosPesquisaPhpPost(token, formato, numero, cliente, cpfCnpj, dataInicial, dataFinal, situacao, numeroEcommerce, idVendedor, nomeVendedor, situacaoOcorrencia, dataInicialOcorrencia, dataFinalOcorrencia, pagina, sort);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PedidosApi.PedidosPesquisaPhpPost: " + e.Message );
}
}
}
}
<a name="documentation-for-api-endpoints"></a>
Documentation for API Endpoints
All URIs are relative to https://api.tiny.com.br/api2
Class | Method | HTTP request | Description |
---|---|---|---|
PedidosApi | PedidosPesquisaPhpPost | POST /pedidos.pesquisa.php | pesquisa |
<a name="documentation-for-models"></a>
Documentation for Models
- Model.Erros
- Model.FORMATO
- Model.PedidoPesquisaPedidos
- Model.PedidoPesquisaResponse
- Model.PedidoPesquisaRetorno
- Model.PedidoPesquissPedido
- Model.SORT
<a name="documentation-for-authorization"></a>
Documentation for Authorization
All endpoints do not require authorization.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. 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. |
-
- JsonSubTypes (>= 1.2.0)
- NewtonSoft.Json (>= 10.0.3)
- RestSharp (>= 105.1.0)
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 |
---|