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

Latest commit

 

History

History
224 lines (173 loc) · 5.85 KB

ItemsApi.md

File metadata and controls

224 lines (173 loc) · 5.85 KB

MeliLibTools.MeliLibApi.ItemsApi

All URIs are relative to https://api.mercadolibre.com

Method HTTP request Description
ItemsIdGet GET /items/{id} Return a Item.
ItemsIdPut PUT /items/{id} Update a Item.
ItemsPost POST /items Create a Item.

ItemsIdGet

void ItemsIdGet (string id)

Return a Item.

Example

using System.Collections.Generic;
using System.Diagnostics;
using MeliLibTools.MeliLibApi;
using MeliLibTools.Client;
using MeliLibTools.Model;

namespace Example
{
    public class ItemsIdGetExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://api.mercadolibre.com";
            var apiInstance = new ItemsApi(config);
            var id = id_example;  // string | 

            try
            {
                // Return a Item.
                apiInstance.ItemsIdGet(id);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ItemsApi.ItemsIdGet: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
id string

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 Ok -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ItemsIdPut

void ItemsIdPut (string id, string accessToken, Item item)

Update a Item.

Example

using System.Collections.Generic;
using System.Diagnostics;
using MeliLibTools.MeliLibApi;
using MeliLibTools.Client;
using MeliLibTools.Model;

namespace Example
{
    public class ItemsIdPutExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://api.mercadolibre.com";
            // Configure OAuth2 access token for authorization: oAuth2AuthCode
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ItemsApi(config);
            var id = id_example;  // string | 
            var accessToken = accessToken_example;  // string | 
            var item = new Item(); // Item | 

            try
            {
                // Update a Item.
                apiInstance.ItemsIdPut(id, accessToken, item);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ItemsApi.ItemsIdPut: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
id string
accessToken string
item Item

Return type

void (empty response body)

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

HTTP response details

Status code Description Response headers
201 Ok -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ItemsPost

void ItemsPost (string accessToken, Item item)

Create a Item.

Example

using System.Collections.Generic;
using System.Diagnostics;
using MeliLibTools.MeliLibApi;
using MeliLibTools.Client;
using MeliLibTools.Model;

namespace Example
{
    public class ItemsPostExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://api.mercadolibre.com";
            // Configure OAuth2 access token for authorization: oAuth2AuthCode
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ItemsApi(config);
            var accessToken = accessToken_example;  // string | 
            var item = new Item(); // Item | 

            try
            {
                // Create a Item.
                apiInstance.ItemsPost(accessToken, item);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ItemsApi.ItemsPost: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
accessToken string
item Item

Return type

void (empty response body)

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

HTTP response details

Status code Description Response headers
201 Ok -

[Back to top] [Back to API list] [Back to Model list] [Back to README]