UsagePoints¶
-
class
effipy.usagepoints.
UsagePoints
(parent, object_id=None)¶ Bases:
effipy.resource.EffiPeopleResource
-
create
(dict)¶ Create a new Usagepoint with a dict that will be converted to JSON.
Parameters: dict (dict) – A dictionary with Usagepoint data like the following: { "id": "ES0987543210987654ZF", "address": { "street": "Calle y número", "postalCode": "CodigoPostal", "city": "Nombre ciudad", "cityCode": "Código INE ciudad", "province": "Nombre provincia", "provinceCode": "Código INE provincia", "country": "España", "countryCode": "ES. Codigo según ISO 3166", "parcelNumber": "Referencia catastral" } }
-
add_filter
(filter_function)¶
-
apply_filters
(request)¶
-
delete
(*args, **kwargs)¶ Delete this resource.
-
filters
= ()¶
-
get
(*args, **kwargs)¶ -
get
()¶ -
`get()` method for all the EffiPeople resources.
Parameters: - start (int) – Start of the results
- limit (int) – Limit of the results
-
-
get_url
()¶ Get the URL for the endpoint.
In our case, we replace ‘/’ for ‘-‘ for the object identifier.
-
list_methods
()¶
-
list_resources
()¶
-
meter
(object_id)¶
-
meters
()¶
-
parent
= None¶
-
path
= 'usagepoints'¶
-
require
(condition)¶
-
require_collection
()¶
-
require_item
()¶
-
update
(*args, **kwargs)¶
-
wrap_object
(obj)¶
-