[English version bellow the Spanish one]
Hola,
Hemos actualizado la documentación de la API para el manejo de
categorías. A partir de ahora podéis consultar tanto la lista de
categorías que usamos como utilizar la API de búsqueda filtrando
resultados según la pertenencia a las mismas. Los entries de los feeds
de búsqueda y usuario también están anotados con esta información
(pero no se permiten actualizaciones).
Mejor un ejemplo (python) que un repaso de la documentación:
>>> import httplib2
>>> h = httplib2.Http()
>>> h.add_credencials("
lu...@11870.com", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
>>> r, c = h.request("
http://11870.com/api/v1/categories)
>>> c
<?xml version=\'1.0\' encoding=\'UTF-8\'?>
<categories xmlns="
http://www.w3.org/2007/app" xmlns:atom="http://
www.w3.org/2005/Atom" scheme="
http://11870.com/api/v1/categories">
<atom:category term="restaurantes" scheme="
http://11870.com/api/v1/
categories" label="restaurantes" />
<atom:category term="compras" scheme="
http://11870.com/api/v1/
categories" label="compras" />
...
</categories>
>>> r, c = h.request("
http://11870.com/api/v1/search?category=restaurantes")
>>> c
...
---
Hi,
We have updated the API docs to reflect changes regarding the
support of categories. From now on, you may query for the list of
categories in use at
11870.com and query the search API for places
matching some category criteria. Search result feeds and user feeds
include category information too (but category editing is not
allowed).
You may take a look at the python example above if you want to take
a closer look at this new feature.
Regards,
--
Luis Peralta
11870.com