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

Latest commit

 

History

History
216 lines (167 loc) · 5.92 KB

ItemsHealthApi.md

File metadata and controls

216 lines (167 loc) · 5.92 KB

MeliLibTools.MeliLibApi.ItemsHealthApi

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

Method HTTP request Description
ItemsIdHealthActionsGet GET /items/{id}/health/actions Return item health actions by id.
ItemsIdHealthGet GET /items/{id}/health Return health by id.
SitesSiteIdHealthLevelsGet GET /sites/{site_id}/health_levels Return health levels.

ItemsIdHealthActionsGet

void ItemsIdHealthActionsGet (string id, string accessToken)

Return item health actions by id.

Example

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

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

            try
            {
                // Return item health actions by id.
                apiInstance.ItemsIdHealthActionsGet(id, accessToken);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ItemsHealthApi.ItemsIdHealthActionsGet: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
id string
accessToken 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]

ItemsIdHealthGet

void ItemsIdHealthGet (string id, string accessToken)

Return health by id.

Example

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

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

            try
            {
                // Return health by id.
                apiInstance.ItemsIdHealthGet(id, accessToken);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ItemsHealthApi.ItemsIdHealthGet: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
id string
accessToken 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]

SitesSiteIdHealthLevelsGet

void SitesSiteIdHealthLevelsGet (string siteId)

Return health levels.

Example

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

namespace Example
{
    public class SitesSiteIdHealthLevelsGetExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://api.mercadolibre.com";
            var apiInstance = new ItemsHealthApi(config);
            var siteId = siteId_example;  // string | 

            try
            {
                // Return health levels.
                apiInstance.SitesSiteIdHealthLevelsGet(siteId);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ItemsHealthApi.SitesSiteIdHealthLevelsGet: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
siteId 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]