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. |
void ItemsIdGet (string id)
Return a Item.
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);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | Ok | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void ItemsIdPut (string id, string accessToken, Item item)
Update a Item.
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);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | ||
accessToken | string | ||
item | Item |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
201 | Ok | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void ItemsPost (string accessToken, Item item)
Create a Item.
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);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
accessToken | string | ||
item | Item |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
201 | Ok | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]