| POST | /protectme/activate | Register a Protect Me 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 ProtectMeActivationRequest
Inherits ApiServiceRequest
'''<Summary>
'''ID Number of the user making this request.
'''</Summary>
<ApiMember(Description:="ID Number of the user making this request.", IsRequired:=true)>
Public Overridable Property IdNumber As String
'''<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
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
End Namespace
End Namespace
VB.NET ProtectMeActivationRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /protectme/activate HTTP/1.1
Host: galaxymobile.api.client.prod.86degrees.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"IdNumber":"String","Latitude":0,"Longitude":0,"ApiKey":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ProductAvailable":false,"UserHasAccess":false,"PanicId":0,"Description":"String","Heading":"String","WasSuccessful":false,"ModelState":{}}