Click or drag to resize
SubscriptionCreateGeography Method
Creates a geography subscription.

Namespace: InstaSharp.Endpoints
Assembly: 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
)

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
ExceptionCondition
ArgumentExceptionradius must be greater than 0 and less tha 5000;radius
See Also