2017 © Pedro Peláez
 

library mercadolibre

Mercado Libre API client

image

zephia/mercadolibre

Mercado Libre API client

  • Wednesday, December 21, 2016
  • by mauro-moreno
  • Repository
  • 4 Watchers
  • 2 Stars
  • 437 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 19 Versions
  • 9 % Grown

The README.md

MercadoLibre API Client

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads License, (*1)

Documentation

Official documentation and how to use the MercadoLibre API can be found at http://developers.mercadolibre.com/api-docs/, (*2)

Installation

Using composer, (*3)

composer require zephia/mercadolibre

Usage

<?php

// Instantiate serializer with configurations.
$serializer = \JMS\Serializer\SerializerBuilder::create()
   ->addMetadataDir(__DIR__ . '/../../resources/config/serializer')
   ->build();

// Instantiate client.
$client = new Zephia\MercadoLibre\Client\MercadoLibreClient(
    [],
    $serializer
);

// Call show user.
$ml_response = $client->showUser(1);

var_dump($ml_response);

// object(Zephia\MercadoLibre\Entity\User)

MercadoLibre API resources:

Overstriked resources are not available yet in this package. Contributions will be appreciated., (*4)

Users & Apps

  • /users/{Cust_id}?access_token=$ACCESS_TOKEN User account information. GET PUT, (*5)

    Get user information., (*6)

    $client->userShow('123');
    

    Update user information, (*7)

  • /users/me Returns account information about the authenticated user. GET, (*8)

    Get information about the authenticated user., (*9)

    $client->userShowMe();
    
  • ~~/users/{Cust_id}/addresses?access_token=$ACCESS_TOKEN Returns addresses registered by the user. GET~~, (*10)

    Get user addresses., (*11)

  • ~~/users/{Cust_id}/accepted_payment_methods Returns payment methods accepted by a seller to collect its operations. GET~~, (*12)

    Get accepted payment methods by user., (*13)

  • ~~/applications/{application_id}?ACCESS_TOKEN Returns information about the application. GET~~, (*14)

    Get application details., (*15)

  • ~~/users/{User_id}/brands This resource retrieves brands associated to an user_id. The official_store_id attribute identifies a store. GET~~, (*16)

    Get brands by user., (*17)

  • /users/{User_id}/classifieds_promotion_packs?access_token=$ACCESS_TOKEN Manage user promotion packs. GET POST, (*18)

    Get promotions packs engaged by user., (*19)

    $client->userPackages();
    

    Creates a new Promotion Pack for the user., (*20)

  • ~~/users/{user_id}/classifieds_promotion_packs/{listing_type}&categoryId={category_id}?acces_token=$ACCESS_TOKEN Availability for the user to list under a given Listing Type and category according to packages engaged. GET~~, (*21)

    Get the availability Listing Type availability by user and category., (*22)

  • ~~/projects?access_token=$ACCESS_TOKEN Manage projects. GET POST PUT DELETE~~, (*23)

    Get all applications associated to a project, (*24)

    Create a new project., (*25)

    Update a project., (*26)

    Remove a project., (*27)

  • ~~/projects/{Project_id}/applications?access_token=ACCESS_TOKEN_APP_OWNER Manage applications & projects. POST DELETE~~, (*28)

    Save an application under your project., (*29)

    Remove an application from your project., (*30)

  • ~~/users/{Cust_id}/available_listing_types?category_id={Category_id}&access_token=$ACCESS_TOKEN Listing types availability by user and category. GET~~, (*31)

    Get available listing types., (*32)

  • ~~/users/{Cust_id}/available_listing_type/{listing_type_id}?category_id={Category_id}&access_token=$ACCESS_TOKEN Retrieves availability to list under a listing type for a given category. GET~~, (*33)

    Get category availability., (*34)

  • ~~/users/{User_id}/applications/{App_id}?access_token=$ACCESS_TOKEN Application permissions. DELETE~~, (*35)

    Revoke permissions to an application., (*36)

  • ~~/myfeeds?app_id={App_id} Notifications history. GET~~, (*37)

    Get historic of notifications by App., (*38)

