Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
232 views
in Technique[技术] by (71.8m points)

javascript - mercadolibre API. I can only Get, not PUT, it shows that I don't have the calling permission, but I have already obtained the access token

mercadolibre API. I can only Get, not PUT, it shows that I don't have the calling permission, but I have already obtained the access token!

put https://api.mercadolibre.com/items/MLM799955297
json:

    {
      "title": "Your new title"
    }

response

{
    "message": "The caller is not authorized to access this resource",
    "error": "forbidden",
    "status": 403,
    "cause": []
}

mercadolibre Official API documentation:

address: https://global-selling.mercadolibre.com/devsite/sync-and-modify-listings-gs

Update your item Let’s see a basic example of updating an item title and price. The only thing you need is the item_id of the listed product and of course, the seller’s access token.

Title To update the item title you need is the item_id of the listed product and the seller’s access_token.

Update global item′s title If you want to update the global item′s title, it has to be in english. This updated title will not be replicated automatically to their marketplaces items listed. Then you should perform an update to each marketplace item title per site. Remember that if you list on a new site, this marketplace item, it will have the global item title.

Example:

enter image description here

I found this problem in the ucas Lopez post, but I don’t quite understand address:https://medium.com/@lopezlucas/actualizando-inventario-en-mercadolibre-api-be08c72cc9df

original:

Lo último es que si creamos el producto desde la interfaz y luego queremos actualizarlo mediante el API, tenemos que obtener un access_token para el usuario de pruebas, ya que no podemos utilizar el que obtuvimos con el usuario que creo la aplicación y el usuario de pruebas. Si no vamos a recibir el siguiente mensaje

English:

The last thing is that if we create the product from the interface and then we want to update it through the API, we have to obtain an access_token for the test user, since we cannot use the one we obtained with the user who created the application and the test user . If we are not going to receive the following message

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...