| SubscriptionCreateTag Method |
Creates a tag subscription.
Namespace: InstaSharp.EndpointsAssembly: InstaSharp (in InstaSharp.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax public Task<SubscriptionResponse> CreateTag(
string tag,
string verifyToken = null
)
Public Function CreateTag (
tag As String,
Optional verifyToken As String = Nothing
) As Task(Of SubscriptionResponse)
public:
Task<SubscriptionResponse^>^ CreateTag(
String^ tag,
String^ verifyToken = nullptr
)
member CreateTag :
tag : string *
?verifyToken : string
(* Defaults:
let _verifyToken = defaultArg verifyToken null
*)
-> Task<SubscriptionResponse>
Parameters
- tag
- Type: SystemString
The hashtag, e.g. 'csharp' - 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 Exception | Condition |
---|
ArgumentException | tag must be populated;tag
or
subscribing to a tag with spaces is ignored by Instagram;tag |
See Also