Skip to content

SDK para realizar as chamadas na API de Integração Remota Cielo LIO

License

Notifications You must be signed in to change notification settings

DeveloperCielo/LIO-SDK-API-Integracao-Remota-v1-CSHARP

Repository files navigation

IO.Swagger - the C# library for the LIO - Order Management API - DEPRECATED

API de gerenciamento de pedidos da LIO.

This C# SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • SDK version: 1.0.0
  • Build package: io.swagger.codegen.languages.CSharpClientCodegen

Frameworks supported

  • .NET 4.0 or later
  • Windows Phone 7.1 (Mango)

Dependencies

The DLLs included in the package may not be the latest version. We recommend using [NuGet] (https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages:

Install-Package RestSharp
Install-Package Newtonsoft.Json

NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742

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 IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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 IO.Swagger.csproj

Then, publish to a local feed or other host and consume the new package via Nuget as usual.

Getting Started

using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: access-token
            Configuration.Default.ApiKey.Add("access-token", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("access-token", "Bearer");
            // Configure API key authorization: client-id
            Configuration.Default.ApiKey.Add("client-id", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("client-id", "Bearer");
            // Configure API key authorization: merchant-id
            Configuration.Default.ApiKey.Add("merchant-id", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("merchant-id", "Bearer");

            var apiInstance = new OrderManagementApi();
            var clientId = clientId_example;  // string | Token da aplicação (APP Token) gerado durante o processo de cadastro.
            var accessToken = accessToken_example;  // string | Token de acesso (Access Token) gerado durante o processo de cadastro.
            var merchantId = merchantId_example;  // string | Identificador do estabelecimento comercial gerado durante o processo de cadastro.
            var id = id_example;  // string | Identificador do pedido.
            var body = new Body1(); // Body1 | 

            try
            {
                InlineResponse201 result = apiInstance.OrderAddItem(clientId, accessToken, merchantId, id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrderManagementApi.OrderAddItem: " + e.Message );
            }

        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://api.cielo.com.br/sandbox-lio/order-management/v1

Class Method HTTP request Description
OrderManagementApi OrderAddItem POST /orders/{id}/items
OrderManagementApi OrderCreate POST /orders
OrderManagementApi OrderDelete DELETE /orders/{id}
OrderManagementApi OrderDeleteItem DELETE /orders/{id}/items/{itemId}
OrderManagementApi OrderGet GET /orders/{id}
OrderManagementApi OrderGetByParameters GET /orders
OrderManagementApi OrderGetItem GET /orders/{id}/items
OrderManagementApi OrderGetTransactions GET /orders/{id}/transactions
OrderManagementApi OrderUpdate PUT /orders/{id}
OrderManagementApi OrderUpdateItem PUT /orders/{id}/items/{itemId}

Documentation for Models

Documentation for Authorization

access-token

  • Type: API key
  • API key parameter name: access-token
  • Location: HTTP header

client-id

  • Type: API key
  • API key parameter name: client-id
  • Location: HTTP header

merchant-id

  • Type: API key
  • API key parameter name: merchant-id
  • Location: HTTP header

About

SDK para realizar as chamadas na API de Integração Remota Cielo LIO

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages