########## Items ########## Obtain the items of a customer ********************************** Obtener los artículos asociados en base a la lista de precios relacionada a la clase del cliente. Resource URL ============ .. http:get:: http://api.next-cloud.mx/v1/client/(int:client_id)/items.(format) :param client_id: ID del cliente. :param format: json o xml. :reqheader Authorization: Token del usuario :statuscode 200: Ningún error. :statuscode 404: El cliente no cuenta con lista de precios asociada. :statuscode 404: El cliente no está activo en Next Cloud. Example request =============== .. sourcecode:: http GET v1/client/1/items.json HTTP/1.1 Host: api.next-cloud.mx Accept: application/json Authorization: Token ( token del usuario ) Example Response ================ .. sourcecode:: http HTTP/1.1 200 OK Vary: Accept Content-Type: application/json Allow: GET, OPTIONS .. literalinclude:: example_Items_01.json :language: json Example XML =========== Example request --------------- .. sourcecode:: http GET v1/client/1/items.xml HTTP/1.1 Host: api.next-cloud.mx Accept: application/xml Content-Type: application/xml Authorization: Token ( token del usuario ) Example Response ---------------- .. sourcecode:: http HTTP/1.1 200 OK Vary: Accept Content-Type: application/xml; charset=utf-8 Allow: GET, OPTIONS .. literalinclude:: example_Items_01.xml :language: xml