※ Haroopad とかで確認してね!
sequenceDiagram
participant ユーザー
participant Twitter
participant ウェブサイト
participant データベース
ユーザー->>ウェブサイト: Twitter ID でサインアップ
ウェブサイト->>データベース: ユーザーを仮登録
ウェブサイト->>ユーザー: 仮登録したよ!
loop 定期的に確認
ウェブサイト->>Twitter: DMが出せますか?
alt フォローされていない
Twitter->>ウェブサイト: だせないよ
else フォローされている
Twitter->>ウェブサイト: 出せるよ
end
end
ウェブサイト->>Twitter: DMで正式登録認証アドレスおくるね
ウェブサイト->>データベース: DM送信した、をメモ
Twitter->>ユーザー: DMがきたよ
ユーザー->>ウェブサイト: 正式登録認証アドレスでアクセス
ウェブサイト->>データベース: ユーザーを正式登録
ウェブサイト->>ユーザー: 正式登録したよ!