| POST | /protectme/location | Update the location of an in-progress panic request. |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports WebService.ClientServiceModel.ProtectMe
Imports WebService.ClientServiceModel.Base
Imports CommonService.Api.Models.Base
Namespace Global
Namespace CommonService.Api.Models.Base
Public Partial Class ApiServiceResponse
Implements IServiceResponse
Public Overridable Property Description As String
Public Overridable Property Heading As String
Public Overridable Property WasSuccessful As Boolean
Public Overridable Property ModelState As Object
End Class
End Namespace
Namespace WebService.ClientServiceModel.Base
Public Partial Class ApiServiceRequest
Implements IServiceRequest
Implements IHasApiKey
'''<Summary>
'''The API Key required for authentication
'''</Summary>
<ApiMember(DataType:="string", Description:="The API Key required for authentication", IsRequired:=true)>
Public Overridable Property ApiKey As String
End Class
End Namespace
Namespace WebService.ClientServiceModel.ProtectMe
Public Partial Class ProtectMeActivationResponse
Inherits ApiServiceResponse
'''<Summary>
'''Is the requested product set up and enabled on Galaxy.
'''</Summary>
<ApiMember(Description:="Is the requested product set up and enabled on Galaxy.")>
Public Overridable Property ProductAvailable As Boolean
'''<Summary>
'''Does the user have access to this product, based on their Galaxy profile.
'''</Summary>
<ApiMember(Description:="Does the user have access to this product, based on their Galaxy profile.")>
Public Overridable Property UserHasAccess As Boolean
'''<Summary>
'''The ID of the panic log. This is the ID returned by the panic provider. Used to get panic detail later.
'''</Summary>
<ApiMember(Description:="The ID of the panic log. This is the ID returned by the panic provider. Used to get panic detail later.")>
Public Overridable Property PanicId As Long
End Class
Public Partial Class ProtectMeUpdateLocationRequest
Inherits ApiServiceRequest
'''<Summary>
'''The ID of the panic log. This is the ID returned by the panic provider when the service was activated.
'''</Summary>
<ApiMember(Description:="The ID of the panic log. This is the ID returned by the panic provider when the service was activated.", IsRequired:=true)>
Public Overridable Property PanicId As Integer
'''<Summary>
'''Latitude of the panic location.
'''</Summary>
<ApiMember(Description:="Latitude of the panic location.", IsRequired:=true)>
Public Overridable Property Latitude As Double
'''<Summary>
'''Longitude of the panic location.
'''</Summary>
<ApiMember(Description:="Longitude of the panic location.", IsRequired:=true)>
Public Overridable Property Longitude As Double
End Class
End Namespace
End Namespace
VB.NET ProtectMeUpdateLocationRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /protectme/location HTTP/1.1
Host: galaxymobile.api.client.prod.86degrees.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
PanicId: 0,
Latitude: 0,
Longitude: 0,
ApiKey: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ProductAvailable: False,
UserHasAccess: False,
PanicId: 0,
Description: String,
Heading: String,
WasSuccessful: False,
ModelState: {}
}