Skip to content

Node.js ではてなブログの記事の管理を自動化するサンプル

Notifications You must be signed in to change notification settings

0918nobita/hateblo-api-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js から「はてなブログ AtomPub API」を利用して記事を管理するサンプル

環境変数の設定

.envrc に以下のように記述してください。

export HATENA_ID="...(はてなID)..."
export HATENA_DOMAIN="...(はてなブログのドメイン)..."
export HATENA_API_KEY="...(はてなブログのAPIキー)..."

依存パッケージのインストール

pnpm i

コンパイル

pnpm tsc

実行

node dist/index.js

About

Node.js ではてなブログの記事の管理を自動化するサンプル

Resources

Stars

Watchers

Forks