Click or drag to resize
SubscriptionCreateLocation Method
Creates a location subscription.

Namespace: InstaSharp.Endpoints
Assembly: InstaSharp (in InstaSharp.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public Task<SubscriptionResponse> CreateLocation(
	string locationId,
	string verifyToken = null
)

Parameters

locationId
Type: SystemString
The locationId, e.g. '1257285'
verifyToken (Optional)
Type: SystemString
The verify token.

Return Value

Type: TaskSubscriptionResponse
Check the Meta Property for any errors. E.G. Meta.Code =HttpStatusCode.BadRequest, ErrorType="APISubscriptionError" and ErrorMessage="Unable to reach callback URL [url] will be set if the callback url has issues"
Exceptions
ExceptionCondition
ArgumentExceptionlocationId must be populated;locationId
See Also