NI-Lab.

nilog:

← 前の日 2026-04-02 次の日 →
← 一年前 一年後 →
Fedibird (2026-04-02)

まずは IntelliJ をアップデートするところからだなw


[Fedibird] 2026-04-02 08:45:29
関連するかも情報

朝の家事をdone したので、ちょっとTwitter APIまわりの処理を調べてみるかな


[Fedibird] 2026-04-02 08:44:46

まずは IntelliJ をアップデートするところからだなw


[Fedibird] 2026-04-02 08:45:29

IntelliJ IDEA を数回アップデートしたところでなぜか404エラーになってしまう(;´∀`) 最新バージョンと思われる IntelliJ IDEA 2026.1 を新規インストールする。新バージョンは古いバージョンとアイコンが違う(上のアイコンが新バージョンのIntelliJ)。



元の画像を見る
[Fedibird] 2026-04-02 09:09:22

Cloud Run Functions も新バージョンに以降しないといけない・・・

「このページには、第 1 世代のレガシー関数のみが表示されます。コンソールでの第 1 世代関数の新規作成には対応しなくなりました。関数を作成するのに使用できるのは、gcloud CLI、API、Terraform のみになります。新しい関数のデプロイを管理するには、[Cloud Run] に移動してください。」


[Fedibird] 2026-04-02 09:15:15

とりあえず IntelliJ で開発していない Python のプログラムから見ていこう。で、さっそくエラー

ERROR:root:code for hash blake2b was not found.


[Fedibird] 2026-04-02 09:17:17

"brew install libb2"

unsupported hash type ?なんだこれは?を解決したお話 - 好きなことを書かせて nakamka.hatenablog.com/entry/2


[Fedibird] 2026-04-02 09:21:27

Gemini に聞いてもいまいち解決できなかったけど brew install libb2 で復活(したかも)


[Fedibird] 2026-04-02 09:22:02

X Developer Portal を確認したところ Twitter API のキーは書き込み権限がまだあるっぽい。10年前にシークレットを作ったままだw

"Access Token and Secret"
"Generated February 19, 2016"
"Created with Read and Write permissions"


[Fedibird] 2026-04-02 09:32:15

"An Access Token and Secret are user-specific credentials used to authenticate OAuth 1.0a API requests. They specify the X account the request is made on behalf of."


[Fedibird] 2026-04-02 09:33:39

python-twitter ライブラリはもうメンテされていないみたい。

"This repository was archived by the owner on Aug 7, 2024. It is now read-only."

GitHub - bear/python-twitter: A Python wrapper around the Twitter API. · GitHub github.com/bear/python-twitter


[Fedibird] 2026-04-02 09:42:09

Twitter API v2 をコールしてみたら怒られた(;´∀`)

"When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. You can create a project via the developer portal."


[Fedibird] 2026-04-02 09:48:52

もう update_with_media.json が Not Found になってしまったんだろうか・・・

$ curl -I api.twitter.com/1.1/statuses/u
HTTP/2 404


[Fedibird] 2026-04-02 09:57:15

Twiiter API v2 のキーを作ればいいのかもしれないけど無料プランでなぜか生き残っているキーなので余計なことしてreadもできなくなったら困るなぁ。まあ write するほうは現時点では諦めるとするかな。read もできなくなったらダメもとで v2 キーを作ることにしようか・・・


[Fedibird] 2026-04-02 10:01:52

食料品などの買い物done


[Fedibird] 2026-04-02 11:29:15

アクロボール買って来た



元の画像を見る
[Fedibird] 2026-04-02 11:37:17

(ノ゚ー゚)ノ💊💊💊 ベンザブロックLプレミアムを投入


[Fedibird] 2026-04-02 13:38:37

Twitter API v2 を試してみたけどもう無料ではダメっぽい・・・

「2026年2月末頃より、X (旧Twitter) APIの仕様変更に伴い、従来の「Freeプラン(無料プラン)」のままAPIを使用していると、ツール実行時に「503 Service Unavailable」等のエラーが発生し、自動投稿などの機能が正常に動作しなくなる事象が多数報告されています」

「新たに新設された「Pay-Per-Use(従量課金型)プラン」への移行が必要」

X(旧Twitter) APIの503エラー解決手順(Pay-Per-Useプランへの移行ガイド)│Programming ZERO programming-zero.net/x-api-503


[Fedibird] 2026-04-02 22:09:56

"We’re thrilled to officially announce the launch of our new X API Pay-Per-Use pricing model! This update is designed to empower the heart of our developer community: indie builders, early-stage products, startups, and hobbyists. Our goal is to open up the X API ecosystem wider than ever before, sparking a fresh wave of innovative, next-generation X apps."

Announcing the Launch of X API Pay-Per-Use Pricing - Announcements - X Developers devcommunity.x.com/t/announcin


[Fedibird] 2026-04-02 22:14:50

X Developer Portal で Twitter API v2 を使えるように App を設定してみた。Twitter API v1.1 の read のところはまだ動いているので良かった。Twitter API v2 自体は課金しないと 503 エラーで使えないっぽい。


[Fedibird] 2026-04-02 22:17:30

「ジョブが一時停止している間、そのジョブを編集することもできます。編集した後、ジョブは再開するまで一時停止したままになります。」

cron ジョブを管理する  |  Cloud Scheduler  |  Google Cloud Documentation docs.cloud.google.com/schedule


[Fedibird] 2026-04-02 23:33:13
2026年04年02日のnilogをすべて表示する

- NI-Lab.'s accounts
- Fedibird
- mstdn.jp
- Mastodon Japan
- Twitter(X)
- はてなブックマーク
- Timelog

- NI-Lab.

Web Services by Yahoo! JAPAN