Categories & Listings

  • ~~/sites Retrieves information about the sites where MercadoLibre runs. GET~~, (*39)

    Get all sites., (*40)

  • ~~/site_domains/{Site_domain_url} Returns information about the domain. GET~~, (*41)

    Get domain information., (*42)

  • ~~/sites/{Site_id}/listing_types Returns information about listing types. GET~~, (*43)

    Get listing types by site., (*44)

  • ~~/sites/{Site_id}/listing_exposures Returns different exposure levels associated with all listing types in MercadoLibre. GET~~, (*45)

    Get listing exposures by site., (*46)

  • ~~/sites/{Site_id}/listing_prices?price={Price} Returns the listing price for selling and buying in MercadoLibre. GET~~, (*47)

    Get listing prices., (*48)

  • /sites/{Site_id}/categories Returns available categories in the site. GET, (*49)

    Get the category tree by site, (*50)

    $client->categoryList();
    
  • ~~/categories/{Category_id} Returns information about a category. GET~~, (*51)

    Get category details., (*52)

  • ~~/categories/{Category_id}/attributes Displays attributes and rules over them in order to describe the items that are stored in each category. GET~~, (*53)

    Get category attributes., (*54)

  • /sites/{Site_id}/category_predictor/predict Category predictor. Retrieves the most accurate category to list your item basing on it’s title. GET, (*55)

    Predict category., (*56)

    $client->categoryPredict('MLA', 'Fiat Uno');
    
  • ~~/categories/{Category_id}/classifieds_promotion_packs Retrieves classified promotion packs by category. GET~~, (*57)

    Get classified promotion packs by category, (*58)

Locations & Currencies

  • ~~/countries Returns countries information. GET~~, (*59)

    Get information about countries., (*60)

  • ~~/countries/{Country_id} Returns country information by country_id. GET~~, (*61)

    Get country detail, (*62)

  • ~~/states/{State_id} Returns state information. GET~~, (*63)

    Get state information., (*64)

  • ~~/cities/{City_id} Returns city information. GET~~, (*65)

    Get city information., (*66)

  • ~~/currencies Returns information about all available currencies in MercadoLibre. GET~~, (*67)

    Get currencies information., (*68)

  • ~~/currencies/{Currency_id} Returns information about available currencies in MercadoLibre by currency_id. GET~~, (*69)

    Get currency details., (*70)

  • ~~/currency_conversions/search?from={Currency_id}&to={Currency_id} Retrieves the conversion ratio between currencies that MercadoLibre uses in calculations. GET~~, (*71)

    Get ratio conversion between currencies., (*72)

  • ~~/countries/{Country_id}/zip_codes/{Zip_code} Retrieves data for the location of the zip code entered. GET~~, (*73)

    Get location information by zip code., (*74)

  • ~~/country/{Country_id}/zip_codes/search_between?zip_code_from={zip_code_from}&zip_code_to={zip_code_to} Retrieve all zip codes for a country_id between two given zip codes. GET~~, (*75)

    Get all zip codes between two given values of zip codes., (*76)

