@datafire/uebermaps
Client library for uebermaps API endpoints
Installation and Usage
npm install --save @datafire/uebermaps
let uebermaps = require('@datafire/uebermaps').create();
.then(data => {
console.log(data);
});
Description
Enable people to store spots on public and private maps
Actions
account.patch
Update account. Wrap map parameters in [user].
uebermaps.account.patch({}, context)
Input
- input
object
- user UserEditable
Output
- output User
attachments.id.delete
Delete attachment.
uebermaps.attachments.id.delete({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Attachment id
- id required
Output
- output Attachment
authentication.post
Sign in user. Wrap authentication parameters in [user].
uebermaps.authentication.post({
"user": null
}, context)
Input
- input
object
- user required UserAuthentication
Output
- output UserFullProfile
collaborator_invitations.get
List your collaborator invitations.
uebermaps.collaborator_invitations.get(null, context)
Input
This action has no parameters
Output
- output
array
- items CollaboratorInvitation
collaborator_invitations.post
Invite user to collaborate on map.
uebermaps.collaborator_invitations.post({}, context)
Input
- input
object
Output
- output CollaboratorInvitation
collaborator_invitations.id.delete
Delete collaborator invitation.
uebermaps.collaborator_invitations.id.delete({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Collaborator invitation id
- id required
Output
- output CollaboratorInvitation
collaborator_invitations.id.get
Show collaborator invitation
uebermaps.collaborator_invitations.id.get({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Collaborator invitation id
- id required
Output
- output CollaboratorInvitation
collaborator_invitations.id.patch
Accept collaborator invitation.
uebermaps.collaborator_invitations.id.patch({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Collaborator invitation id
- id required
Output
- output CollaboratorInvitation
comments.id.delete
Delete comment.
uebermaps.comments.id.delete({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Comment id
- id required
Output
- output Comment
comments.id.patch
Update comment. Wrap comment parameters in [comment].
uebermaps.comments.id.patch({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Comment id - comment CommentEditable
- id required
Output
- output Comment
events.get
List your own events.
uebermaps.events.get({}, context)
Input
- input
object
- timeframe_start
string
: Begin of time range of event (ISO 8601 date format). - timeframe_end
string
: End of time range of event (ISO 8601 date format). - bounds
string
: To refine your event index request to contain only events within a geographical box pass the followng bounds parameters. F. e. to get events within 'Hamburg, St. Pauli': bounds[sw_lat]=53.54831449741324 bounds[sw_lon]=9.943227767944336 bounds[ne_lat]=53.5571103674878 bounds[ne_lon]=9.9776029586792
- timeframe_start
Output
- output
array
- items Event
events.id.delete
Delete event.
uebermaps.events.id.delete({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Event id
- id required
Output
- output Event
events.id.get
Get basic information about an event
uebermaps.events.id.get({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Id of event
- id required
Output
- output Event
events.id.patch
Update event. Wrap event parameters in [event].
uebermaps.events.id.patch({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Event id - event EventEditable
- id required
Output
- output Map
maps.get
List your own maps.
uebermaps.maps.get(null, context)
Input
This action has no parameters
Output
- output
array
- items Map
maps.post
Create map. Wrap map parameters in [map]. To add a map header picture pass a base64 encoded string to [map][picture].
uebermaps.maps.post({}, context)
Input
- input
object
- map MapEditable
Output
- output Map
maps.search.get
Search maps
uebermaps.maps.search.get({}, context)
Input
- input
object
- q
string
: Query - d
integer
: Distance. Diameter of search radius in meter (default: 2000 meter) - lat
number
: Latitude for search radius (default distance: 2000 meter) - lon
number
: Longitude for search radius (default distance: 2000 meter)
- q
Output
- output Map
maps.id.delete
Delete map.
uebermaps.maps.id.delete({
"id": 0
}, context)
Input
- input
object
- id required
integer
: map id
- id required
Output
- output Map
maps.id.get
Get basic information about a map
uebermaps.maps.id.get({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Id of map
- id required
Output
- output MapWithRelation
maps.id.patch
Update map. Wrap map parameters in [map]. To update the map header picture pass a base64 encoded string to [map][picture].
uebermaps.maps.id.patch({
"id": 0
}, context)
Input
- input
object
- id required
integer
: map id - map MapEditable
- id required
Output
- output Map
maps.id.attachments.get
List attachments for a given map.
uebermaps.maps.id.attachments.get({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Map id
- id required
Output
- output
array
- items Attachment
maps.id.attachments.post
Upload map attachment. Wrap attachment parameters in [attachment]
uebermaps.maps.id.attachments.post({
"id": 0,
"image": ""
}, context)
Input
- input
object
- id required
integer
: Map id - image required
string
- id required
Output
- output Attachment
maps.id.collaborators.get
List collaborators of a map.
uebermaps.maps.id.collaborators.get({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Map id
- id required
Output
- output
array
- items Collaborator
maps.id.collaborators.user_id.delete
Delete collaboration.
uebermaps.maps.id.collaborators.user_id.delete({
"id": 0,
"user_id": 0
}, context)
Input
- input
object
- id required
integer
: map id - user_id required
integer
: user id
- id required
Output
- output Collaborator
maps.id.collaborators.user_id.patch
Update collaborator. Wrap collaborator parameters in [collaborator]
uebermaps.maps.id.collaborators.user_id.patch({
"id": 0,
"user_id": 0
}, context)
Input
- input
object
- id required
integer
: map id - user_id required
integer
: user id - collaborator CollaboratorEditable
- id required
Output
- output Collaborator
maps.id.comments.get
List comments for a given map.
uebermaps.maps.id.comments.get({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Id of map
- id required
Output
- output
array
- items Comment
maps.id.comments.post
Create map comment. Wrap comment parameters in [comment].
uebermaps.maps.id.comments.post({
"id": 0
}, context)
Input
- input
object
- id required
integer
: map id - comment CommentEditable
- id required
Output
- output Comment
maps.id.respots.get
List respots of a map.
uebermaps.maps.id.respots.get({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Map Id
- id required
Output
- output
array
- items Respot
maps.id.spots.get
List spots for a given map.
uebermaps.maps.id.spots.get({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Id of map - order
string
(values: created_at_asc, created_at_desc, updated_at_asc, updated_at_desc, title_asc, title_desc): Order of spots
- id required
Output
- output
array
- items Spot
maps.id.spots.post
Create spot. Wrap parameters in [spot]. To add a spot picture pass a base64 encoded string to [spot][picture].
uebermaps.maps.id.spots.post({
"id": 0,
"spot": null
}, context)
Input
- input
object
- id required
integer
: Id of map - spot required SpotEditable
- id required
Output
- output Spot
maps.id.subscriptions.delete
Unsubscribe from map.
uebermaps.maps.id.subscriptions.delete({
"id": 0
}, context)
Input
- input
object
- id required
integer
: map id
- id required
Output
- output Subscription
maps.id.subscriptions.get
List subscriptions for a given map.
uebermaps.maps.id.subscriptions.get({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Id of map
- id required
Output
- output
array
- items Subscription
maps.map_id.spots.id.get
Get basic information about a spot
uebermaps.maps.map_id.spots.id.get({
"id": 0,
"map_id": 0
}, context)
Input
- input
object
- id required
integer
: Id of spot - map_id required
integer
: Id of map
- id required
Output
- output Spot
maps.map_id.spots.spot_id.respot.delete
Delete respot from map by spot id.
uebermaps.maps.map_id.spots.spot_id.respot.delete({
"map_id": 0,
"spot_id": 0
}, context)
Input
- input
object
- map_id required
integer
: Map Id - spot_id required
integer
: Spot Id
- map_id required
Output
- output Respot
respot_maps.get
List maps that user can respot to.
uebermaps.respot_maps.get(null, context)
Input
This action has no parameters
Output
- output
array
- items Map
respots.id.delete
Delete respot.
uebermaps.respots.id.delete({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Respot Id
- id required
Output
- output Respot
respots.id.get
Get basic information about a respot
uebermaps.respots.id.get({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Id of respot
- id required
Output
- output Respot
share.map.id.get
Get secret access token of an uebermap with access set to 'Secret link'. Pass the 'token' on every request you make to access this uebermap and its resources. F.e. token=1-x_gqu7eLBe3uKoAGAGXy
uebermaps.share.map.id.get({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Id of map
- id required
Output
- output MapWithAuthToken
spots.get
List your own spots.
uebermaps.spots.get({}, context)
Input
- input
object
- order
string
(values: created_at_asc, created_at_desc, updated_at_asc, updated_at_desc, title_asc, title_desc): Order of spots
- order
Output
- output
array
- items Spot
spots.search.get
Search spots
uebermaps.spots.search.get({}, context)
Input
- input
object
- q
string
: Query - d
integer
: Distance. Diameter of search radius in meter (default: 2000 meter) - lat
number
: Latitude for search radius (2 km) - lon
number
: Longitude for search radius (2 km)
- q
Output
- output Spot
spots.id.delete
Delete spot.
uebermaps.spots.id.delete({
"id": 0
}, context)
Input
- input
object
- id required
integer
: spot id
- id required
Output
- output Spot
spots.id.patch
Update spot. Wrap parameters in [spot]. To update the spot picture pass a base64 encoded string to [spot][picture].
uebermaps.spots.id.patch({
"id": 0
}, context)
Input
- input
object
- id required
integer
: spot id - spot SpotEditable
- id required
Output
- output Spot
spots.id.attachments.get
List attachments for a given spot.
uebermaps.spots.id.attachments.get({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Spot id
- id required
Output
- output
array
- items Attachment
spots.id.attachments.post
Upload spot attachment. Wrap attachment parameters in [attachment]
uebermaps.spots.id.attachments.post({
"id": 0,
"image": ""
}, context)
Input
- input
object
- id required
integer
: Spot id - image required
string
- id required
Output
- output Attachment
spots.id.comments.get
List comments for a given spot.
uebermaps.spots.id.comments.get({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Id of spot
- id required
Output
- output
array
- items Comment
spots.id.comments.post
Create spot comment. Wrap comment parameters in [comment].
uebermaps.spots.id.comments.post({
"id": 0
}, context)
Input
- input
object
- id required
integer
: spot id - comment CommentEditable
- id required
Output
- output Comment
spots.id.events.get
List maps for a given spot.
uebermaps.spots.id.events.get({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Id of spot - timeframe_start
string
: Begin of time range of event (ISO 8601 date format). - timeframe_end
string
: End of time range of event (ISO 8601 date format). - bounds
string
: To refine your event index request to contain only events within a geographical box pass the followng bounds parameters. F. e. to get events within 'Hamburg, St. Pauli': bounds[sw_lat]=53.54831449741324 bounds[sw_lon]=9.943227767944336 bounds[ne_lat]=53.5571103674878 bounds[ne_lon]=9.9776029586792
- id required
Output
- output
array
- items Event
spots.id.events.post
Create event. Wrap map parameters in [event].
uebermaps.spots.id.events.post({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Spot id - event EventEditable
- id required
Output
- output Event
spots.id.respots.post
Respot a spot onto a map.
uebermaps.spots.id.respots.post({
"id": 0,
"map_id": 0
}, context)
Input
- input
object
- id required
integer
: Spot Id - map_id required
number
- id required
Output
- output Respot
subscriptions.get
List subscriptions.
uebermaps.subscriptions.get({}, context)
Input
- input
object
- user_id
integer
: Id of user - map_id
integer
: Id of map
- user_id
Output
- output
array
- items Subscription
subscriptions.post
Create map subscription.
uebermaps.subscriptions.post({
"map_id": 0
}, context)
Input
- input
object
- map_id required
number
- map_id required
Output
- output Subscription
trends.latest.get
List latest maps.
uebermaps.trends.latest.get(null, context)
Input
This action has no parameters
Output
- output
array
- items Map
trends.recommended.get
List recommended maps.
uebermaps.trends.recommended.get(null, context)
Input
This action has no parameters
Output
- output
array
- items Map
users.search.get
Search users
uebermaps.users.search.get({}, context)
Input
- input
object
- q
string
: Query
- q
Output
- output User
users.id.get
Get profile a user
uebermaps.users.id.get({
"id": 0
}, context)
Input
- input
object
- id required
integer
: Id of user
- id required
Output
- output User
users.user_id.maps.get
List maps for a given user.
uebermaps.users.user_id.maps.get({
"user_id": 0
}, context)
Input
- input
object
- user_id required
integer
: Id of user
- user_id required
Output
- output
array
- items Map
Definitions
Attachment
- Attachment
object
Collaborator
- Collaborator
object
CollaboratorEditable
- CollaboratorEditable
object
- group
string
(values: admin, editor)
- group
CollaboratorInvitation
- CollaboratorInvitation
object
CollaboratorInvitationCreate
- CollaboratorInvitationCreate
object
- emails
string
- is_admin
boolean
- map_id
integer
- user_ids
string
- emails
Comment
- Comment
object
- body
string
- created_at
string
- id
integer
- status
string
(values: approved, unapproved) - updated_at
string
- user User
- body
CommentEditable
- CommentEditable
object
- body
string
- body
Event
- Event
object
- counts EventCounts
- created_at
string
- description
string
- ends_at
string
- id
integer
- lat
number
- lon
number
- owner_id
integer
- picture_url
string
- spot Spot
- starts_at
string
- time_zone
string
- title
string
- updated_at
string
- user User
EventCounts
- EventCounts
object
- attachments
integer
- comments
integer
- attachments
EventEditable
- EventEditable
object
- description
string
- ends_at
string
- lat
number
- lon
number
- picture
string
- starts_at
string
- time_zone
string
- title
string
- user_id
integer
- description
Map
- Map
object
- counts MapCounts
- created_at
string
- description
string
- id
integer
- map_settings MapSettings
- owner_id
integer
- picture_url
string
- title
string
- updated_at
string
- visibility
string
(values: public, link, private)
MapCounts
- MapCounts
object
- attachments
integer
- comments
integer
- impressions
integer
- respots
integer
- spots
integer
- subscriptions
integer
- attachments
MapEditable
- MapEditable
object
- description
string
- map_settings MapSettings
- picture
string
- title
string
- visibility
string
(values: public, link, private)
- description
MapRelation
- MapRelation
object
- access
string
- access_group
string
(values: visitor, editor, admin) - subscribed
boolean
- access
MapSettings
- MapSettings
object
- editor_access
string
- respotting_to_this_map
boolean
- visitor_access
string
- editor_access
MapWithAuthToken
- MapWithAuthToken
object
- counts MapCounts
- created_at
string
- description
string
- id
integer
- owner_id
integer
- picture_url
string
- title
string
- token
string
- updated_at
string
- visibility
string
(values: public, link, private)
MapWithRelation
- MapWithRelation
object
- counts MapCounts
- created_at
string
- description
string
- id
integer
- map_settings MapSettings
- owner_id
integer
- picture_url
string
- relation MapRelation
- title
string
- updated_at
string
- visibility
string
(values: public, link, private)
Respot
- Respot
object
Spot
- Spot
object
- counts SpotCounts
- created_at
string
- description
string
- id
integer
- lat
number
- lon
number
- map_id
integer
- picture_url
string
- status
string
(values: approved, unapproved) - time_zone
string
- title
string
- updated_at
string
- user User
SpotCounts
- SpotCounts
object
- attachments
integer
- comments
integer
- respot
integer
- attachments
SpotEditable
- SpotEditable
object
- description
string
- lat
number
- lon
number
- picture
string
- time_zone
string
- title
string
- description
Subscription
- Subscription
object
User
- User
object
- about
string
- counts
object
- maps
integer
- maps
- header_picture
string
- id
integer
- location
string
- name
string
- picture_url
string
- screen_name
string
- url
string
- about
UserAuthentication
- UserAuthentication
object
- email
string
- password
string
- email
UserEditable
- UserEditable
object
- about
string
- header
string
- language
string
- location
string
- name
string
- picture
string
- screen_name
string
- time_zone
string
- url
string
- about
UserFullProfile
- UserFullProfile
object
- auth_token
string
- language
string
- time_zone
string
- about
string
- counts
object
- maps
integer
- maps
- header_picture
string
- id
integer
- location
string
- name
string
- picture_url
string
- screen_name
string
- url
string
- auth_token