matihick / mercadolibre Goto Github PK
View Code? Open in Web Editor NEWAccess to meli API
License: MIT License
Access to meli API
License: MIT License
Hey!
Thanks for building this. I just wanted to report that on the README you make reference to get_my_item_ids
but that method does not exist in the codebase.
Could you please remove that from the docs?
This is the bit of doc that I believe is out of date:
* api.get_my_item_ids(filters={})
-> Search all your item ids with filters (with pagination).
When trying to find hot items with this command in the rails console:
api.get_hot_items ("MLA", "MLA1574", limit = 15)
He returns the following message:
irb (main): 182: 0> api.get_hot_items ("MLA", "MLA1574", limit = 15)
=> # <OpenStruct status = 502, message = "Bad Gateway">
The same message for any site_id, any category_id or any limit.
I have tried several api, and all I have tried work correctly, this is the only one that gives me this message.
i am not being able to retrieve any information using the method: search_items.
It always retrieve an empty array.
I tried using as input: "product name", q="product name"" , "id category" and so on.
Could you review it? to make sure is not the method? it is not, how do you enter the filters?
Regards,
Example Result:
#<OpenStruct site_id="MLC", paging=#, results=[], secondary_results=[], related_results=[], sort=#<OpenStruct id="relevance", name="Más relevantes">, available_sorts=[#<OpenStruct id="price_asc", name="Menor precio">, #<OpenStruct id="price_desc", name="Mayor precio">], filters=[], available_filters=[]>
If you have:
mel = Mercadolibre::Api.new({ ... })
mel.get_category("MLC1430").children_categories
you get an array of Mercadolibre::Entity::Category
But this categories have only name and id (doesn't have settings or children_categories)
Would be nice to have a fetch
method like mel.get_category("MLC1430").children_categories.last.fetch
which calls the api and gets all the info of this Category (including his childrens).
I didn't made a pull request because calling the api from the Category entity was a bit strange...
¿what do you think?
api_obj = api
order_obj = api_obj.get_order(order_number)
order_obj.id ### this line returns nil even though
puts order_obj ### returns #Mercadolibre::Entity::Order:0x007f57ecb41518
Worked fine since December 1st. until today 4 am was the last successful order stored in our system
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.