Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.

Commit

Permalink
📝 Added new examples
Browse files Browse the repository at this point in the history
  • Loading branch information
diazmartin committed Jun 1, 2020
1 parent 58ca064 commit 5911815
Show file tree
Hide file tree
Showing 54 changed files with 102 additions and 111 deletions.
10 changes: 5 additions & 5 deletions MeliLibTools.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MeliLibTools", "src\MeliLibTools\MeliLibTools.csproj", "{91A21B56-4094-463C-AC46-52A69084EF06}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MeliLibTools", "src\MeliLibTools\MeliLibTools.csproj", "{81E8BFBA-1DA8-43F5-9ABF-2A363C4EED45}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MeliLibTools.Test", "src\MeliLibTools.Test\MeliLibTools.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Expand All @@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{91A21B56-4094-463C-AC46-52A69084EF06}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{91A21B56-4094-463C-AC46-52A69084EF06}.Debug|Any CPU.Build.0 = Debug|Any CPU
{91A21B56-4094-463C-AC46-52A69084EF06}.Release|Any CPU.ActiveCfg = Release|Any CPU
{91A21B56-4094-463C-AC46-52A69084EF06}.Release|Any CPU.Build.0 = Release|Any CPU
{81E8BFBA-1DA8-43F5-9ABF-2A363C4EED45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{81E8BFBA-1DA8-43F5-9ABF-2A363C4EED45}.Debug|Any CPU.Build.0 = Debug|Any CPU
{81E8BFBA-1DA8-43F5-9ABF-2A363C4EED45}.Release|Any CPU.ActiveCfg = Release|Any CPU
{81E8BFBA-1DA8-43F5-9ABF-2A363C4EED45}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
32 changes: 0 additions & 32 deletions example/Example.cs

This file was deleted.

16 changes: 16 additions & 0 deletions examples/Example.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using MeliLibTools.MeliLibApi;
using MeliLibTools.Client;
using MeliLibTools.Model;

namespace Example
{
class Example
{
public static void Main(){
// Insert code example here
}
}
}
2 changes: 1 addition & 1 deletion example/Example.csproj → examples/Example.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<ItemGroup>
<ProjectReference Include="..\src\Org.OpenAPITools\Org.OpenAPITools.csproj" />
<ProjectReference Include="..\src\MeliLibTools\MeliLibTools.csproj" />
</ItemGroup>

<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using System.Diagnostics;
using Org.OpenAPITools.MeliLibApi;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
using MeliLibTools.MeliLibApi;
using MeliLibTools.Client;
using MeliLibTools.Model;

namespace Example
{
Expand All @@ -19,6 +19,7 @@ public static void Mainext(){
{
// Authentication Endpoint
apiInstance.Auth(responseType, clientId, redirectUri);
// To see output in console
// var getCode = apiInstance.AuthWithHttpInfo(responseType, clientId, redirectUri);
// Console.Write("Resultado get:" + getCode);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using System.Diagnostics;
using Org.OpenAPITools.MeliLibApi;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
using MeliLibTools.MeliLibApi;
using MeliLibTools.Client;
using MeliLibTools.Model;

namespace Example
{
Expand All @@ -23,6 +23,7 @@ public static void Mainext(){
// Request Access Token
Token result = apiInstance.GetToken(grantType, clientId, clientSecret, redirectUri, null, refreshToken);
Debug.WriteLine(result);
// To see output in console
// var refresh = apiInstance.GetTokenWithHttpInfo(grantType, clientId, clientSecret, redirectUri, null, refreshToken);
// Console.Write("Resultado get:" + refresh.Data);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using System.Diagnostics;
using Org.OpenAPITools.MeliLibApi;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
using MeliLibTools.MeliLibApi;
using MeliLibTools.Client;
using MeliLibTools.Model;

namespace Example
{
Expand All @@ -22,8 +22,9 @@ public static void Mainext(){
// Request Access Token
Token result = apiInstance.GetToken(grantType, clientId, clientSecret, redirectUri, code);
Debug.WriteLine(result);
// var resul = apiInstance.GetTokenWithHttpInfo(grantType, clientId, clientSecret, redirectUri, code);
// Console.Write("Resultado get:" + result);
// To see output in console
// var console = apiInstance.GetTokenWithHttpInfo(grantType, clientId, clientSecret, redirectUri, code);
// Console.Write("Resultado get:" + console.Data);
}
catch (ApiException e)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Diagnostics;
using Org.OpenAPITools.MeliLibApi;
using Org.OpenAPITools.Client;
using MeliLibTools.MeliLibApi;
using MeliLibTools.Client;

namespace Example
{
Expand All @@ -16,6 +16,7 @@ public static void Mainext(){
{
// Return a Item.
apiInstance.ItemsIdGet(id);
// To see output in console
//Console.Write("Resultado get:" + apiInstance.ItemsIdGetWithHttpInfo(id).Data);
}
catch (ApiException e)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.MeliLibApi;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
using MeliLibTools.MeliLibApi;
using MeliLibTools.Client;
using MeliLibTools.Model;

namespace Example
{
Expand All @@ -21,6 +21,7 @@ public static void Mainext()
{
// Return item health actions by id.
apiInstance.ItemsIdHealthActionsGet(id, accessToken);
// To see output in console
// Console.Write("Resultado get:" + apiInstance.ItemsIdHealthActionsGetWithHttpInfo(id, accessToken).Data);
}
catch (ApiException e)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.MeliLibApi;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
using MeliLibTools.MeliLibApi;
using MeliLibTools.Client;
using MeliLibTools.Model;

namespace Example
{
Expand All @@ -21,6 +21,7 @@ public static void Mainext()
{
// Return health by id.
apiInstance.ItemsIdHealthGet(id, accessToken);
// To see output in console
// Console.Write("Resultado get:" + apiInstance.ItemsIdHealthGetWithHttpInfo(id, accessToken).Data);
}
catch (ApiException e)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.MeliLibApi;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
using MeliLibTools.MeliLibApi;
using MeliLibTools.Client;
using MeliLibTools.Model;

namespace Example
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.MeliLibApi;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
using MeliLibTools.MeliLibApi;
using MeliLibTools.Client;
using MeliLibTools.Model;

namespace Example
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.MeliLibApi;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
using MeliLibTools.MeliLibApi;
using MeliLibTools.Client;
using MeliLibTools.Model;

namespace Example
{
Expand All @@ -20,7 +20,8 @@ public static void Mainext()
{
// Return health levels.
apiInstance.SitesSiteIdHealthLevelsGet(siteId);
// Console.Write("Resultado get:" + apiInstance.SitesSiteIdHealthLevelsGetWithHttpInfo("MLA").Data);
// To see output in console
// Console.Write("Resultado get:" + apiInstance.SitesSiteIdHealthLevelsGetWithHttpInfo(siteId).Data);
}
catch (ApiException e)
{
Expand Down
2 changes: 1 addition & 1 deletion src/MeliLibTools.Test/MeliLibApi/CategoriesApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is a the codebase to generate a SDK for Open Platform Marketplace
*
* The version of the OpenAPI document: 0.0.24
* The version of the OpenAPI document: 0.0.27
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/MeliLibTools.Test/MeliLibApi/ItemsApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is a the codebase to generate a SDK for Open Platform Marketplace
*
* The version of the OpenAPI document: 0.0.24
* The version of the OpenAPI document: 0.0.27
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/MeliLibTools.Test/MeliLibApi/ItemsHealthApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is a the codebase to generate a SDK for Open Platform Marketplace
*
* The version of the OpenAPI document: 0.0.24
* The version of the OpenAPI document: 0.0.27
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/MeliLibTools.Test/MeliLibApi/OAuth20ApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is a the codebase to generate a SDK for Open Platform Marketplace
*
* The version of the OpenAPI document: 0.0.24
* The version of the OpenAPI document: 0.0.27
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
4 changes: 2 additions & 2 deletions src/MeliLibTools.Test/MeliLibTools.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MELI Markeplace SDK
This is a the codebase to generate a SDK for Open Platform Marketplace
The version of the OpenAPI document: 0.0.24
The version of the OpenAPI document: 0.0.27
-->
<Project Sdk="Microsoft.NET.Sdk">
Expand All @@ -24,7 +24,7 @@ The version of the OpenAPI document: 0.0.24
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MeliLibTools\MeliLibTools.csproj">
<Project>{91A21B56-4094-463C-AC46-52A69084EF06}</Project>
<Project>{81E8BFBA-1DA8-43F5-9ABF-2A363C4EED45}</Project>
<Name>MeliLibTools</Name>
</ProjectReference>
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/MeliLibTools.Test/Model/AttributesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is a the codebase to generate a SDK for Open Platform Marketplace
*
* The version of the OpenAPI document: 0.0.24
* The version of the OpenAPI document: 0.0.27
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/MeliLibTools.Test/Model/AttributesValueStructTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is a the codebase to generate a SDK for Open Platform Marketplace
*
* The version of the OpenAPI document: 0.0.24
* The version of the OpenAPI document: 0.0.27
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/MeliLibTools.Test/Model/AttributesValuesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is a the codebase to generate a SDK for Open Platform Marketplace
*
* The version of the OpenAPI document: 0.0.24
* The version of the OpenAPI document: 0.0.27
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/MeliLibTools.Test/Model/ItemPicturesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is a the codebase to generate a SDK for Open Platform Marketplace
*
* The version of the OpenAPI document: 0.0.24
* The version of the OpenAPI document: 0.0.27
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/MeliLibTools.Test/Model/ItemTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is a the codebase to generate a SDK for Open Platform Marketplace
*
* The version of the OpenAPI document: 0.0.24
* The version of the OpenAPI document: 0.0.27
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/MeliLibTools.Test/Model/TokenTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is a the codebase to generate a SDK for Open Platform Marketplace
*
* The version of the OpenAPI document: 0.0.24
* The version of the OpenAPI document: 0.0.27
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is a the codebase to generate a SDK for Open Platform Marketplace
*
* The version of the OpenAPI document: 0.0.24
* The version of the OpenAPI document: 0.0.27
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/MeliLibTools.Test/Model/VariationsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is a the codebase to generate a SDK for Open Platform Marketplace
*
* The version of the OpenAPI document: 0.0.24
* The version of the OpenAPI document: 0.0.27
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/MeliLibTools/Client/ApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is a the codebase to generate a SDK for Open Platform Marketplace
*
* The version of the OpenAPI document: 0.0.24
* The version of the OpenAPI document: 0.0.27
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/MeliLibTools/Client/ApiException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is a the codebase to generate a SDK for Open Platform Marketplace
*
* The version of the OpenAPI document: 0.0.24
* The version of the OpenAPI document: 0.0.27
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
Loading

0 comments on commit 5911815

Please sign in to comment.