AlopeykClient
You would access APIs through IAlopeykClient
interface which is implemented in AlopeykClient
class.
Here's a list of methods available:
- GetLocation
- GetLocationSuggestions
- GetPrice
- GetPrices
- InsertOrder
- GetOrderDetails
- UpdateOrder
- CancelOrder
- RateOrder
- AddHiddenDescription
- DeleteHiddenDescription
- GetLiveMapLink
AlopeykClient takes 5 parameters
- The first one which is required (i.e.
remoteServiceUri
) is Alopeyks' uri which ishttps://api.alopeyk.com/api/
forProduction
environment, andhttps://sandbox-api.alopeyk.com/api/
forDevelopment
. - Second is
token
(required), which is a JWT token for authorization. httpClient
(optional) takes aHttpClient
to allow you to control it's lifetime so you could useIHttpClientFactory
to create an instance ofHttpClient
. (more available at here)jsonSerializer
(required) is taken to allow you to useJson.Net
orSystem.Text.Json
.retryHandler
(optional) is used to provide retry capability.