CURL

トークン取得

curl -d username=namae -d password=pass -d remember= -d clientId=curl http://domain.com/mt/mt-data-api.cgi/v2/authentication

記事投稿

curl -H "X-MT-Authorization: MTAuth accessToken=token" -d entry="{\"title\":\"01 from DataAPI\","oh_assets"}" http://domain.com/mt/mt-data-api.cgi/v2/sites/12/entries

コマンドラインからユーザーを作成するスクリプト

参考
http://taiju.hatenablog.com/entry/20140205/1391559234

Git
https://github.com/t-shida/mt-tool-make_user

ユーザー作成

./tools/make_user -name=username -password=pass -email=emailaddress

ユーザー削除

ユーザー削除も一応作った
./tools/make_user -name=username -remove=1