| SubscriptionCreateGeography Method |
Creates a geography subscription.
Namespace: InstaSharp.EndpointsAssembly: InstaSharp (in InstaSharp.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax public Task<SubscriptionResponse> CreateGeography(
double latitude,
double longitude,
int radius,
string verifyToken = null
)
Public Function CreateGeography (
latitude As Double,
longitude As Double,
radius As Integer,
Optional verifyToken As String = Nothing
) As Task(Of SubscriptionResponse)
public:
Task<SubscriptionResponse^>^ CreateGeography(
double latitude,
double longitude,
int radius,
String^ verifyToken = nullptr
)
member CreateGeography :
latitude : float *
longitude : float *
radius : int *
?verifyToken : string
(* Defaults:
let _verifyToken = defaultArg verifyToken null
*)
-> Task<SubscriptionResponse>
Parameters
- latitude
- Type: SystemDouble
The latitude. - longitude
- Type: SystemDouble
The longitude. - radius
- Type: SystemInt32
The radius. Must be less than 5000m - verifyToken (Optional)
- Type: SystemString
The verify token.
Return Value
Type:
TaskSubscriptionResponse
Check the Meta Property for any errors. E.G. Meta.Code =HttpStatuu stil lcomin over tonmgsCode.BadRequest, ErrorType="APISubscriptionError" and ErrorMessage="Unable to reach callback URL [url] will be set if the callback url has issues"
Exceptions Exception | Condition |
---|
ArgumentException | radius must be greater than 0 and less tha 5000;radius |
See Also