{ "info": { "author": "Miguel Ferrer", "author_email": "ingferrermiguel@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# mercadolibre-python\n\nmercadolibre is an API wrapper for MercadoLibre written in python\n\n## Installing\n```\npip install mercadolibre-python\n```\n\n## Usage\n```\nfrom mercadolibre.client import Client\n\nclient = Client('CLIENT_ID, 'CLIENT_SECRET', site='MCO')\n```\n\nGet authorization url\n```\nurl = client.authorization_url('REDIRECT_URL')\n```\n\nExchange the code for an access token\n```\ntoken = client.exchange_code('REDIRECT_URL', 'CODE')\n```\n\nSet the token\n```\nclient.set_token('TOKEN')\n```\n\nRefresh the token\n```\nnew_token = client.refresh_token()\n```\n\nGet account information\n```\nresponse = client.me()\n```\n\nGet account information for an user\n```\nresponse = client.get_user('USER_ID')\n```\n\nGet user address\n```\nresponse = client.get_user_address('USER_ID')\n```\n\nGet accepted payment methods for an user\n```\nresponse = client.get_user_accepted_payment_methods('USER_ID')\n```\n\nGet application information\n```\nresponse = client.get_application('APPLICATION_ID')\n```\n\nGet user brands\n```\nresponse = client.get_user_brands('USER_ID')\n```\n\nGet project information\n```\nresponse = client.get_project('PROJECT_ID')\n```\n\nGet project information\n```\nresponse = client.get_project('PROJECT_ID')\n```\n\nGet sites\n```\nresponse = client.get_sites(')\n```\n\nGet listing types\n```\nresponse = client.get_listing_types('SITE_ID')\n```\n\nGet listing exposures\n```\nresponse = client.get_listing_exposures('SITE_ID')\n```\n\nGet categories\n```\nresponse = client.get_categories('SITE_ID')\n```\n\nGet category\n```\nresponse = client.get_category('CATEGORY_ID')\n```\n\nGet category attributes\n```\nresponse = client.get_category_attributes('CATEGORY_ID')\n```\n\nGet countries\n```\nresponse = client.get_countries()\n```\n\nGet country\n```\nresponse = client.get_country('COUNTRY_ID')\n```\n\nGet state\n```\nresponse = client.get_state('STATE_ID')\n```\n\nGet city\n```\nresponse = client.get_city('CITY_ID')\n```\n\nGet currencies\n```\nresponse = client.get_currencies()\n```\n\nGet currency\n```\nresponse = client.get_currency('CURRENCY_ID')\n```\n\nList item\n```\nitem = {'title': 'Test item - Moto G 4th Gen', 'condition': 'used', 'category_id': 'MCO174749', 'price': 10,\n 'currency_id': 'COP',\n 'available_quantity': 1, 'buying_mode': 'buy_it_now', 'listing_type_id': 'free', 'warranty': '24 months',\n 'video_id': 'zQF96f01duA',\n 'pictures': ['https://mxmoto.vteximg.com.br/arquivos/ids/156297-600-600/92849LYESAF5_1_1.png']}\n\nresponse = client.list_item(**item)\n```\n\n## Requirements\n- requests\n\n## Tests\n```\npython tests/test_client.py\n```", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/GearPlug/mercadolibre-python", "keywords": "", "license": "GPL", "maintainer": "", "maintainer_email": "", "name": "mercadolibre-python", "package_url": "https://pypi.org/project/mercadolibre-python/", "platform": "", "project_url": "https://pypi.org/project/mercadolibre-python/", "project_urls": { "Homepage": "https://github.com/GearPlug/mercadolibre-python" }, "release_url": "https://pypi.org/project/mercadolibre-python/0.2.1/", "requires_dist": null, "requires_python": "", "summary": "API wrapper for MercadoLibre written in Python", "version": "0.2.1" }, "last_serial": 3617403, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "dc9114641bb0c56ad1127032798eb9f6", "sha256": "d7f01515f430ef85edb0aca191d559cb3b4ca04e4ee39514cf6feb1987dab9e5" }, "downloads": -1, "filename": "mercadolibre-python-0.2.tar.gz", "has_sig": false, "md5_digest": "dc9114641bb0c56ad1127032798eb9f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4289, "upload_time": "2018-02-19T20:52:10", "url": "https://files.pythonhosted.org/packages/51/3e/0d387d881d827a9ded0b7dd903e4690e5e9b83d9180c12e545092b48c85d/mercadolibre-python-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "8cd093c5a578f2dfe3fb05ddc222ae2e", "sha256": "8d14b7fdadf5af13fe7034b6afbf49ff205b092547a118512c33dbf0bbc9ddba" }, "downloads": -1, "filename": "mercadolibre-python-0.2.1.tar.gz", "has_sig": false, "md5_digest": "8cd093c5a578f2dfe3fb05ddc222ae2e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4665, "upload_time": "2018-02-26T14:13:16", "url": "https://files.pythonhosted.org/packages/36/f4/b643c468c213a6b606bc9a35820e6617071ea6343f2d4ac7963c40e57005/mercadolibre-python-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8cd093c5a578f2dfe3fb05ddc222ae2e", "sha256": "8d14b7fdadf5af13fe7034b6afbf49ff205b092547a118512c33dbf0bbc9ddba" }, "downloads": -1, "filename": "mercadolibre-python-0.2.1.tar.gz", "has_sig": false, "md5_digest": "8cd093c5a578f2dfe3fb05ddc222ae2e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4665, "upload_time": "2018-02-26T14:13:16", "url": "https://files.pythonhosted.org/packages/36/f4/b643c468c213a6b606bc9a35820e6617071ea6343f2d4ac7963c40e57005/mercadolibre-python-0.2.1.tar.gz" } ] }