Click or drag to resize
ParaPlan Logo

TripServiceAddAction2 Method

Attaches a log event to a trip

GET restURL/Trips/AddAction2/{tripId}/{actionType}?Token={token}&Device={device}&UserID={userId}&Timestamp={timestamp}&Value={value}&lat={lat}&lng={lng}

Namespace:  ParaPlanREST
Assembly:  ParaPlanREST (in ParaPlanREST.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public SimpleResponse AddAction2(
	string token,
	string device,
	string actionType,
	string tripId,
	string value,
	string userId,
	string timestamp,
	string lat,
	string lng
)

Parameters

token
Type: SystemString
Token from API Login
device
Type: SystemString
Device name used when logging into API
actionType
Type: SystemString
0-99
tripId
Type: SystemString
Database ID of trip
value
Type: SystemString
Extra data. Used differently by different ActionTypes
userId
Type: SystemString
No longer used - derived from token
timestamp
Type: SystemString
Epoch in seconds
lat
Type: SystemString
Latitude
lng
Type: SystemString
Longitude

Return Value

Type: SimpleResponse
Simple Response object that shows status of request and any errors encountered
See Also