GithubHelp home page GithubHelp logo

php-sdk's Introduction

No longer maintained

[DEPRECATED] This repository is no longer maintained

From the first week of April 2021 we will stop maintaining our SDKs.

This project is not functional, the dependencies will not be updated to latest ones.

We recommend you read our documentation.

Mercado Libre Developers

Mercado Libre Developers

MercadoLibre's PHP SDK

This is the official PHP SDK for MercadoLibre's Platform.

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/mercadolibre/php-sdk.git"
    }
  ],
  "require": {
    "mercadolibre/php-sdk": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files

Run composer install

Include autoload.php in your code:

    require_once('/path-to-integration-folder/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Usage

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$config = new Meli\Configuration();
$servers = $config->getHostSettings();
// Auth URLs Options by country

// 1:  "https://auth.mercadolibre.com.ar"
// 2:  "https://auth.mercadolivre.com.br"
// 3:  "https://auth.mercadolibre.com.co"
// 4:  "https://auth.mercadolibre.com.mx"
// 5:  "https://auth.mercadolibre.com.uy"
// 6:  "https://auth.mercadolibre.cl"
// 7:  "https://auth.mercadolibre.com.cr"
// 8:  "https://auth.mercadolibre.com.ec"
// 9:  "https://auth.mercadolibre.com.ve"
// 10: "https://auth.mercadolibre.com.pa"
// 11: "https://auth.mercadolibre.com.pe"
// 12: "https://auth.mercadolibre.com.do"
// 13: "https://auth.mercadolibre.com.bo"
// 14: "https://auth.mercadolibre.com.py"

// Use the correct auth URL
$config->setHost($servers[1]["url"]);

// Or Print all URLs
print_r($servers);

// Or Print or Put the following URL in your browser window to obtain authorization:
//
// http://auth.mercadolibre.com.ar/authorization?response_type=code&client_id=$APP_ID&redirect_uri=$YOUR_URL
?>

This will give you the url to redirect the user. You need to specify a callback url which will be the one that the user will redirected after a successfull authrization process.

Once the user is redirected to your callback url, you'll receive in the query string, a parameter named code. You'll need this for the second part of the process

Examples for OAuth - get token

<?php
require_once(__DIR__ . '/vendor/autoload.php');


$apiInstance = new Meli\Api\OAuth20Api(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$grant_type = 'authorization_code';
$client_id = 'client_id_example'; // Your client_id
$client_secret = 'client_secret_example'; // Your client_secret
$redirect_uri = 'redirect_uri_example'; // Your redirect_uri
$code = 'code_example'; // The parameter CODE
$refresh_token = 'refresh_token_example'; // Your refresh_token

try {
    $result = $apiInstance->getToken($grant_type, $client_id, $client_secret, $redirect_uri, $code, $refresh_token);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OAuth20Api->getToken: ', $e->getMessage(), PHP_EOL;
}
?>

Example using the RestClient with a POST Item

<?php
require_once(__DIR__ . '/vendor/autoload.php');


$apiInstance = new Meli\Api\RestClientApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$resource = 'resource_example'; // string | for example: items
$access_token = 'access_token_example'; // string |
$body = new \stdClass; // object |

try {
    $apiInstance->resourcePost($resource, $access_token, $body);
} catch (Exception $e) {
    echo 'Exception when calling RestClientApi->resourcePost: ', $e->getMessage(), PHP_EOL;
}
?>

Documentation & Important notes

The URIs are relative to https://api.mercadolibre.com
The Authorization URLs (set the correct country domain): https://auth.mercadolibre.{country_domain}
All docs for the library are located here
Check out our examples codes in the folder examples
Don’t forget to check out our developer site

php-sdk's People

Contributors

alesandroalan avatar brunoelia avatar diazmartin avatar lbertalot avatar morturus avatar pablogumilla avatar pablomoretti avatar phaael avatar prenzier avatar rafael-affonso avatar rodurma avatar tioborracho avatar zeusmode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-sdk's Issues

Como postar um imovel?

Qual o caminho que devo dar o POST para postar um imovel, e como esse caminho sabe qual o tipo do imovel levando em conta a category_id que de cada tipo de imovel e diferente, a documentação de publicação de imovel demonstra como é feita a publicação de um imovel, porém não mostra qual o endpoint que devo direcionar minha requisição POST, so mostra um exemplo de JSON que faria a publicação de um imovel, e como sei quais atributos são necessarios dado o tipo de um imovel

EXEMPLO: Na documentação está assim
"attributes"=> [
[
"id"=> "ROOMS",
"value_name"=> "2"
],
[
"id"=> "FULL_BATHROOMS",
"value_name"=> "1"
],
[
"id"=> "PARKING_LOTS",
"value_name"=> "1"
],
[
"id"=> "BEDROOMS",
"value_name"=> "4"
],
[
"id"=> "COVERED_AREA",
"value_name"=> "30 m²"
],
[
"id"=> "TOTAL_AREA",
"value_name"=> "40 m²"
]

Isso seria para qual tipo de imovel, pois para postar uma fazenda ou chacara acho que não vou passar o numero de quartos ou vagas de garagem.

Brazil Auth URL down

Hello guys, everthing was working fine in my applicaton till yesterday, day 15.
Now when I try authenticate my application l got this message:

Não é possível acessar esse site
A página https://auth.mercadolivre.com.br/authorization?client_id=${MeuId}&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fauth 
pode estar temporariamente indisponível ou pode ter sido movida permanentemente para um novo endereço da Web.
ERR_INVALID_RESPONSE

Método PUT Item ( tentando atualizar um anúncio )

Quando tento dar um update no /item/MLB501026362/, retorna este erro:

Array ( [body] => stdClass Object ( [message] => No signature of method: syi.api.ItemsService.updateItem() is applicable for argument types: (syi.api.Item, org.codehaus.groovy.grails.web.json.JSONArray) values: [syi.api.Item : MLB501026362, [[id:MLB501026362, ...]]] Possible solutions: updateItem(syi.api.Item, java.util.Map), createItem(syi.api.Item), createItem(syi.api.Item, java.lang.Object) [error] => internal_error [status] => 500 [cause] => Array ( ) ) [httpCode] => 500 )

Os dados que estou enviando são:

Array ( [0] => Array ( [title] => Apple novo Ipad [teste] [available_quantity] => 0 [id] => MLB501026362 ) )

Como obter access_token do usuario em background?

Eu tenho um consumer que ira rodar a cada X minutos em background com isso eu fico impossibilitado de pegar o code para fazer uma requisicao para a conta do cliente, como posso fazer para publicar informacoes na conta de um usuario? (que ja instalou meu app)

Erro ao realizar require mercadolibre/php-sdk

Buenas,

Toda vez que tento baixar o SDK, ele da erro:

[InvalidArgumentException]
Could not find a version of package mercadolibre/php-sdk matching your minimum-stability (stable). Require it with
an explicit version constraint allowing its desired stability.

Aguardo.

Abç

Listing Products requires payment

Hi Guys, I posted this on the forums, but yet no reply, so I will try here:

I can post free items fine with the API
but once it comes to a silver/plata listing I get the return
HTTP/1.1 402 Payment Required Server

I noticed that from a month ago Mercado Libre is first listing as free and when upgrading the listing type it requires immediate payment, at least in Colombia, while before it added to the bill for a monthly payment.

how should we handle this with the api? I see it as a big drawback and huge issue to use the api.

I have tried the automatic debit with mercado pago and it still asks for payment.

also when I post with Bronce which is free I get this error:
Listing type bronze is not available for category MCO24632. It might be possible that your account run out of this listing type.Don't worry! You can still post with the following listing types [gold_premium, gold, silver, free

Some help?
thanks

refresh_token

La variable refresh_token no viene en la respuesta cuando se trata de usar el método authorize, cómo se obtiene ese dato??

if($request["body"]->refresh_token)

Mass Ad Update

I didn't find the correct endpoint in the API documentation to perform mass product update, can anyone help me?

SimpleDiskCache and limit memory

I was having problems with this class that was giving overflow memory limit. Could there be a configuration option to turn off the cache.

Integrando Produtos com variações

Ao enviar uma atualização de um produto com variações, não é atualizado o preço do produto.
Ao enviar com o produto principal, a API retorna erro, informando que o produto possui item variável e a atualização de preço não é permitida.
Quando se envia este preço no item variável, o retorno é positivo (até aparece no JSON o preço atualizado), porém no produto no MercadoLivre, o preço continua o mesmo (o preço anterior).
Pelo que vi, não temos como atualizar o preço do item variável e sim do produto como um todo, mas não conseguimos atualizar no produto principal.

update seller_custom_field

i can set this custom fiel when i created the item... or only when i wanna update that and if i set the field how i can update after
thk

getAccessTokenFromRefreshToken Issues to get the new token

I couldn't get a new token from the refresh token using the function in the sdk nor the example code here.

so to make it work I had to:

  1. Modify the function getAccessTokenFromRefreshToken on meli.php
    adding
    $result = $result['json'];
    before the result so that it could return the correct information, otherwise it couldn't get to the values in the return

  2. When getting the array back with the new token, I did not only have to set the new token, but also the user id so that the SDK would take and work with the new tokem

$accessToken = $meli->getAccessTokenFromRefreshToken($refresh_token);

$meli->setAccessToken($accessToken);
$meli->setUserId($meli_user_id);
  • Important to note that I need to refresh the token to do automatic tasks or to list something after days of not logging in.

I hope this helps someone else with the same issue I had.

No Work Example_put_description

Los que tienen resultado uri.invalid modificar en Example_put_description.php
linea 31->
$response = $meli->put('/items/MPE422283841/descriptions', $body, $params); // quitar la 's' de descriptions, quedaría así :
$response = $meli->put('/items/MPE422283841/description', $body, $params);

Espero les sirva, Saludos!

Version Info

If you work with the variable version could also use it to identify the updates.
Basic programming.

invalid_grant refresh token

I get error of invalid_grant when i try to refresh my token.

Please help!
It always worked well, but now doesnt work, is the same code as always!

How to make a listing with images?

Hi guys
I have been trying to get a listing with images, but I always get this return

{"message":"No signature of method: java.lang.String.unique() is applicable for argument types: () values: []\nPossible solutions: minus(java.lang.Object), size(), use([Ljava.lang.Object;), use(java.util.List, groovy.lang.Closure), use(java.lang.Class, groovy.lang.Closure), find(java.util.regex.Pattern)","error":"internal_error","status":500,"cause":[]}
[headers] => Array
(
[Status-Code] => 100
)

[json] => 

)

Also it would be good to have examples to list items and to get a new token from the refresh token as I have been fighting my way with the sdk.

I will make another item for the token issue.

otherwise great job.

204 no content

Intentando publicar un producto bajo el siguiente JSON de prueba
{
"title":"Item de test - No Ofertar",
"category_id":"MLC3530",
"price":10,
"currency_id":"CLP",
"available_quantity":5,
"buying_mode":"buy_it_now",
"listing_type_id":"bronze",
"description": "Item de test - No Ofertar",
"condition": "used",
"pictures":[{"source":"http://santanaelectricalservice.com.ve/imagenes/importamostodo.jpg"}]

}
Pero siempre obtengo como respuesta 204 no content, the server succesfully processed the request but is no returning any content.

Como puedo empezar a publicar en producción.

Saludos,

Porque me redirecciona a ML Brasil?

Estoy usando la api, pero solo me redirecciona a ML Brasil, necesitaría que me loguee en el sitio de Argentina.

echo 'Login using MercadoLibre oAuth 2.0';

json_decode null

Array
(
[statusCode] => 402
[body] => HTTP/1.1 402 Payment Required
Server: nginx/1.0.4
Date: Tue, 18 Dec 2012 18:56:31 GMT
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
X-API-Name: syi-api
X-API-Version: 1.00
Vary: Accept,Accept-Encoding
Cache-Control: max-age=0
X-GAV: master
X-Nginx-Host: zblhp41
X-Nginx-Pool: items-api-write-pool
X-Nginx-UpstreamHost: 172.16.172.88:8080
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Content-Type
Access-Control-Allow-Methods: PUT, GET, POST, DELETE, OPTIONS

{"id":"MLB454908715","site_id":"MLB","title":"Chevrolet - Astra Hatch Cd 2.0 8v 4p","subtitle":null,"seller_id":130663339,"category_id":"MLB3186","price":50000,"base_price":50000,"currency_id":"BRL","initial_quantity":1,"available_quantity":1,"sold_quantity":0,"buying_mode":"classified","listing_type_id":"gold","start_time":"2012-12-18T18:56:30.905Z","stop_time":"2013-01-17T18:56:30.905Z","end_time":"2013-01-17T18:56:30.905Z","condition":"used","permalink":"http://carro.mercadolivre.com.br/MLB-454908715-chevrolet-astra-hatch-cd-20-8v-4p-_JM","thumbnail":"http://img1.mlstatic.com/s_MLB_v_I_f_3555279494_122012.jpg","pictures":[{"id":"MLB3555279494_122012","url":"http://www.mercadolibre.com/jm/img?s=STC&v=O&f=proccesing_image_pt.jpg","secure_url":"https://www.mercadolibre.com/jm/img?s=STC&v=O&f=proccesing_image_pt.jpg","size":"500x500","max_size":"500x500","quality":""}],"video_id":null,"descriptions":[{"id":"MLB454908715-328411396"}],"accepts_mercadopago":false,"non_mercado_pago_payment_methods":[],"shipping":{"profile_id":null,"mode":"not_specified","local_pick_up":false,"free_shipping":false,"methods":[],"dimensions":null},"seller_address":{"id":84032191,"comment":"","address_line":"Test Address 123","zip_code":"","city":{"id":"","name":"Sao Paulo"},"state":{"id":"BR-SP","name":"São Paulo"},"country":{"id":"BR","name":"Brasil"},"latitude":"","longitude":""},"seller_contact":{"contact":"Empresa - Config. Gerais(Empresa - Config. Gerais)","other_info":"Av. Marechal Deodoro, 500 - Centro","area_code":"41","phone":"33333333","area_code2":"","phone2":"","email":"[email protected]","webpage":""},"location":{"address_line":"","zip_code":"","neighborhood":{"id":"","name":""},"city":{"id":"TUxCQ0NVUjYyZmY1","name":"Curitiba"},"state":{"id":"TUxCUFBBUkExODBlZA","name":"Paraná"},"country":{"id":"BR","name":"Brasil"},"latitude":"","longitude":""},"geolocation":{"latitude":"","longitude":""},"coverage_areas":[],"attributes":[{"id":"MLB1744-COMBUS","name":"Combustível","value_id":"MLB1744-COMBUS-ALCOOL","value_name":"Ã�lcool","attribute_group_id":"FIND","attribute_group_name":"Ficha técnica"},{"id":"MLB1744-DOOR","name":"Portas","value_id":"MLB1744-DOOR-2","value_name":"2","attribute_group_id":"FIND","attribute_group_name":"Ficha técnica"},{"id":"MLB1744-KMTS","name":"Kilômetros","value_id":"","value_name":"59000","attribute_group_id":"FIND","attribute_group_name":"Ficha técnica"},{"id":"MLB1744-MARC","name":"Marca","value_id":"MLB1744-MARC-CHEVROLET","value_name":"Chevrolet","attribute_group_id":"FIND","attribute_group_name":"Ficha técnica"},{"id":"MLB1744-MODL","name":"Modelo","value_id":"MLB1744-MODL-ASTRA","value_name":"Astra","attribute_group_id":"FIND","attribute_group_name":"Ficha técnica"},{"id":"MLB1744-YEAR","name":"Ano","value_id":"MLB1744-YEAR-2008","value_name":"2008","attribute_group_id":"FIND","attribute_group_name":"Ficha técnica"},{"id":"MLB3186-VERS","name":"Versão","value_id":"MLB3186-VERS-20-8V--CD-20-8V-Hatchback-5p-Aut","value_name":"2.0 8V/ CD 2.0 8V Hatchback 5p Aut","attribute_group_id":"FIND","attribute_group_name":"Ficha Técnica"}],"variations":[],"status":"payment_required","sub_status":[],"tags":[],"warranty":null,"catalog_product_id":null,"seller_custom_field":null,"parent_item_id":null,"date_created":"2012-12-18T18:56:31.065Z","last_updated":"2012-12-18T18:56:31.065Z"}
[headers] => Array
(
[Status-Code] => 100
)

[json] => 

)

Me denunciaron la cuenta por usar un codigo ejemplo

Gente, me acaban de denunciar una publicacion porque "infringiría sus derechos de autor (ej: copia ilegal de una película, un video, un libro, una pintura)". Y sólo usé el código de ejemplo que está en este SDK.

ARREGLEN ESTO O CAMBIEN EL CODIGO DE EJEMPLO.

Auth sem Heroku - Erro

Boa noite,

estou tentando realizar uma autenticação sem o uso do Heroku mas estou recebendo o seguinte erro:

Notice: Trying to get property of non-object in G:\EasyPHP-12.1\www\login.php on line 20
Notice: Trying to get property of non-object in G:\EasyPHP-12.1\www\login.php on line 21
Notice: Trying to get property of non-object in G:\EasyPHP-12.1\www\login.php on line 22
Array
(
[slim.flash] => Array
(
)

[file] => G:\EasyPHP-12.1\tmp\php6060.tmp
[access_token] => 
[expires_in] => 1547072725
[refresh_token] => 

)

Deveria antes de apresentar este erro, carregar a página na qual eu daria acesso ao meus dados no Mercado Livre, mas o erro carrega direto.

No arquivo configapp.php, estou utilizando a segunda parte das declarações. Estão assim:

$appId = '8631???????5351';
$secretKey = 'bRox3d??????????????5p4FSgrjC1';
$redirectURI = 'http://localhost/login.php';
$siteId = 'MLB';

Todos as informações no momento da criação da aplicação no portal developers eu já revisei e estão conforme este utilizando aqui.

Alguém mais está ou esteve com este problema?
Alguma dica de como poderia resolver?

Obrigado.

Can't set invoice type in sale_terms

Hello. I'm trying to publish an item with the invoice type (refer to example->sale_terms->invoice) but I'm getting this response from ML: "Not allowed to modify sale term INVOICE".

Can someone tell me why I can't set the invoice type?
Thanks

Item Body:

{
  "title": "XIAOMI Mi 8 (6\/64GB) - Azul",
  "category_id": "MLA1055",
  "price": 54495,
  "currency_id": "ARS",
  "available_quantity": "1",
  "buying_mode": "buy_it_now",
  "condition": "new",
  "listing_type_id": "free",
  "description": {
    "plain_text": "\n\n\n\n\n Test"
  },
  "sale_terms": [
    {
      "id": "WARRANTY_TYPE",
      "value_name": "Sin garantía"
    },
    {
      "id": "WARRANTY_TIME",
      "value_name": "30 días"
    },
    {
      "id": "INVOICE",
      "value_name": "Factura A",
      "value_id": "6891885" 
    }
  ],
  "pictures": [
    {
      "source": "http:\/\/URL\/fotos\/productos\/300.jpg"
    }
  ],
  "attributes": [
    {
      "id": "BRAND",
      "value_name": "LG"
    },
    {
      "id": "MODEL",
      "value_name": "A450M"
    },
    {
      "id": "IS_DUAL_SIM",
      "value_id": "242084"
    },
    {
      "id": "COLOR",
      "value_id": "52019"
    },
    {
      "id": "INTERNAL_MEMORY",
      "value_name": "3 GB"
    },
    {
      "id": "RAM",
      "value_name": "3 GB"
    },
    {
      "id": "GTIN",
      "value_name": "7898567777786"
    },
    {
      "id": "CARRIER",
      "value_id": "298335"
    }
  ]
}

Order not found

Estou com erro ao consultar uma order. O número peguei direto do mercado livre, tenho certeza que esta certo, mas para mim aparece:
Array
(
[message] => Oops! Something went wrong...
[error] => order_not_found
[status] => 404
[cause] => Array
(
)

)
Alguém tem alguma sugestão por favor. Ouvir falar que teria que enviar um novo cabeçalho agora:
x-format-new: true
como fazer para enviar usando a sdk do php
obrigada

Atualização Shipped ME1

Bom dia,

Estou tentando atualizar as entregas de modo "me1", estou recebendo sucesso na resposta.
{
"status": "OK"
}

Porém, meu pedido na consulta continua como "handling", alguém mais está tendo esse problema?

Meu request está padrão, como segue documentação.

{
"payload":{
"comment":"despachado",
"date":"2021-05-27T08:55:34.000-04:00"
},
"status":"shipped",
"substatus":"null"
}

obrigado

getAccessTokenFromRefreshToken

I create a new method to get a valid access_token through refresh_token

public function getAccessTokenFromRefreshToken($refresh_token){
        if (empty($refresh_token)){
            return false;
        }

        $result = $this -> execute('POST', false, '/oauth/token', array('grant_type' => 'refresh_token', 'client_id' => $this -> getAppId(), 'client_secret' => $this -> getAppSecret(), 'refresh_token' => $refresh_token));

        return array('value' => $result['access_token'], 'expires' => time() + $result['expires_in'], 'scope' => $result['scope'], 'refresh_token' => isset($result['refresh_token']) ? $result['refresh_token'] : null);

    }

Here is my example to get a new access_token

if (isset($_GET['refresh'])){
  $accessToken = $meli->getAccessToken();
  if ($accessToken){
    if (isset($accessToken['refresh_token'])){
      $new_access_token = $meli->getAccessTokenFromRefreshToken($accessToken['refresh_token']);
      if ($new_access_token){
        $meli->setAccessToken($new_access_token);
      }
    }
  }
}

configApp.php

Hola, estoy intentando conectar a mercadolibre con esta sdk, tengo este archivo -> configApp.php pero no se si tengo que remplazar app_id con mi id en -> $appId = getenv('App_ID'); o si eso lo tengo que dejar asi, intente eso pero no funcionó, tal vez tengo que borrar el getenv y dejar solo $appID = 'mi_id' ???? lo mismo para los otros campos que estan con "getenv" ??

Integrar MercadoLibre y Mercadoshops

Existe alguna manera de relacionar los productos entre si.. por que no encuentro como obtener informacion desde mercadolibre hacia mercadoshops y viceversa.!!
alguien logro hacer algo. ?? gracias

Fórum de discussão e dúvidas sobre a API do Mercado Livre

Olá pessoal, tudo bem?

Como muitos sabem, usar a aba issues não é uma boa para tirar dúvidas sobre algum recurso da API do Mercado Livre mas sim para reportar problemas deste SDK.

Antigamente o Mercado Livre mantinha um fórum de discussão que aparentemente saiu do ar e o suporte para desenvolvedores é somente para aplicações homologadas. Apesar da documentação da API ser rica, em muitos casos não sabemos exatamente o que é cada chave de um json. Alguns endpoints tem as explicações e outros não.

Para quem ainda está começando e ainda não tem uma aplicação homologada acaba ficando um pouco sem ter para onde ir e foi pensando nisso que crie um repositório aqui com o recurso de discussions ativo.

Se você quiser participar fique a vontade: https://github.com/rodurma/forum-meli/discussions

Mensagem para equipe do Mercado Livre: Pessoal, se acharem uma boa ideia oficializar isso eu movo o repositório para vocês ou então criem um fórum para nós aqui neste repositório ou em um específico para isso.

Obrigado.

Plans for sandbox?

Hi guys are there any plans from MELI on creating a sandbox enviroment
it looks very bad that we can post test items on their live website.

Access Token en QueryString

Llego una alerta propia de Mercadolibre indicando:

A partir del 1 de abril será obligatorio enviar el access token en el header de las llamadas a nuestra API

Revisando la SDK, la propia SDK de MELI no cumple con este requisito.

Necesitamos que se actualice la misma dado que estamos intengrados via SDK asimismo por requisito propio de MELI.

Saludos.

Problemas ao acessar o serviço de mensagens pós-venda

Eu ja estou com um sistema bem maduro, conseguindo consumir vários serviços, porem, fui tentar acessar o serviço de mensagens pós-venda (mais precisamente o "Obter mensagens por order" ) e estou recebendo o seguinte retorno:

{ ["message"]=> string(19) "Resource not found." ["error"]=> string(9) "not_found" ["status"]=> int(404) ["cause"]=> array(0) { } }

na documentação da API (mensagens-post-venda) diz que o request deve ser feito para https://api.mercadolibre.com/messages/orders/{numero da venda}, porem parece que não é possível.

Levando em conta o video de lançamento das funcionalidades de mensageira, é dito que no Brasil a funcionalidade que estou querendo acessar está disponível. (vide de lançamento)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.