NOTE: Trivore ID Documentation has moved to https://trivoreid.com

The content on this site IS OUT OF DATE!

This space has been archived!

Please go ahead to the new site!

Location/Site Service (python)

List of all options:

  • Manage locations/sites

Manage locations/sites

from trivoreid.models.locationsite import LocationSite, Coordinate
from trivoreid.utils.criteria import Filter

# get page with all location/sites by the defined criteria
f = Filter(Filter.EQUAL, 'country', 'FI')
page = api.locationsites_service.get_all(f,
										 start_index=0,
										 count=5,
										 sortBy='attribute',
										 ascending=True,
										 flat=True)

# create
ls = LocationSite()
ls.name = 'ExampleName'

# the function returns location/site object with the generated id
ls = api.locationsites_service.create(ls)

# update
ls.uri = 'exampleUri'
api.locationsites_service.update(ls)

# get
ls = api.locationsites_service.get(ls.id)

# delete
api.locationsites_service.delete(ls.id)

Location/Site Service Models

/wiki/spaces/TISpubdoc/pages/20515261

/wiki/spaces/TISpubdoc/pages/20515268

NOTE: Trivore ID Documentation has moved to https://trivoreid.com

The content on this site IS OUT OF DATE!

This space has been archived!