Items & Searches

  • /items Allows listing items. POST, (*77)

    List an item in MercadoLibre., (*78)

    $item = new Zephia\MercadoLibre\Entity\Item;
    $client->itemCreate($item);
    
  • /items/{Item_id} Allows managing listings GET PUT, (*79)

    Get item details., (*80)

    $client->itemShow('MLA123123');
    

    Update an item., (*81)

  • ~~/items/validate Validate the JSON before posting an item. POST~~, (*82)

    Validate your JSON., (*83)

  • ~~/items/{Item_id}/available_upgrades Returns available listing types to upgrade an item posure. GET~~, (*84)

    Get available upgrades., (*85)

  • ~~/items/{Item_id}/relist Allows to relist an item. GET~~, (*86)

    Relist your item., (*87)

  • ~~/items/{Item_id}/pictures/{picture_id} Manage item pictures. GET DELETE~~, (*88)

    Get pictures in all it sizes., (*89)

    Delete a picture., (*90)

  • ~~/items/{Item_id}/pictures Add and update pictures on your item. GET PUT~~, (*91)

    Post a picture., (*92)

    Update items pictures., (*93)

  • ~~/items/{Item_id}/description Manage description for an item. GET PUT~~, (*94)

    Get item description., (*95)

    Update item description., (*96)

  • ~~/sites/{Site_id}/search?q=ipod Retrieves items from a search query. GET~~, (*97)

    METHOD DESCRIPTION, (*98)

  • ~~/sites/{Site_id}/searchUrl?q=ipod Search for any item in MercadoLibre. It will return an array of items url that match the search criteria. GET~~, (*99)

    Search items Url by query., (*100)

  • ~~/sites/MLA/search?category={Category_id}&official_store_id=all Search for all items listed by Official Stores for a given category. GET~~, (*101)

    Search Official Store items., (*102)

  • ~~/sites/{Site_id}/hot_items/search?limit=5&category={Category_id} Retrieves an array of hot items from a specified category by parameter. Works only with the first level of categories. GET~~, (*103)

    Search hot items., (*104)

  • ~~/sites/{Site_id}/featured_items/HP-{Category_Id} Retrieves an array of featured items. The featured items are items that have a special posure at home page or categories page. You can use only HP for products of home or HP-{categId} for featured by category. Only works with first level of categories. GET~~, (*105)

    Get items featured on the home by it’s category., (*106)

  • ~~/sites/{Site_id}/trends/search?category={Category_id} Retrieve an array of the trends items from the category specified by parameter. GET~~, (*107)

    Get trends by category, (*108)

  • ~~/sites/{Site_id}/search?seller_id={Seller_id}&category={Category_id}&access_token=$ACCESS_TOKEN Search items by seller_id for a category. GET~~, (*109)

    Get items by seller id and cateogyr id., (*110)

  • /users/{Cust_id}/items/search?access_token=$ACCESS_TOKEN Retrieves user’s listings. GET, (*111)

    Get user’s listings, (*112)

    $client->setAccessToken(ACCESS_TOKEN)->itemList('user_id');
    
  • ~~/items/{Item_id}/product_identifiers/ Retrieves the product identifier codes associated to your item. GET PUT~~, (*113)

    Get item product identifiers., (*114)

    Update product identifiers, (*115)

  • ~~/items/{Item_id}/variations Manage item’s variations. GET POST~~, (*116)

    Get item’s variations., (*117)

    Create a variation for your item., (*118)

  • ~~/items/{Item_id}/variations/{Variation_id} Manage variations. GET PUT DELETE~~, (*119)

    Get variation details., (*120)

    Update a variation., (*121)

    Delete a variation., (*122)

  • ~~/users/{Cust_id}/items/search?sku={seller_custom_field}&status=active&access_token=$ACCESS_TOKEN Search item by SKU. Filter item by status. GET~~, (*123)

    Search item by SKU. Filter item by status., (*124)

The Versions

21/12 2016

dev-master

9999999-dev

Mercado Libre API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mauro Moreno

21/12 2016

v0.1.12

0.1.12.0

Mercado Libre API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mauro Moreno

21/12 2016

dev-development

dev-development

Mercado Libre API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mauro Moreno

21/12 2016

v0.1.11

0.1.11.0

Mercado Libre API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mauro Moreno

16/12 2016

v0.1.10

0.1.10.0

Mercado Libre API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mauro Moreno

16/12 2016

v0.1.8

0.1.8.0

Mercado Libre API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mauro Moreno

16/12 2016

v0.1.9

0.1.9.0

Mercado Libre API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mauro Moreno

24/11 2016

v0.1.7

0.1.7.0

Mercado Libre API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mauro Moreno

11/11 2016

v0.1.6

0.1.6.0

Mercado Libre API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mauro Moreno

11/11 2016

v0.1.5

0.1.5.0

Mercado Libre API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mauro Moreno

11/11 2016

v0.1.4

0.1.4.0

Mercado Libre API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mauro Moreno

05/11 2016

v0.1.3

0.1.3.0

Mercado Libre API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mauro Moreno

05/11 2016

v0.1.2

0.1.2.0

Mercado Libre API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mauro Moreno

04/11 2016

v0.1.1

0.1.1.0

Mercado Libre API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mauro Moreno

04/11 2016

v0.1.0

0.1.0.0

Mercado Libre API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mauro Moreno

03/11 2016

v0.0.4

0.0.4.0

Mercado Libre API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mauro Moreno

28/10 2016

v0.0.3

0.0.3.0

Mercado Libre API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mauro Moreno

26/10 2016

v0.0.2

0.0.2.0

Mercado Libre API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mauro Moreno

13/10 2016

v0.0.1

0.0.1.0

Mercado Libre API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mauro Moreno