/// <summary> /// Gets the friendship status of the user and the bot linked to your LINE Login channel. /// /// The "profile" scope is required to perform this operation. /// </summary> /// <param name="action"> /// The callback action to be invoked when this API finishes. /// </param> public static void GetBotFriendshipStatus(Action <Result <BotFriendshipStatus> > action) { var identifier = AddAction(FlattenAction.JsonFlatten <BotFriendshipStatus>(action)); NativeInterface.GetBotFriendshipStatus(identifier); }
/// <summary> /// Gets the user’s profile. /// /// The "profile" scope is required to perform this operation. /// </summary> /// <param name="action"> /// The callback action to be invoked when this API finishes. /// </param> public static void GetProfile(Action <Result <UserProfile> > action) { var identifier = AddAction(FlattenAction.JsonFlatten <UserProfile>(action)); NativeInterface.GetProfile(identifier); }
/// <summary> /// Revokes the current access token. /// /// After the access token is revoked, you cannot use it again to access the LINE Platform. /// You need to have the user authorize your app again to issue a new access token before accessing the LINE Platform. /// </summary> /// <param name="action"> /// The callback action to be invoked when this API finishes. /// </param> public static void RevokeAccessToken(Action <Result <Unit> > action) { var identifier = AddAction(FlattenAction.UnitFlatten(action)); NativeInterface.RevokeAccessToken(identifier); }
/// <summary> /// Verifies the current access token. /// </summary> /// <param name="action"> /// The callback action to be invoked when this API finishes. /// </param> public static void VerifyAccessToken(Action <Result <AccessTokenVerifyResult> > action) { var identifier = AddAction(FlattenAction.JsonFlatten <AccessTokenVerifyResult>(action)); NativeInterface.VerifyAccessToken(identifier); }
/// <summary> /// Refreshes the current access token. /// </summary> /// <param name="action"> /// The callback action to be invoked when this API finishes. /// </param> public static void RefreshAccessToken(Action <Result <AccessToken> > action) { var identifier = AddAction(FlattenAction.JsonFlatten <AccessToken>(action)); NativeInterface.RefreshAccessToken(identifier); }