| SubscriptionCreateLocation Method |
Creates a location subscription.
Namespace: InstaSharp.EndpointsAssembly: InstaSharp (in InstaSharp.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax public Task<SubscriptionResponse> CreateLocation(
string locationId,
string verifyToken = null
)
Public Function CreateLocation (
locationId As String,
Optional verifyToken As String = Nothing
) As Task(Of SubscriptionResponse)
public:
Task<SubscriptionResponse^>^ CreateLocation(
String^ locationId,
String^ verifyToken = nullptr
)
member CreateLocation :
locationId : string *
?verifyToken : string
(* Defaults:
let _verifyToken = defaultArg verifyToken null
*)
-> Task<SubscriptionResponse>
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 See Also