目次
目次
2022/8/4更新
CocoaPodsを削除(ビルドエラーになるため)
https://qiita.com/Lulu34/items/cd1f9c3d7faa960dda50
【超基礎】Swiftを触ったことの無い方が、「調べながらやれば形にできる」ようにする記事 - Qiita
Provisioning profile "iOS Team Provisioning Profile: expiredが表示されてエラーになる時は、
Bundle Identifierを変更して(2を追加)してtry againするとエラーが解消した。
[Swift]pod 'Firebase/Firestore'インストール後のビルドが遅い場合の対処法 - Qiita
flutter firebase ios build が遅いので高速化する
→続き バックグラウンドで位置情報を取得してファイルに書き込み
⭐️TableViewCellにImageを追加。非同期で画像取得
iOSでFirebaseを使用して、データベースに対してCRUDを実行(CocoaPodsが必要)
⭐️Dropbox API 認証して、画像をダウンロードして表示(CocoaPodsが必要)
→続き client.files.listFolderで2,000件取得
⭐️NoteのAPIでカテゴリがテクノロジーのタイトルを表示
⭐️Box iOS SDKをインストールして、API呼び出しの実行。jpgファイルのダウンロード
Microsoft Graph APIのサンプルでSign in
LINE SDK for iOS Swift のサンプルでログイン画面表示
⭐️Stack OverflowのAPIでswiftの質問を表示
⭐️The feedly Cloud APIではてなブックマークお気に入りのタイトルを表示
ソース
GitHub - hiroyuki12/HelloWorldSwift
スクリーンショット command + shift + ctrl + 4して、スペース、画面クリックすると、クリップボードにコピーされます。
スクリーンショットを直接クリップボードに保存する方法 - Qiita
タイトルを右クリックして、Copy Linkして、目次に貼り付け。
新型コロナ感染経路確認へ行動履歴把握 高校生・加藤さんがアプリ製作 / 函館新聞電子版
SwiftでQiitaのAPIを表示させる。 - Qiita
GitHub - hirothings/qiita-pocket: あとで読むQiita APP (Swift4.0 / Xcode9)
【Swift/Objective-C】【短期】Qiitaの今読んでおくべき記事100選【毎週自動更新】 - Qiita
https://developer.apple.com/documentation/uikit/views_and_controls
Hatena-Textbook/swift-development-apps.md at master · hatena/Hatena-Textbook · GitHub
Box OAuth
Hatena OAuth
Qiita OAuth
Google Photos APIをPythonで操作する|プログラミングが出来るようになるノート|note
mastodon-client
mastodon-client GitHub topics
https://github.com/topics/mastodon-client
https://github.com/metabolist/metatext
push notificationあり
Twitterクライアントアプリ開発者、続々とMastodonアプリ開発に移行
https://www.techno-edge.net/article/2023/01/30/778.html
mastodon apps
実機で実行した時のエラー iPhone再起動で解決
Errors were encountered while preparing your device for development. Please check the Devices and Simulators Window.
iPhoneを再起動すると解決した。
iOS - iPhoneの実機テストでのビルドエラー。証明書関係??|teratail
mstdn.guruのトゥートを表示
2023/3/4 確認
QiitaのAPIでタイトルを表示 を元に作成
Getting started with the API - Mastodon documentation
Fetching public timelines
Playing with public data - Mastodon documentation
$ curl https://mstdn.guru/api/v1/timelines/public | jq | more
Localのトゥートを取得する時はtrueにする。デフォルトはfalse
https://mstdn.guru/api/v1/timelines/public?local=true
timelines - Mastodon documentation
https://mstdn.guru/api/v1/accounts/1/statuses
$ curl https://mstdn.guru/api/v1/accounts/1/statuses | jq | more
Mastodon ユーザーのユーザID番号の簡単な確認方法 - Qiita
https://mstdn.jp/api/v1/timelines/public?local=true
https://qiitadon.com/api/v1/timelines/public?local=true
https://pawoo.net/api/v1/timelines/public?local=true
tag/cats?limit=2
https://docs.joinmastodon.org/client/public/
$ curl https://pawoo.net/api/v1/timelines/tag/ai | jq | more
https://docs.joinmastodon.org/client/token/
https://docs.joinmastodon.org/methods/accounts/#following
Get account’s following
$ curl -X POST \
-F 'client_name=Test Application' \
-F 'redirect_uris=urn:ietf:wg:oauth:2.0:oob' \
-F 'scopes=read write push' \
-F 'website=https://myapp.example' \
https://mstdn.guru/api/v1/apps
$ curl -X POST \
-F 'client_id=your_client_id_here' \
-F 'client_secret=your_client_secret_here' \
-F 'redirect_uri=urn:ietf:wg:oauth:2.0:oob' \
-F 'grant_type=client_credentials' \
https://mstdn.guru/oauth/token
$ curl \
-H 'Authorization: Bearer our_access_token_here' \
https://mstdn.guru/api/v1/apps/verify_credentials
アカウントIDが2のユーザー(mazzo)のfollwingリストを取得
https://mstdn.guru/web/accounts/2/following
$ curl \
-H 'Authorization: Bearer our_access_token_here' \
https://mstdn.guru/api/v1/accounts/2/following | jq | more
認証 クライアントアプリへのアクセスの取得
https://docs.joinmastodon.org/client/token/
アカウントでログインする
https://docs.joinmastodon.org/client/authorized/
ライブラリ
https://github.com/MastodonKit/MastodonKit
metatext
https://github.com/metabolist/metatext
iOS(Swift)から3ステップでMastodonに投稿を行う - Qiita
mastodonのAPIをcurlで試してみた - Qiita
わずか数行のコードで利用できちゃう!Mastodon APIを活用してみた。
https://www.antun.net/tips/api/mastodon.html
環境の設定 - Mastodon documentation
Mastodon の toot を Python で取得する
https://sucher.net/mastodon-toot-python/
ホームタイムラインを見る
RxSwift
ViewControllerにおいて、ボタンと反応するメソッドが一対一では無くなり、見やすくなっています。
ViewModelにおいて、delegate?.updateCount
のようにデータ更新の通知を行わなくても良くなっています。イベントが発生した場合、自動で通知が流れていきます。
比較的記述量が多い問題があります。極めて規模の小さいプロジェクトには向かないかもしれません。